Hab noch ein altes Script auf der Platte gefunden:
// begin:code    seiten inhalt in $content schreiben
function maxhits() {
         $sql = "SELECT MAX(hits)AS count FROM `bsnx_klicks`";
         $result = mysql_query($sql)  ;
         if ($row = mysql_fetch_array($result)) {
            return $row['count'];
         }
}
function topt($rcount, $rmax, $offset) {
         return round(($rcount / $rmax) * 12)+$offset;
}
$max = maxhits();
$sql = "SELECT * FROM `bsnx_klicks`";
$result = mysql_query($sql)  ;
$array = array();
while($row = mysql_fetch_array($result))
{
     //$row['href']
     //$row['hits']
     if (stristr($row['href'], '.zip' != false) {
 != false) {
        $path = explode('/', $row['href']);
        $file = $path[sizeof($path)-1];
        array_push($array, array('id'=> $row['id'],'hits' => $row['hits'],'href' => $file));
     }
}
$result = '<div style="text-align:center; background-image:url(http://bsnx.net/img/bg_tag.gif); border:1px #D0D0FF solid; padding-top:10px; padding-bottom:10px;">';
for ($i=0; $i<sizeof($array); $i++) {
    $href = "http://bsnx.net/web/link/".$array[$i]['id']."/";
    $result .= ' <a style="font-size:'.topt($array[$i]['hits'], $max, 12).'pt;" href="'.$href.'">'.$array[$i]['href'].'</a><wbr> ';
}
$result .= '</div>';
$content = '<h1>Downloads</h1>'.$result;
// end:code