' . gettext('Invalid linking to the slideshow page.') . '

'; } //getting the image to start with if (!empty($_POST['imagenumber']) AND ! is_object($imageobj)) { $imagenumber = sanitize_numeric($_POST['imagenumber']) - 1; // slideshows starts with 0, but zp with 1. } elseif (is_object($imageobj)) { $imagenumber = $imageobj->getIndex(); } else { $imagenumber = 0; } // set pagenumber to 0 if not called via POST link if (isset($_POST['pagenr'])) { $pagenumber = sanitize_numeric($_POST['pagenr']); } else { $pagenumber = 1; } // getting the number of images if (!empty($_POST['numberofimages'])) { $numberofimages = sanitize_numeric($_POST['numberofimages']); } elseif (is_object($albumobj)) { $numberofimages = $albumobj->getNumImages(); } else { $numberofimages = 0; } if ($numberofimages < 2 || $imagenumber > $numberofimages) { $imagenumber = 0; } //getting the album to show if (!empty($_POST['albumid']) && !is_object($albumobj)) { $albumid = sanitize_numeric($_POST['albumid']); } elseif (is_object($albumobj)) { $albumid = $albumobj->getID(); } else { $albumid = 0; } if (isset($_POST['preserve_search_params'])) { // search page $search = new SearchEngine(); $params = sanitize($_POST['preserve_search_params']); $search->setSearchParams($params); $searchwords = $search->getSearchWords(); $searchdate = $search->getSearchDate(); $searchfields = $search->getSearchFields(true); $page = $search->page; $returnpath = getSearchURL($searchwords, $searchdate, $searchfields, $page); $albumobj = new AlbumBase(NULL, false); $albumobj->setTitle(gettext('Search')); $albumobj->images = $search->getImages(0); } else { if (isset($_POST['favorites_page'])) { $albumobj = $_myFavorites; $returnpath = $_myFavorites->getLink($pagenumber); } else { $albumq = query_single_row("SELECT title, folder FROM " . prefix('albums') . " WHERE id = " . $albumid); $albumobj = newAlbum($albumq['folder']); if (empty($_POST['imagenumber'])) { $returnpath = $albumobj->getLink($pagenumber); } else { $image = newImage($albumobj, sanitize($_POST['imagefile'])); $returnpath = $image->getLink(); } } } /* echo "
  1. " . $heading . "
  2. "; // 1 echo "
  3. " . $speedctl . "
  4. "; echo "
  5. " . $albumobj . "
  6. "; // albums (3) echo "
  7. " . $imageobj . "
  8. "; echo "
  9. " . $width . "
  10. "; echo "
  11. " . $height . "
  12. "; echo "
  13. " . $crop . "
  14. "; echo "
  15. " . $shuffle . "
  16. "; echo "
  17. " . $linkslides . "
  18. "; echo "
  19. " . $controls . "
  20. "; // 1 echo "
  21. " . $returnpath . "
  22. "; // /zenphoto/bouquetins/2008-08-30_Bouquetin_9266.jpg echo "
  23. " . $imagenumber . "
"; // 0 */ // 1albums (3)1/zenphoto/bouquetins/2008-08-30_Bouquetin_9266.jpg0 echo cycle::getShow_MOD($heading, $speedctl, $albumobj, $imageobj, $width, $height, $crop, $shuffle, $linkslides, $controls, $returnpath, $imagenumber); } ?>