Размер файла: 1.29Kb
<?
IF (ISSET ($_GET['l_wid'])&& ISSET($_GET['l_hei']))
{
$l_wid=$_GET['l_wid'];
$l_hei=$_GET['l_hei'];
FOR ($i=0;$i<sizeof($jpg);$i++)
{
$files="";
$dir = opendir ("downloads/$folder[3]/$jpg[$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[3]/$jpg[$i]/$files[$k]");
}}}
ECHO "<img src=\"downloads/$folder[3]/$jpg[$i]/index.gif\" height=\"16\" width=\"16\">
<a href=\"index.php?downloads&f=3&jpg=$i&l_wid=$l_wid&l_hei=$l_hei\">$kart[$i] ($num)</a><br>";
}
}
ELSE {
echo "<img src=\"downloads/$folder[3]/$jpg[$i]/index.gif\" height=\"16\" width=\"16\"><a href=\"index.php?downloads&f=3&p=$i&l_wid=128&l_hei=128\">128*128</a><br>";
echo "<img src=\"downloads/$folder[3]/$jpg[$i]/index.gif\" height=\"16\" width=\"16\"><a href=\"index.php?downloads&f=3&p=$i&l_wid=160&l_hei=128\">128*160</a><br>";
echo "<img src=\"downloads/$folder[3]/$jpg[$i]/index.gif\" height=\"16\" width=\"16\"><a href=\"index.php?downloads&f=3&p=$i&l_wid=176&l_hei=132\">132*176</a><br>";
}
?>