File size: 726B
<?
for ($i=0;$i<sizeof($folder);$i++)
{
if ($i=="3"){include "downloads/kart_counter.php";
}
else {
$files="";
$dir = opendir ("downloads/$folder[$i]/");
$k=0;
$num=0;
while ($file = readdir ($dir))
{
$files["$k"]=$file;
$k=$k+1;}
closedir ($dir);
for ($k=2;$k<sizeof($files);$k++)
{
if ($files[$k]=="index.php"||
$files[$k]=="tmp"||
$files[$k]=="128128"||
$files[$k]=="128160"||
$files[$k]=="132176"){}
else {
if ($files[$k]=="index.gif"){}
else {
$num=$num+1;
$size = filesize ("downloads/$folder[$i]/$files[$k]");
$form="b";}}}
echo "<img src=\"downloads/$folder[$i]/index.gif\" height=\"16\" width=\"16\">
<a href=\"index.php?downloads&f=$i\">$content[$i] ($num)</a><br>";
}
}
?>