$f, 'width' => $width, 'height' => $height, 'size' => $size); array_multisort($images, $_sort_, SORT_REGULAR); } } closedir($dh); } if($noimage) { if($_GET["img"] != '') { echo "


".$_page_title_."
Image Count = ( ".count($images)." )

 

"; if($images[$_GET["img"]][filename] != '') { echo ""; echo ""; echo ""; echo ""; echo "
"; if($_GET["img"]) { $_no_ = ceil(($_GET["img"]+1)/$_no_pics_per_page_); } else { $_no_ = 1; } if($_GET["img"] == 0) { $side = '

up '; $side = $side.'next >>

'; } else { if($_GET["img"] == ($noimage-1)) { $side = '

<< prev '; $side = $side.'up

'; } else { $side = '

<< prev '; $side = $side.'up '; $side = $side.'next >>

'; } } echo $side.'

'.$images[$_GET[

'.$side; echo "
"; } } else { echo "


".$_page_title_."
Image Count = ( ".count($images)." )

 

"; if($noimage > $_no_pics_per_page_) { $norows = ceil($_no_pics_per_page_/$_no_cols_); } else { $norows = ceil($noimage/$_no_cols_); $nopos = ceil($noimage/$_no_pics_per_page_); } if($_GET["no"] == "") { $no = 1; } else { $no = $_GET["no"]; } $index=abs($no-1)*$_no_pics_per_page_; if(($noimage-$index)<$_no_pics_per_page_) { $norows= ceil(($noimage-$index)/$_no_cols_); } echo ""; for($a = 1;$a<=$norows;$a++) { echo ""; for($b = 1;$b<=$_no_cols_;$b++) { if($images[$index][filename] != '') { echo ''; $index++; } else { echo ''; } } echo ""; } echo "
'.$images[$index][filename].' 
"; echo ""; echo ""; if($nopos>1) { echo "

"; for($i=1;$i<=$nopos;$i++) { if($i == $no) { echo ''.$i.' '; } else { echo ''.$i.' '; } } echo "

"; } } } else { die("No images in directory"); } $time_end = microtime(true); $time = $time_end - $time_start; ?>
© 2005-2006 Northern Virginia Gun Club • All Rights Reserved • Privacy Policy