name, $_zp_current_image->filename); $theme = setupTheme(); include($obj = "$themepath/$theme/image.php"); } else if (in_context(ZP_ALBUM)) { // album page if(isset($_GET['zipfile']) && is_dir(realpath(getAlbumFolder() . $_GET['album']))){ createAlbumZip($_GET['album']); } else { if ($_zp_current_album->isDynamic()) { $search = $_zp_current_album->getSearchEngine(); $cookiepath = WEBPATH; if (WEBPATH == '') { $cookiepath = '/'; } zp_setcookie("zenphoto_image_search_params", $search->getSearchParams(), 0, $cookiepath); set_context(ZP_INDEX | ZP_ALBUM); $theme = setupTheme(); include($obj = "$themepath/$theme/album.php"); } else { handleSearchParms($_zp_current_album->name); $theme = setupTheme(); include($obj = "$themepath/$theme/album.php"); } } } else if (in_context(ZP_INDEX)) { // index page handleSearchParms(); $theme = setupTheme(); include($obj = "$themepath/$theme/index.php"); } if (!file_exists(SERVERPATH . "/" . $obj)) { echo ""; echo "\n\n
\n\n\nZenphoto error: missing theme page."; echo "\n"; echo "\n\n"; } $a = explode("/", $obj); if ($a[count($a)-1] != 'full-image.php') { echo "\n"; } ?>