include "config.php";
include "header.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_query ("select *,if (rank/votes, rank/votes,0) as ranks,if (stars, stars,0) as star from top_user where status='Y' AND thin>=$min_hits order by thin DESC,ranks DESC,star DESC,thout DESC limit $from,$t_step") or die (mysql_error());
$tquery = mysql_db_query ($dbname,"select count(sid) as total from top_user where status='Y'",$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 thin>=$min_hits and category=$cid order by thin DESC,ranks DESC,star DESC,thout 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",$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;}
?>
Aanmelden || Edit Site ||
Laatste echo $last_ssites;?> Toegevoegde sites || Help
|
Rubrieken
|
| echo $top_name;?> |
|
Pagina's en rubrieken:
$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 $RANK;?> |
echo $SITES;?> |
echo $VOTES;?> |
echo $HITS;?> |
|
include "ads1.html";?>
|
if (!$from) $cc=1;
else $cc = $from+1;
while ($rows = mysql_fetch_array($squery)) {
$jscript_imgs[$img_num] = $rows[banner];
if ($rows[ranks] > 0) {
$rating = $rows[ranks];
}
else { $rating = 0;}
?>
|
echo $cc;?>
|
echo " ";
?>
if ($rows[country]) {
$country = substr($rows[country],0,strpos($rows[country],'.'));
echo " ";
}
?>
echo $rows[title];?>
if ($new_site_days > 0) {
if (time() - $rows[sid] - 86400*$new_site_days < 0) echo $new_site_image;
}
$htc = hot_status_check ($rows[stars],$hot_site_image);
echo $htc;
if ($use_rating == 1 && $use_cool == 1) {
$ci = get_cool_icon ($rows[rank],$rows[votes],$cool_site_image);
echo $ci;
}
if ($use_rating == 1) {
$ssr = stars_site_rating ($rows[rank],$rows[votes]);
echo $ssr;
}
?>
echo $rows[description];?>
if ($use_rating == 1) {
echo " Rate It! ";
}
if ($use_review == 1) {
$reviews = get_site_reviews($rows[sid]);
echo " Write Review ($reviews) ";
}
if ($use_taf == 1) {
echo " Recommend it! ";
}
if ($cid == 0) {
$categ = get_site_category($rows[sid],$rows[category]);
echo " Category : $categ";
}
?>
|
echo $rows[thin];?>
|
echo $rows[thout];?>
|
$cc++;
}
$query = mysql_db_query ($dbname,"select count(sid) as stotal from top_user where status='Y'",$db) or die (mysql_error());
$rows = mysql_fetch_array($query);
$stotal = $rows[stotal];
?>
|
include "ads2.html";
?>
|
=Waardeloos
 =Saai
  =Gaat
wel
   =Goed
    =Geweldig |
|
|
include "footer.php";
?>