echo $text['105'] ?> |
echo $text['137'] ?> |
echo $text['40'] ?> |
echo $text['93'] ?> |
echo $text['94'] ?> |
echo $text['92'] ?> |
$query = mysql_query("SELECT *,hitstotal / (TO_DAYS(NOW())-TO_DAYS(register_date)+1) AS average FROM ". $table ."_sites ORDER BY average DESC, hitstotal DESC LIMIT " . $start . "," . $per_page . "") or die (mysql_error());
if(!isset($rank))
{
$rank = ($page * $per_page) + 1;
}
ob_start();
while($row = mysql_fetch_assoc($query))
{
$row['sitename'] = htmlspecialchars($row['sitename']);
$row['buttonurl'] = htmlspecialchars($row['buttonurl']);
mysql_query("UPDATE " . $table . "_sites SET rank = '" . $rank . "' WHERE memberid = '" . $row['memberid'] . "'") or die(mysql_error());
$days = explode(" | ",$row['date']);
$average = $row['hitstotal'] / $days[1];
$today = explode(" | ",$row['hitstoday']);
$color = "content";
$color2 = "content2";
if(isset($colors) AND $colors == $color2)
{
$colors = $color;
}
else
{
$colors = $color2;
}
?>
if($rank == 1)
{
echo " ";
}
elseif($rank == 2)
{
echo " ";
}
elseif($rank == 3)
{
echo " ";
}
else
{
echo $rank . ".";
}
?> |
![<? echo strtoupper($row['country']); ?>](images/flags/flag_<? echo $row['country'] ?>.gif) |
$query2 = mysql_query("SELECT * FROM " . $table . "_rate WHERE site_id = '" . $row['memberid'] . "'");
while($row2 = mysql_fetch_assoc($query2))
{
$total = $row2['total'];
$votes = $row2['votes'];
if(empty($total) OR empty($votes))
{
$average_rate = 0;
}
else
{
$average_rate = $total / $votes;
$average_rate = round($average_rate,2);
$average_rate = str_replace(".",",", $average_rate);
}
}
$comments = mysql_num_rows(mysql_query("SELECT * FROM " . $table . "_comments WHERE site_id = '" . $row['memberid'] . "'"));
?>
echo $text['151'] ?> : echo $average_rate ?>
echo $text['150'] ?> : echo $votes ?>
echo $text['144'] ?> : echo $comments ?>
|
echo $row['sitename'] ?>
if($row['buttonurl'] AND $img_visible == "all")
{
?>
}
elseif($row['buttonurl'] AND $rank <= $img_visible)
{
?>
}
echo " ";
$row['description'] = htmlspecialchars($row['description']);
if(!empty($smile_des))
{
$query2 = mysql_query("SELECT * FROM " . $table . "_smiles");
while($row2 = mysql_fetch_assoc($query2))
{
$row2['tag'] = str_replace(">",">", $row2['tag']);
$row2['tag'] = str_replace("<","<", $row2['tag']);
$row['description'] = str_replace("$row2[tag]"," ", $row['description']);
}
}
$row['description'] = wordwrap($row['description'], 50, "\t", 1);
$row['description'] = str_replace("\n"," ", $row['description']);
echo $row['description'];
?> |
|
$row['average'] = str_replace(".",",",$row['average']);
echo $row['average'];
?> |
echo $today[1] ?> |
echo $row['hitstotal'] ?> |
$rank++;
}
ob_end_flush();
$a = $rank - 1;
$b = $per_page * ($page + 1);
for($c = $b - $a; $c > 0; $c--)
{
?>
- |
- |
echo $text['95'] ?> |
- |
- |
- |
}
?>