$h1\n",$div; echo $row2,$t1,$t2,$div; echo $row3,"
$rank
\n","
$page
\n","
$hits
\n",$div; $row = 0; $handle = fopen("../p/counter.txt", "r"); while (($data = fgetcsv($handle, 1000, ":")) !== FALSE) { if (stristr($data[0],".html") and !(stristr($data[0],"other")) and !(stristr($data[0],"error")) and !(stristr($data[0],"show")) and !(stristr($data[0],"tools"))) { $statline[$data[0]]=$data[1]; } } fclose($handle); arsort($statline); foreach ($statline as $page => $hits) { $row++; if (((1+$row)/2) % 2 == 0) { $rowcolor = "#ffff66"; } else { $rowcolor = "#6699ff"; } echo "
\n"; echo "
$row
"; $dispname = ucfirst(str_replace(array("_sp_","_") , array(" sp. \"", " ") , basename($page,".html"))); if (!stristr($page, "/fisk/") and !stristr($page, "/planter/")) { $dispname = str_replace(array("oe","ae","aa") , array("ø","æ","å") , $dispname); } if (stristr($dispname, "sp. \"")){ $dispname = $dispname."\""; } echo "
$dispname"; echo $div; echo "
".number_format($hits,0,",",".")."
\n"; echo $div; } echo $div,""; include($stdpath.'/tools/n.html'); include($stdpath.'/tools/f.html'); ?>