} $_zp_loaded_plugins[] = $extension; } if ($zp_request) { $_zp_obj = zp_apply_filter('load_theme_script', $_zp_obj); } //$_zp_script_timer['theme scripts'] = microtime(); if ($zp_request && file_exists(SERVERPATH . "/" . internalToFilesystem($_zp_obj))) { $hint = $show = false; if (checkAccess($hint, $show)) { // ok to view // re-initialize video dimensions if needed if (isImageVideo() & isset($_zp_flash_player)) { $_zp_current_image->updateDimensions(); } setThemeColumns(); } else { if (is_object($_zp_HTML_cache)) { // don't cache the logon page or you can never see the real one $_zp_HTML_cache->abortHTMLCache(); } $_zp_gallery_page = 'password.php'; $_zp_obj = SERVERPATH . '/' . THEMEFOLDER . '/' . $theme . '/password.php'; if (!file_exists(internalToFilesystem($_zp_obj))) { $_zp_obj = SERVERPATH . '/' . ZENFOLDER . '/password.php'; } } // Include the appropriate page for the requested object, and a 200 OK header. header('Content-Type: text/html; charset=' . LOCAL_CHARSET); header("HTTP/1.0 200 OK"); header("Status: 200 OK");
/** * @deprecated * @since 1.4.3 */ function resetCurrentAlbum() { deprecated_functions::notify(gettext('Just what do you expect this does?')); global $_zp_images, $_zp_current_album; $_zp_images = NULL; $_zp_current_album->images = NULL; setThemeColumns(); }
/** * @deprecated */ function normalizeColumns($albumColumns = NULL, $imageColumns = NULL) { deprecated_function_notify(gettext('Use instead the theme options for images and albums per row.'), E_USER_NOTICE); global $_firstPageImages; setOption('albums_per_row', $albumColumns); setOption('images_per_row', $imageColumns); setThemeColumns(); return $_firstPageImages; }
function resetCurrentAlbum() { global $_zp_images, $_zp_current_album; $_zp_images = NULL; $_zp_current_album->images = NULL; setThemeColumns(); }