Codice: Seleziona tutto
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="Description" content="Sito dedicato ai Pokémon.News, Download, e molto altro.">
<meta name="Keywords" content="pokemon,community,nera,bianca,versione,pokemon x,pokemon y,diamante,perla,serie,dungeon,ranger,pikachu">
</head>
<body lang="it">
<!--INIZIO CONTENUTI -->
<?php
mysql_select_db(my_pokemondownload);
$query="SELECT * FROM phpbb_posts WHERE forum_id=4 ORDER BY topic_id DESC LIMIT 0,3";
$query=mysql_query($query);
while($post=mysql_fetch_assoc($query))
{
$data=$post['post_time'];
$data=date("d/m/Y H:i", $data);
$limit=150; //numero caratteri
$txt=$post['post_text'];
while($txt[$limit]!=" ")$limit--;
$txt=substr($txt,0,$limit);
$txt=str_replace("é", "é", $txt);
$txt=str_replace("è", "è", $txt);
$txt=str_replace("à", "à", $txt);
$txt=str_replace("ù", "ù", $txt);
$txt=str_replace("ò", "ò", $txt);
$post['post_subject']=str_replace("é", "é", $post['post_subject']);
$post['post_subject']=str_replace("è", "è", $post['post_subject']);
$post['post_subject']=str_replace("à", "à", $post['post_subject']);
$post['post_subject']=str_replace("ù", "ù", $post['post_subject']);
$post['post_subject']=str_replace("ò", "ò", $post['post_subject']);
echo "<div class=\"img_box\"></div><div class=\"title_box\"><div class=\"title_title\">".$post['post_subject']."</div></div><div class=\"date_box\"><div class=\"date_date\">".$data."</div></div>
<div class=\"avviso\">".$txt." ...<a href=\"http://pokemondownload.altervista.org/forum/news-e-annunci-f4.html\">[Continua]</a></div>";
echo "<br /><br />";
}
?>
<h6>Si Ringrazia brunino per il sistema Avvisi.</h6>
<a href="http://pokemondownload.altervista.org/forum/news-e-annunci-f4.html">Altre News/Annunci --></a>
<!--FINE CONTENUTI -->
</body>
</html>