= 0) {?> [ prev ] [ next ]

= ($j*$imgperpage) && $index < (($j+1) * $imgperpage) ) { for($i=($j*$imgperpage);$i<(($j+1) * $imgperpage);$i++) { if(($i%$imgperrow == 0) && ($i > 0)) { ?>

"; echo "[page ".($j+1)."]"; echo ""; } ?>
[ home ]
d (); $typelist = array("jpg","jpeg","gif","png"); $imagelist = array(); $title = "the showroom"; $stylesheet = "" ; $home = "back"; //--- ind is put to zero when the script is first called uppon--- if(!isset($HTTP_GET_VARS['ind'])) { $ind = 0; } else{ $ind = $HTTP_GET_VARS['ind']; } $index = $ind; //---the following code iterates through the directory and puts any image found in the imagelist array--- $dp=opendir($currentdir); while ( false != ( $file=readdir($dp) ) ) { if (is_file($file) && $file!="." && $file!=".."){ $extention = explode(".",$file); $extention = $extention['1']; if( in_array($extention,$typelist) ){ array_push ($imagelist,$file); } } } ?> <? echo $title ?>
= 0) {?> [ prev ] [ next ]

= ($j*$imgperpage) && $index < (($j+1) * $imgperpage) ) { for($i=($j*$imgperpage);$i<(($j+1) * $imgperpage);$i++) { if(($i%$imgperrow == 0) && ($i > 0)) { ?>

"; echo "[page ".($j+1)."]"; echo ""; } ?>
[ home ]