File size: 625B
<?
for ($j=0;$j<sizeof($jpg);$j++)
{
$files="";
$dir = opendir ("downloads/jpg/$jpg[$j]/");
$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;
}}}
$numb_img=$num+$numb_img;
}
echo "<img src=\"downloads/$folder[3]/index.gif\" height=\"16\" width=\"16\">
<a href=\"index.php?downloads&f=3&p=1\">$content[3] ($numb_img)</a><br>";
?>