Categorias

PHP Top Sites

Este código é o melhor de sistemas de Top Sites, com administração, envio de e-mails, sistema de sites rejeitados, tudo passando pelo administrador do site e com instalador automático.

Desenvolvido originalmente por André Uebas.

Em anexo está o Código Completo

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>=$shown 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'",$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 hitin>=$shown and category=$cid 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",$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;} ?> Inscreva-se || Editar Site || Últimos echo $last_ssites;?> Submetidos || Ajuda

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;} ?> $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]; ?>
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 $SITE;?> echo $VOTES;?> echo $HITS;?> echo $RATING;?>
include "ads1.html";?>
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; } if ($rows[stars] > 0) { $sc = $rows[stars]; while ($sc > 0) { echo ""; $sc--; } } ?>
echo $rows[description];?>
if ($use_review == 1) { $reviews = get_site_reviews($rows[sid]); echo "Minha Revisão ($reviews)    "; } if ($use_taf == 1) { echo "Recomenda    "; } if ($cid == 0) { $categ = get_site_category($rows[sid],$rows[category]); echo "Category : $categ"; } ?>
echo $rows[hitin];?> echo $rows[hitout];?> echo $rating;?>
Vote Aqui
include "ads2.html";?>
echo $stotal;?> Sites em nosso banco de dados, List Views: include "counter.php";?>
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 "Tempo de processamento da página: ".$totaltime." seg."; ?>
=Site Podre =Chato =Muito Bem =Soberbo =Site Super Mesmo
include "footer.php"; ?>

Arquivos para Download:

PHPTOPSITES.zip