function anis() { global $ALBUM_SET, $cat, $CONFIG; $superCage = Inspekt::makeSuperCage(); if ($superCage->get->keyExists('fullsize') && defined('DISPLAYIMAGE_PHP')) { if (!USER_ID && $CONFIG['allow_unlogged_access'] == 0) { $redirect = $redirect . "login.php"; header("Location: {$redirect}"); exit; } $cat = $superCage->get->keyExists('cat') ? $superCage->get->getInt('cat') : 0; get_meta_album_set($cat, $ALBUM_SET); anis_display_fullsize_pic(); ob_end_flush(); exit; } }
define('IN_COPPERMINE', true); define('DISPLAYIMAGE_PHP', true); define('INDEX_PHP', true); //define('SMILIES_PHP', true); require 'include/init.inc.php'; if (!USER_ID && $CONFIG['allow_unlogged_access'] == 0) { $redirect = $redirect . "login.php"; header("Location: {$redirect}"); exit; } $pos = isset($_GET['pos']) ? (int) $_GET['pos'] : 0; $pid = isset($_GET['pid']) ? (int) $_GET['pid'] : 0; $cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; $album = isset($_GET['album']) ? $_GET['album'] : ''; //get_meta_album_set in functions.inc.php will populate the $ALBUM_SET instead; matches $META_ALBUM_SET. get_meta_album_set($cat, $ALBUM_SET); $META_ALBUM_SET = $ALBUM_SET; //displayimage uses $ALBUM_SET but get_pic_data in functions now uses $META_ALBUM_SET // Retrieve data for the current picture if ($pos < 0 || $pid > 0) { $pid = $pos < 0 ? -$pos : $pid; $result = cpg_db_query("SELECT aid from {$CONFIG['TABLE_PICTURES']} WHERE pid='{$pid}' {$ALBUM_SET} LIMIT 1"); if (mysql_num_rows($result) == 0) { cpg_die(ERROR, $lang_errors['non_exist_ap'], __FILE__, __LINE__); } $row = mysql_fetch_array($result); $album = $row['aid']; $pic_data = get_pic_data($album, $pic_count, $album_name, -1, -1, false); for ($pos = 0; $pic_data[$pos]['pid'] != $pid && $pos < $pic_count; $pos++) { } $pic_data = get_pic_data($album, $pic_count, $album_name, $pos, 1, false);
*/ if (isset($page)) { $PAGE = max($page, 1); } else { $PAGE = 1; } // Gather data for categories $breadcrumb = ''; $cat_data = array(); $statistics = ''; $STATS_IN_ALB_LIST = false; $cpg_show_private_album = $CONFIG['allow_private_albums'] ? $CONFIG['show_private'] : true; if (isset($cat)) { get_meta_album_set($cat); } else { get_meta_album_set(0); } get_cat_list($breadcrumb, $cat_data, $statistics); pageheader($BREADCRUMB_TEXT ? $BREADCRUMB_TEXT : $lang_index_php['welcome']); $elements = explode('/', $CONFIG['main_page_layout']); $elements = CPGPluginAPI::filter('main_page_layout', $elements); /** * Loop through the $elements array to build the page using the parameters * set in the config */ foreach ($elements as $element) { if (preg_match("/(\\w+),*(\\d+)*/", $element, $matches)) { if (!isset($matches[2])) { // added to fix notice about undefined index $matches[2] = 0; }
$USER['lap'] = $PAGE; } elseif (isset($USER['lap'])) { $PAGE = max((int) $USER['lap'], 1); } else { $PAGE = 1; } // Gather data for categories $breadcrumb = ''; $cat_data = array(); $statistics = ''; $STATS_IN_ALB_LIST = false; $cpg_show_private_album = $CONFIG['allow_private_albums'] ? $CONFIG['show_private'] : true; if (isset($cat)) { get_meta_album_set($cat, $META_ALBUM_SET); } else { get_meta_album_set(0, $META_ALBUM_SET); } get_cat_list($breadcrumb, $cat_data, $statistics); pageheader($BREADCRUMB_TEXT ? $BREADCRUMB_TEXT : $lang_index_php['welcome']); $elements = preg_split("|/|", $CONFIG['main_page_layout'], -1, PREG_SPLIT_NO_EMPTY); /** * Loop through the $elements array to build the page using the parameters * set in the config */ foreach ($elements as $element) { if (preg_match("/(\\w+),*(\\d+)*/", $element, $matches)) { if (!isset($matches[2])) { // added to fix notice about undefined index $matches[2] = 0; } $matches = CPGPluginAPI::filter('plugin_block', $matches);
if (is_numeric($album)) { $album_name_keyword = get_album_name($album); $CURRENT_CAT_NAME = $album_name_keyword['title']; $META_ALBUM_SET = "AND aid IN (" . (int) $_GET['album'] . ")" . $ALBUM_SET; //Set the album to last uploaded $album = 'lastup'; } //If the album is not set set it to lastup - this is the default if (!isset($album)) { $album = 'lastup'; } if (isset($_GET['cat']) && $_GET['cat'] > 0) { $cat = $_GET['cat']; $album_name_keyword = easyrss_get_cat_name($cat); $CURRENT_CAT_NAME = $album_name_keyword['name']; get_meta_album_set($cat, $META_ALBUM_SET); } if (isset($_GET['cat']) && $_GET['cat'] < 0) { $cat = $_GET['cat']; $album_name_keyword = get_album_name(-$cat); $CURRENT_CAT_NAME = $album_name_keyword['title']; $META_ALBUM_SET = "AND aid IN (" . -$cat . ")" . $ALBUM_SET; } //Changes these to point to your site if the following is not giving correct results. $link_url = $CONFIG['ecards_more_pic_target'] . "displayimage.php?pos=-"; $image_url = $CONFIG['ecards_more_pic_target'] . "albums/"; $META_ALBUM_SET .= $forbidden_set_string; $data = get_pic_data($album, $thumb_count, $album_name, $lower_limit, $thumb_per_page); header("content-type: text/xml"); //maybe you must change the encoding to iso-8859-1. $rssHeader = <<<EOT