PX : code

PHP Slide show by Zoltan Arpadffy
Download this code


<?
$myname=\"!SlideShow.php3\";

$list=\"\";
if( $req==\"\") $req=1;
if( $req<1)   $req=1;

if( $refr==\"\") $refr=6;
if( $refr<1)   $refr=1;
if( $refr>60) $refr=60;

$count=0;
$handle=opendir(\'.\');
while (false!==($file = readdir($handle))) {
    if ($file != \".\" && $file != \"..\" && $file != $myname && $file != \"HEADER\") {
        $count++;
        if($req>=$count) $list=$file;
    }
}
closedir($handle);

if( $req>$count) $req=$count;
$next=$req+1;
$prev=$req-1;
?>
<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
<meta http-equiv=\"Refresh\" content=\"<? echo \"$refr;url=$myname?req=$next&refr=$refr\";?>\">
<link rel=\"stylesheet\" href=\"http://www.polarhome.com/css/polar.css\" media=\"screen\" type=\"text/css\">
</head>
<body background=\"http://www.polarhome.com/images/bg.jpg\">

<?
echo \"<form method=\'POST\' ACTION=\'$myname\'>\\n\";
echo \"<table BGCOLOR=\'#FFFFFF\'><tr BGCOLOR=\'#3333FF\'><td><b><font color=\'#FFFFFF\'>Control panel</font></b></td></tr>\";
echo \"<tr><td><b>Pict.</b><input TYPE=\'text\' NAME=\'req\' SIZE=\'3\' VALUE=\'$next\'>\\n\";
echo \"<b>Delay</b><input TYPE=\'text\' NAME=\'refr\' SIZE=\'1\' VALUE=\'$refr\'>\\n\";
echo \"<input TYPE=\'submit\' VALUE=\'Set\'></td></tr></table></form>\\n\";
echo \"<center>\";

if($prev>=1) echo \"<a href=\'$myname?req=$prev&refr=$refr\'><img src=\'http://www.polarhome.com/images/minus.gif\' border=0></a>&nbsp;\";

if($next<=$count) echo \"<a href=\'$myname?req=$next&refr=$refr\'><img src=\'http://www.polarhome.com/images/plus.gif\' border=0></a>\";

echo \"&nbsp;(<b>$req</b>/$count)&nbsp;<a href=\".\">list</a><br>\";
echo \"<img src=\'$list\' border=0 alt=\'$list\'><br><b>$list</b>\";
echo \"</center>\";
?>

<hr>
<font size=-2>Polar<b>home</b>, production 1999-2001. Supporting <b>free</b> sex for all of us.
<br><a href=\"http://www.polarhome.com/adult/pictures/\" target=\"polar_main\">http://www.polarhome.com/adult/pictures</a>
<br>Member of <a href=\"http://www.polarhome.com/\" target=\"_top\">Polar<b>home</b></a> portal.
</font>
</body>
</html>

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.