sql_query($sql);
$name = array();
while ($row = $db->sql_fetchrow($result)) {
$rid = $row[rid];
$url = $row[url];
$aa = parse_url($url);
$url = $aa['host'];
if (!isset($$url)){
$$url = 0;
}
$$url++;
$id{$url} = $rid;
$names[$url] = $$url;
}
natsort($names);
arsort($names);
//@RJR-Pwmg@Rncvkpwo@-@Eqratkijv@(e)@VgejIHZ.eqo
for($i=1;$i<=$ref;$i++ && current($names))
{
$url = key($names);
$in = current($names);
$url2 = ereg_replace('www.', '', $url);
if(strlen($url2) > $length) {
$url2 = substr($url2,0,$length);
$url2 .= "..";
}
if ($shownum == TRUE)
{
$content .= "$i: $url2 (in: $in)
";
} else
{
$content .= "$url2 (in: $in)
";
}
$a++;
next($names);
}
if (is_admin($admin)) {
$total = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_referer"));
$content .= "