';
$gallery = $_GET['gallery'];
$numval = $_GET['num'];
$small = $_GET['small'];
$num = intval($numval);
$gal_dir = dirname(dirname(__FILE__)) . '/galleries/';
if($gallery) {
// echo '... Debug Info ...
'; // echo 'Attempting to load Gallery: ' .$gallery .'
'; $real_gal_dir = $gal_dir . $gallery; $index_file = $real_gal_dir . "/index.xml"; if (file_exists($index_file)) { $xml = simplexml_load_file($index_file); // echo 'Index File loaded from:' .$index_file .'
'; $count = $xml->albumItemCount; // echo 'Number Requested: '.$num .' and count: '.$count.'
'; if ($num > $count-1 || $num < 0){ echo " Error: Image outside Image Range Requested !
"; } else { // echo 'item: ' .$xml->images->image[0]->itemLargeImage .'
'; // echo ' ...Actual Output...
'; showImage(); } } else { echo 'Index File not found, bad Gallery Name? Please check name and case!
'; } } if(!$gallery) { // No Action echo 'No Gallery Requested... No Action Performed
'; } ?>
'; // echo 'Attempting to load Gallery: ' .$gallery .'
'; $real_gal_dir = $gal_dir . $gallery; $index_file = $real_gal_dir . "/index.xml"; if (file_exists($index_file)) { $xml = simplexml_load_file($index_file); // echo 'Index File loaded from:' .$index_file .'
'; $count = $xml->albumItemCount; // echo 'Number Requested: '.$num .' and count: '.$count.'
'; if ($num > $count-1 || $num < 0){ echo " Error: Image outside Image Range Requested !
"; } else { // echo 'item: ' .$xml->images->image[0]->itemLargeImage .'
'; // echo ' ...Actual Output...
'; showImage(); } } else { echo 'Index File not found, bad Gallery Name? Please check name and case!
'; } } if(!$gallery) { // No Action echo 'No Gallery Requested... No Action Performed
'; } ?>