Latest Releases
Total releases :';
$donnees = mysql_fetch_array(mysql_query("SELECT COUNT(*) AS nb_entry FROM releases"));
echo $donnees['nb_entry'];
$totalCracks = $donnees['nb_entry'];
if($fansuberName != '')
{
$r = mysql_query("SELECT COUNT(*) AS nb_entry FROM releases WHERE fansuber='" . $fansuberName . "'");
$donnees = mysql_fetch_array($r);
echo '
Total releases of ' , htmlentities($fansuberName) , ': ' , $donnees['nb_entry'];
}
echo '';
$page = (isset($_GET['spg'])) ? (int)$_GET['spg'] : 1;
$page = $page < 0 ? 0 : $page;
//si on ne précise pas la page on va à la première page
if($page != 0) $premierMessageAafficher = ($page - 1) * $config['cracksparpage'];
$nombreDePages = ceil($totalCracks / $config['cracksparpage']);
echo 'Page : ';
for ($i = 1 ; $i <= $nombreDePages ; $i++)
{
if($i != $page) echo '' . $i . '';
else echo $i . ' ';
}
echo '';
?>