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()); } ?>
echo $top_name;?> | |||
Pages: $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";?> | |||
echo $cc;?> |
"; ?> 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];?> |
include "ads2.html";?> | |||
echo $stotal;?> Sites in our Database, List Views: include "counter.php";?> echo $min_hits;?> incoming hit(s) required to be in the toplist. In/Out resets every days, Next Reset: echo date("n/j/y h:i:s a", $reset_file[0])?>. $mtime2 = explode(" ", microtime()); $endtime = $mtime2[1] + $mtime2[0]; $totaltime = ($endtime - $starttime); $totaltime = number_format($totaltime, 7); echo "Processing Time: ".$totaltime." sec."; ?> |