include "config.php";
include "header.php";
//////////////////////////////////////////////////
// The list of included Plugins //
//////////////////////////////////////////////////
// Back up plugin
// include "plugins/backup.plugin.php";
//////////////////////////////////////////////////
$reset_file = file($reset_log_file);
// checks reset time and resets if it's time
###########
// makes sure the file isn't empty, if so writes time
if(empty($reset_file[0])){
reset_update_time($reset_log_file,$days_to_reset);
}
if($reset_file[0] <= time()){
reset_list($site_log_file,$total,$file);
reset_update_time($reset_log_file,$days_to_reset);
}
###########
$reset_file = file($reset_log_file);
if (!$cid) {$cid = 0;}
if (!$from) {$from = 0;}
if ($cid == 0) {
$squery = mysql_db_query ($dbname,"select *,if (rank/votes, rank/votes,0) as ranks,if (stars, stars,0) as star from top_user where status='Y' and hitin > 0 order by hitin DESC,ranks DESC,star DESC,hitout DESC limit $from,$t_step",$db) or die (mysql_error());
$tquery = mysql_db_query ($dbname,"select count(sid) as total from top_user where status='Y' and hitin > 0",$db) or die (mysql_error());
}
else {
$squery = mysql_db_query ($dbname,"select *,if (rank/votes, rank/votes,0) as ranks,if (stars, stars,0) as star from top_user where status='Y' and category=$cid and hitin > 0 order by hitin DESC,ranks DESC,star DESC,hitout DESC limit $from,$t_step",$db) or die (mysql_error());
$tquery = mysql_db_query ($dbname,"select count(sid) as total from top_user where status='Y' and category=$cid and hitin > 0",$db) or die (mysql_error());
}
?>
if ($a_m == 1) { echo $vote_log_message;}
if ($a_m == 2) { echo $anti_cheat_message;}
if ($a_m == 5) { echo $cookie_message;}
?>
if (!$from) $cc=1;
else $cc = $from+1;
while ($rows = mysql_fetch_array($squery)) {
if ($rows[ranks] > 0) {
$rating = $rows[ranks];
}
else { $rating = 0;}
?>

|
|
|
echo " ";
?>
echo " ";
?> Qualit�
:
if ($rows[stars] > 0) {
$sc = $rows[stars];
while ($sc > 0) {
echo " ";
$sc--;
}
}
?> |
# echo $cc;?> echo $rows[title];?>
if ($new_site_days > 0) {
if (time() - $rows[sid] - 86400*$new_site_days < 0) echo $new_site_image;
}
?> echo $rows[description];?> |
|
if ($use_review == 1) {
$reviews = get_site_reviews($rows[sid]);
echo "Vos Commentaires ($reviews) ";
}
if ($use_taf == 1) {
echo "Recommendez Le Site! ";
}
if ($cid == 0) {
$categ = get_site_category($rows[sid],$rows[category]);
echo "Theme: $categ";
}
?>
|
|
echo $rows[hitin];?> IN
- echo $rows[hitout];?> OUT |
echo"";?>Notez ce
site,
moyenne actuelle : echo $rating;?>/10 | |
|
|
|
|
$cc++;
}
$query = mysql_db_query ($dbname,"select count(sid) as stotal from top_user where status='Y' and hitin > 0",$db) or die (mysql_error());
$rows = mysql_fetch_array($query);
$stotal = $rows[stotal];
?>
Page :
$trows = mysql_fetch_array($tquery);
$count = $trows[total];
$i = 0;
$step = $t_step;
$sstep = 0;
echo $round;
while ($sstep < $count) {
if ($from == $sstep) {
echo " [$i] ";
}
else {
echo " [$i] ";
}
$sstep = $sstep + $step;
$i++;
}
?>
echo $stotal;?>
Sites Dans Notre Base De Donn�e | Liste Vue include "counter.php";?> fois | Reset
Tous Les Jours, Prochain Reset le echo date("j/n/y", $reset_file[0])?> |
include "footer.php";
?>