function __construct() { $me = basename(dirname(__FILE__)); setThemeOptionDefault('Allow_search', true); setThemeOptionDefault('Theme_colors', 'light'); setThemeOptionDefault('albums_per_page', 6); setThemeOptionDefault('albums_per_row', 2); setThemeOptionDefault('images_per_page', 20); setThemeOptionDefault('images_per_row', 5); setThemeOptionDefault('image_size', 595); setThemeOptionDefault('image_use_side', 'longest'); setThemeOptionDefault('thumb_size', 100); setThemeOptionDefault('thumb_crop_width', 100); setThemeOptionDefault('thumb_crop_height', 100); setThemeOptionDefault('thumb_crop', 1); setThemeOptionDefault('thumb_transition', 1); setOptionDefault('colorbox_' . $me . '_album', 1); setOptionDefault('colorbox_' . $me . '_image', 1); setOptionDefault('colorbox_' . $me . '_search', 1); if (class_exists('cacheManager')) { $me = basename(dirname(__FILE__)); cacheManager::deleteThemeCacheSizes($me); cacheManager::addThemeCacheSize($me, getThemeOption('image_size'), NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, NULL); cacheManager::addThemeCacheSize($me, getThemeOption('thumb_size'), NULL, NULL, getThemeOption('thumb_crop_width'), getThemeOption('thumb_crop_height'), NULL, NULL, true, NULL, NULL, NULL); } }
function __construct() { setOptionDefault('htmlmeta_cache_control', 'no-cache'); setOptionDefault('htmlmeta_pragma', 'no-cache'); setOptionDefault('htmlmeta_robots', 'index'); setOptionDefault('htmlmeta_revisit_after', '10 Days'); setOptionDefault('htmlmeta_expires', '43200'); setOptionDefault('htmlmeta_tags', ''); // the html meta tag selector prechecked ones setOptionDefault('htmlmeta_htmlmeta_tags', '1'); setOptionDefault('htmlmeta_http-equiv-cache-control', '1'); setOptionDefault('htmlmeta_http-equiv-pragma', '1'); setOptionDefault('htmlmeta_name=keywords', '1'); setOptionDefault('htmlmeta_name-description', '1'); setOptionDefault('htmlmeta_name-robot', '1'); setOptionDefault('htmlmeta_name-publisher', '1'); setOptionDefault('htmlmeta_name-creator', '1'); setOptionDefault('htmlmeta_name-author', '1'); setOptionDefault('htmlmeta_name-copyright', '1'); setOptionDefault('htmlmeta_name-generator', '1'); setOptionDefault('htmlmeta_name-revisit-after', '1'); setOptionDefault('htmlmeta_name-expires', '1'); setOptionDefault('htmlmeta_name-generator', '1'); setOptionDefault('htmlmeta_name-date', '1'); setOptionDefault('htmlmeta_canonical-url', '0'); setOptionDefault('htmlmeta_sitelogo', ''); setOptionDefault('htmlmeta_twittercard', ''); setOptionDefault('htmlmeta_twittername', ''); setOptionDefault('htmlmeta_ogimage_width', 1280); setOptionDefault('htmlmeta_ogimage_height', 900); if (class_exists('cacheManager')) { cacheManager::deleteThemeCacheSizes('html_meta_tags'); cacheManager::addThemeCacheSize('html_meta_tags', NULL, getOption('htmlmeta_ogimage_width'), getOption('htmlmeta_ogimage_height'), NULL, NULL, NULL, NULL, NULL, NULL, NULL, true); } }
function ThemeOptions() { setThemeOptionDefault('Allow_search', true); setThemeOptionDefault('demoTheme_colors', 'none'); setThemeOptionDefault('albums_per_page', 6); setThemeOptionDefault('albums_per_row', 2); setThemeOptionDefault('images_per_page', 20); setThemeOptionDefault('images_per_row', 5); setThemeOptionDefault('image_size', 595); setThemeOptionDefault('image_use_side', 'longest'); setThemeOptionDefault('thumb_size', 100); setThemeOptionDefault('thumb_crop_width', 100); setThemeOptionDefault('thumb_crop_height', 100); setThemeOptionDefault('thumb_crop', 1); setThemeOptionDefault('thumb_transition', 1); /* You can of course also set other options if your theme requires this. This example enables the colorbox plugin if it is used for the theme pages noted. */ setOptionDefault('colorbox_default_album', 1); setOptionDefault('colorbox_default_image', 1); setOptionDefault('colorbox_default_search', 1); /* This is adds support for the cache manager so you can pre-cache your thumbs and other sized images as defined. Zenphoto generally does this on the fly when needed but on very slow servers or if you have really a lot of images that also are quite big it might be necessary to do this. */ if (class_exists('cacheManager')) { cacheManager::deleteThemeCacheSizes('default'); cacheManager::addThemeCacheSize('default', getThemeOption('image_size'), NULL, NULL, NULL, NULL, NULL, NULL, false, getOption('fullimage_watermark'), NULL, NULL); cacheManager::addThemeCacheSize('default', getThemeOption('thumb_size'), NULL, NULL, getThemeOption('thumb_crop_width'), getThemeOption('thumb_crop_height'), NULL, NULL, true, getOption('Image_watermark'), NULL, NULL); } }
function __construct() { $me = basename(dirname(__FILE__)); setThemeOptionDefault('zenpage_zp_index_news', false); setThemeOptionDefault('Allow_search', true); setThemeOptionDefault('Use_thickbox', true); setThemeOptionDefault('zenpage_homepage', 'none'); setThemeOptionDefault('zenpage_contactpage', true); setThemeOptionDefault('zenpage_custommenu', false); setThemeOptionDefault('albums_per_page', 6); setThemeOptionDefault('albums_per_row', 2); setThemeOptionDefault('images_per_page', 20); setThemeOptionDefault('images_per_row', 5); setThemeOption('image_size', 580, NULL, 'zenpage'); setThemeOption('image_use_side', 'longest', NULL, 'zenpage'); setThemeOption('thumb_size', 95, NULL, 'zenpage'); setThemeOptionDefault('thumb_crop_width', 95); setThemeOptionDefault('thumb_crop_height', 95); setThemeOptionDefault('thumb_crop', 1); setThemeOptionDefault('thumb_transition', 1); if (extensionEnabled('zenpage')) { setThemeOption('custom_index_page', 'gallery', NULL, 'zenpage', false); } else { setThemeOption('custom_index_page', '', NULL, 'zenpage', false); } if (class_exists('cacheManager')) { cacheManager::deleteThemeCacheSizes($me); cacheManager::addThemeCacheSize($me, NULL, 580, 580, NULL, NULL, NULL, NULL, NULL, false, NULL, true); cacheManager::addThemeCacheSize($me, 95, NULL, NULL, getThemeOption('thumb_crop_width'), getThemeOption('thumb_crop_height'), NULL, NULL, true, NULL, NULL, NULL); } if (function_exists('createMenuIfNotExists')) { $menuitems = array(array('type' => 'menulabel', 'title' => gettext('News Articles'), 'link' => '', 'show' => 1, 'nesting' => 0), array('type' => 'menufunction', 'title' => gettext('All news'), 'link' => 'printAllNewsCategories("All news",TRUE,"","menu-active",false,false,false,"list",false,getOption("menu_manager_truncate_string"));', 'show' => 1, 'include_li' => 0, 'nesting' => 1), array('type' => 'menulabel', 'title' => gettext('Gallery'), 'link' => '', 'show' => 1, 'nesting' => 0), array('type' => 'custompage', 'title' => gettext('Gallery index'), 'link' => 'gallery', 'show' => 1, 'nesting' => 1), array('type' => 'menufunction', 'title' => gettext('All Albums'), 'link' => 'printAlbumMenuList("list",NULL,"","menu-active","submenu","menu-active","",false,false,false,false,getOption("menu_manager_truncate_string"));', 'show' => 1, 'include_li' => 0, 'nesting' => 1), array('type' => 'menulabel', 'title' => gettext('Pages'), 'link' => '', 'show' => 1, 'nesting' => 0), array('type' => 'menufunction', 'title' => gettext('All pages'), 'link' => 'printPageMenu("list","","menu-active","submenu","menu-active","",0,false,getOption("menu_manager_truncate_string"));', 'show' => 1, 'include_li' => 0, 'nesting' => 1)); createMenuIfNotExists($menuitems, 'zenpage'); } }
function ThemeOptions() { // force core theme options for this theme setThemeOption('albums_per_row', 3, null, 'libratus'); setThemeOption('images_per_row', 6, null, 'libratus'); setThemeOption('image_use_side', 'longest', null, 'libratus'); setThemeOptionDefault('image_size', 800, null, 'libratus'); setThemeOption('image_use_side', 'longest', null, 'libratus'); setThemeOption('thumb_size', 300, null, 'libratus'); // set core theme option defaults setThemeOptionDefault('albums_per_page', 15); setThemeOptionDefault('images_per_page', 30); setThemeOptionDefault('thumb_crop', false); // set libratus option defaults setThemeOptionDefault('libratus_maxwidth', '1400'); setThemeOptionDefault('libratus_ss_type', 'random'); setThemeOptionDefault('libratus_ss_album', ''); setThemeOptionDefault('libratus_ss_interval', 5000); setThemeOptionDefault('libratus_index_fullwidth', false); setThemeOptionDefault('libratus_date_albums', true); setThemeOptionDefault('libratus_date_images', true); setThemeOptionDefault('libratus_date_news', true); setThemeOptionDefault('libratus_date_pages', true); setThemeOptionDefault('libratus_social', true); setThemeOptionDefault('libratus_download', true); setThemeOptionDefault('libratus_customcss', ''); setThemeOptionDefault('libratus_facebook', ''); setThemeOptionDefault('libratus_twitter', ''); setThemeOptionDefault('libratus_google', ''); setThemeOptionDefault('libratus_copy', '© ' . date("Y")); setThemeOptionDefault('libratus_analytics', ''); setThemeOptionDefault('libratus_analytics_type', 'universal'); setThemeOptionDefault('libratus_stats_images_popular', true); setThemeOptionDefault('libratus_stats_images_latestbyid', true); setThemeOptionDefault('libratus_stats_images_mostrated', true); setThemeOptionDefault('libratus_stats_images_toprated', true); setThemeOptionDefault('libratus_stats_albums_popular', true); setThemeOptionDefault('libratus_stats_albums_latestbyid', true); setThemeOptionDefault('libratus_stats_albums_mostrated', true); setThemeOptionDefault('libratus_stats_albums_toprated', true); setThemeOptionDefault('libratus_stats_albums_latestupdated', true); setThemeOptionDefault('libratus_stats_number', 30); setThemeOptionDefault('libratus_bottom_stats_number', 5); setThemeOptionDefault('libratus_bottom_stats_perrow', 3); setThemeOptionDefault('libratus_stats_images_popular_bottom', true); setThemeOptionDefault('libratus_stats_images_latestbyid_bottom', true); setThemeOptionDefault('libratus_stats_images_toprated_bottom', true); setThemeOptionDefault('libratus_related_maxnumber', 10); if (class_exists('cacheManager')) { $me = basename(dirname(__FILE__)); cacheManager::deleteThemeCacheSizes($me); cacheManager::addThemeCacheSize($me, getThemeOption('image_size'), NULL, NULL, NULL, NULL, NULL, NULL, false, getOption('fullimage_watermark'), NULL, NULL); // full image size cacheManager::addThemeCacheSize($me, getThemeOption('thumb_size'), NULL, NULL, NULL, NULL, NULL, NULL, true, getOption('Image_watermark'), NULL, NULL); // default thumb cacheManager::addThemeCacheSize($me, NULL, getThemeOption('libratus_maxwidth'), 550, NULL, NULL, NULL, NULL, true, getOption('Image_watermark'), NULL, NULL); //big header images } }
/** * The top part of the caching system */ public static function startBuffer() { //naming issues here, pls fix file naming issues self::$script = new DFile(str_replace(array('?', '/', ','), '_', self::$config['cacheFolder'] . self::$config['cachePrefix'] . DRequest::SERVER('REQUEST_URI') . '.cache')); if (self::$script->exists()) { if (self::$script->lastModifiedTime() > time() - self::$config['cacheThreshold']) { include_once self::$script->handle; exit; } } ob_start('ob_gzhandler'); }
function __construct() { // force core theme options for this theme setThemeOption('albums_per_row', 2, null, 'zpfocus'); setThemeOption('images_per_row', 3, null, 'zpfocus'); setThemeOption('thumb_size', 160, null, 'zpfocus'); setThemeOption('thumb_crop', 0, null, 'zpfocus'); setThemeOption('image_size', 800, null, 'zpfocus'); //for sized cb target option only setThemeOption('image_use_side', 'longest', null, 'zpfocus'); setThemeOption('custom_index_page', '', null, 'zpfocus'); // set core theme option defaults setThemeOptionDefault('albums_per_page', 6); setThemeOptionDefault('images_per_page', 9); setThemeOptionDefault('thumb_transition', 2); // set theme option defaults $str = ''; setOptionDefault('zpfocus_tagline', getAllTranslations($str)); gettext($str = 'A ZenPhoto / ZenPage Powered Theme'); setThemeOptionDefault('zpfocus_allow_search', true); setThemeOptionDefault('zpfocus_show_archive', true); setThemeOptionDefault('zpfocus_use_colorbox', true); setThemeOptionDefault('zpfocus_use_colorbox_slideshow', true); setThemeOptionDefault('zpfocus_homepage', 'none'); setThemeOptionDefault('zpfocus_spotlight', 'manual'); setOptionDefault('zpfocus_spotlight_text', getAllTranslations($str)); gettext($str = '<p>This is the <span class="spotlight-span">spotlight</span> area that can be set in the theme options. You can either enter the text manually in the options or set it to display the latest news if ZenPage is being used. If you want nothing to appear here, set the spotlight to none.</p>'); setThemeOptionDefault('zpfocus_show_credit', false); setThemeOptionDefault('zpfocus_menutype', 'dropdown'); setThemeOptionDefault('zpfocus_logotype', true); setThemeOptionDefault('zpfocus_logofile', 'logo.jpg'); setThemeOptionDefault('zpfocus_showrandom', 'rotator'); setThemeOptionDefault('zpfocus_rotatoreffect', 'fade'); setThemeOptionDefault('zpfocus_rotatorspeed', '3000'); setThemeOptionDefault('zpfocus_cbtarget', true); setThemeOptionDefault('zpfocus_cbstyle', 'example3'); setThemeOptionDefault('zpfocus_cbtransition', 'fade'); setThemeOptionDefault('zpfocus_cbssspeed', '2500'); setThemeOptionDefault('zpfocus_final_link', 'nolink'); setThemeOptionDefault('zpfocus_news', true); // plugin options setOptionDefault('jcarousel_zpfocus_image', 1); if (class_exists('cacheManager')) { cacheManager::deleteThemeCacheSizes('zpfocus'); cacheManager::addThemeCacheSize('zpfocus', null, 600, 900, null, null, null, null, false, getOption('fullimage_watermark'), false, true); cacheManager::addThemeCacheSize('zpfocus', null, 300, 300, 300, 300, null, null, true, getOption('fullimage_watermark'), false, false); if (getOption('zpfocus_use_colorbox') && getOption('zpfocus_cbtarget')) { cacheManager::addThemeCacheSize('zpfocus', 800, null, null, null, null, null, null, false, getOption('fullimage_watermark'), false, false); } } }
function jcarouselOptions() { if (OFFSET_PATH == 2) { setOptionDefault('jcarousel_scroll', '3'); setOptionDefault('jcarousel_width', '50'); setOptionDefault('jcarousel_height', '50'); setOptionDefault('jcarousel_croph', '50'); setOptionDefault('jcarousel_cropw', '50'); setOptionDefault('jcarousel_fullimagelink', ''); setOptionDefault('jcarousel_vertical', 0); cacheManager::deleteThemeCacheSizes('jcarousel_thumb_nav'); cacheManager::addThemeCacheSize('jcarousel_thumb_nav', NULL, getOption('jcarousel_width'), getOption('jcarousel_height'), getOption('jcarousel_cropw'), getOption('jcarousel_croph'), NULL, NULL, true, NULL, NULL, NULL); } }
function __construct() { setThemeOptionDefault('albums_per_row', 3); setThemeOptionDefault('albums_per_page', 9); setThemeOptionDefault('images_per_row', 5); setThemeOptionDefault('images_per_page', 20); setThemeOptionDefault('thumb_size', 150); setThemeOptionDefault('thumb_crop', 1); setThemeOptionDefault('thumb_crop_width', 150); setThemeOptionDefault('thumb_crop_height', 150); setThemeOptionDefault('image_size', 700); setThemeOptionDefault('image_use_side', 'longest'); setThemeOptionDefault('use_image_logo_filename', 'banniere3.jpg'); setThemeOptionDefault('show_image_logo_on_image', false); setThemeOptionDefault('css_style', 'dark'); setThemeOptionDefault('links_style', 'default'); setThemeOptionDefault('zenpage_homepage', 'none'); setThemeOptionDefault('show_archive', false); setThemeOptionDefault('allow_search', true); setThemeOptionDefault('show_tag', true); setThemeOptionDefault('image_statistic', 'random'); setThemeOptionDefault('use_galleriffic', true); setThemeOptionDefault('galleriffic_delai', 3000); setThemeOptionDefault('use_colorbox_album', false); setThemeOptionDefault('use_colorbox_image', false); setThemeOptionDefault('show_exif', true); setOption('colorbox_zpArdoise_album', 1); setOption('colorbox_zpArdoise_archive', 1); setOption('colorbox_zpArdoise_contact', 1); setOption('colorbox_zpArdoise_favorites', 1); setOption('colorbox_zpArdoise_gallery', 1); setOption('colorbox_zpArdoise_image', 1); setOption('colorbox_zpArdoise_index', 1); setOption('colorbox_zpArdoise_news', 1); setOption('colorbox_zpArdoise_pages', 1); setOption('colorbox_zpArdoise_password', 1); setOption('colorbox_zpArdoise_register', 1); setOption('colorbox_zpArdoise_search', 1); if (class_exists('cacheManager')) { $me = basename(dirname(__FILE__)); cacheManager::deleteThemeCacheSizes($me); cacheManager::addThemeCacheSize($me, getThemeOption('thumb_size'), NULL, NULL, getThemeOption('thumb_crop_width'), getThemeOption('thumb_crop_height'), NULL, NULL, true); if (getOption('use_galleriffic')) { cacheManager::addThemeCacheSize($me, 85, NULL, NULL, 85, 85, NULL, NULL, true); cacheManager::addThemeCacheSize($me, 525, NULL, NULL, NULL, NULL, NULL, NULL, false); } cacheManager::addThemeCacheSize($me, getThemeOption('image_size'), NULL, NULL, NULL, NULL, NULL, NULL, false); } }
function viewer_size_image_options() { if (OFFSET_PATH == 2) { $default = getOption('image_size'); setOptionDefault('viewer_size_image_sizes', '$s=' . ($default - 200) . '; $s=' . ($default - 100) . '; $s=' . $default . '; $s=' . ($default + 100) . '; $s=' . ($default + 200) . ';'); setOptionDefault('viewer_size_image_default', '$s=' . $default); setOptionDefault('viewer_size_image_radio', 2); cacheManager::deleteThemeCacheSizes('viewer_size_image'); cacheManager::addThemeCacheSize('viewer_size_image', $default - 200, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); cacheManager::addThemeCacheSize('viewer_size_image', $default - 100, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); cacheManager::addThemeCacheSize('viewer_size_image', $default, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); cacheManager::addThemeCacheSize('viewer_size_image', $default + 100, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); cacheManager::addThemeCacheSize('viewer_size_image', $default + 200, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); } }
function __construct() { if (OFFSET_PATH == 2) { setOptionDefault('htmlmeta_cache_control', 'no-cache'); setOptionDefault('htmlmeta_pragma', 'no-cache'); setOptionDefault('htmlmeta_robots', 'index'); setOptionDefault('htmlmeta_revisit_after', '10'); setOptionDefault('htmlmeta_expires', '43200'); setOptionDefault('htmlmeta_tags', ''); if (getOption('htmlmeta_og-title')) { // assume this will be set setOptionDefault('htmlmeta_opengraph', 1); } //remove obsolete old options purgeOption('htmlmeta_og-title'); purgeOption('htmlmeta_og-image'); purgeOption('htmlmeta_og-description'); purgeOption('htmlmeta_og-url'); purgeOption('htmlmeta_og-type'); // the html meta tag selector prechecked ones setOptionDefault('htmlmeta_htmlmeta_tags', '1'); setOptionDefault('htmlmeta_tags_threshold', 1); setOptionDefault('htmlmeta_http-equiv-cache-control', '1'); setOptionDefault('htmlmeta_http-equiv-pragma', '1'); setOptionDefault('htmlmeta_name=keywords', '1'); setOptionDefault('htmlmeta_name-description', '1'); setOptionDefault('htmlmeta_name-robot', '1'); setOptionDefault('htmlmeta_name-publisher', '1'); setOptionDefault('htmlmeta_name-creator', '1'); setOptionDefault('htmlmeta_name-author', '1'); setOptionDefault('htmlmeta_name-copyright', '1'); setOptionDefault('htmlmeta_name-generator', '1'); setOptionDefault('htmlmeta_name-revisit-after', '1'); setOptionDefault('htmlmeta_name-expires', '1'); setOptionDefault('htmlmeta_name-generator', '1'); setOptionDefault('htmlmeta_name-date', '1'); setOptionDefault('htmlmeta_canonical-url', '0'); setOptionDefault('htmlmeta_sitelogo', ''); setOptionDefault('htmlmeta_twittercard', ''); setOptionDefault('htmlmeta_twittername', ''); setOptionDefault('htmlmeta_ogimage_width', 1280); setOptionDefault('htmlmeta_ogimage_height', 900); if (class_exists('cacheManager')) { cacheManager::deleteThemeCacheSizes('html_meta_tags'); cacheManager::addThemeCacheSize('html_meta_tags', NULL, getOption('htmlmeta_ogimage_width'), getOption('htmlmeta_ogimage_height'), NULL, NULL, NULL, NULL, NULL, NULL, NULL, true); } } }
function __construct() { if (OFFSET_PATH == 2) { setOptionDefault('bxslider_minitems', '3'); setOptionDefault('bxslider_maxitems', '8'); setOptionDefault('bxslider_width', '50'); setOptionDefault('bxslider_height', '50'); setOptionDefault('bxslider_croph', '50'); setOptionDefault('bxslider_cropw', '50'); setOptionDefault('bxslider_speed', '500'); setOptionDefault('bxslider_fullimagelink', ''); setOptionDefault('bxslider_mode', 'horizontal'); cacheManager::deleteThemeCacheSizes('bxslider_thumb_nav'); cacheManager::addThemeCacheSize('bxslider_thumb_nav', NULL, getOption('bxslider_width'), getOption('bxslider_height'), getOption('bxslider_cropw'), getOption('bxslider_croph'), NULL, NULL, true, NULL, NULL, NULL); } }
function __construct() { if (OFFSET_PATH == 2) { setOptionDefault('galleryArticles_images', NULL); setOptionDefault('galleryArticles_albums', NULL); setOptionDefault('galleryArticles_category', NULL); setOptionDefault('galleryArticles_albumCategory', 0); $text = gettext('New album: %1$s'); setOptionDefault('galleryArticles_album_text', getAllTranslations($text)); $text = gettext('New image: [%2$s]%1$s'); setOptionDefault('galleryArticles_image_text', getAllTranslations($text)); setOptionDefault('galleryArticles_size', 80); setOptionDefault('galleryArticles_protected', 0); cacheManager::deleteThemeCacheSizes('galleryArticles'); cacheManager::addThemeCacheSize('galleryArticles', getOption('galleryArticles_size'), NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, NULL); } }
function __construct() { $me = basename(dirname(__FILE__)); setThemeOptionDefault('Theme_logo', ''); setThemeOptionDefault('Allow_search', true); setThemeOptionDefault('Slideshow', true); setThemeOptionDefault('Graphic_logo', '*'); setThemeOptionDefault('Watermark_head_image', true); setThemeOptionDefault('effervescence_personality', 'image_page'); setThemeOptionDefault('effervescence_transition', 'slide-hori'); setThemeOptionDefault('effervescence_caption_location', 'image'); setThemeOptionDefault('Theme_colors', 'kish-my father'); setThemeOptionDefault('effervescence_menu', ''); setThemeOptionDefault('albums_per_page', 9); setThemeOptionDefault('albums_per_row', 3); setThemeOptionDefault('images_per_page', 20); setThemeOptionDefault('images_per_row', 5); setThemeOption('image_size', 595, NULL, 'effervescence+'); setThemeOption('image_use_side', 'longest', NULL, 'effervescence+'); setThemeOptionDefault('thumb_transition', 1); setThemeOptionDefault('thumb_size', 90); setThemeOptionDefault('thumb_crop_width', 90); setThemeOptionDefault('thumb_crop_height', 90); setThemeOptionDefault('thumb_crop', 1); setThemeOptionDefault('gallery_index', 1); setThemeOptionDefault('effervescence_daily_album_image', 1); setThemeOptionDefault('effervescence_daily_album_image_effect', ''); setOptionDefault('colorbox_' . $me . '_album', 1); setOptionDefault('colorbox_' . $me . '_favorites', 1); setOptionDefault('colorbox_' . $me . '_image', 1); setOptionDefault('colorbox_' . $me . '_search', 1); if (class_exists('cacheManager')) { cacheManager::deleteThemeCacheSizes($me); cacheManager::addThemeCacheSize($me, 595, NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, NULL); cacheManager::addThemeCacheSize($me, getThemeOption('thumb_size'), NULL, NULL, getThemeOption('thumb_crop_width'), getThemeOption('thumb_crop_height'), NULL, NULL, true, NULL, NULL, NULL); cacheManager::addThemeCacheSize($me, NULL, 180, 80, NUll, NULL, NULL, NULL, true, NULL, NULL, NULL); } if (function_exists('createMenuIfNotExists')) { $menuitems = array(array('type' => 'menulabel', 'title' => gettext('News Articles'), 'link' => '', 'show' => 1, 'nesting' => 0), array('type' => 'menufunction', 'title' => gettext('All news'), 'link' => 'printAllNewsCategories("All news",TRUE,"","menu-active",false,false,false,"list",false,getOption("menu_manager_truncate_string"));', 'show' => 1, 'include_li' => 0, 'nesting' => 1), array('type' => 'html', 'title' => gettext('News Articles Rule'), 'link' => '<li class="menu_rule menu_menulabel"></li>', 'show' => 1, 'include_li' => 0, 'nesting' => 0), array('type' => 'custompage', 'title' => gettext('Gallery'), 'link' => 'gallery', 'show' => 1, 'nesting' => 0), array('type' => 'menufunction', 'title' => gettext('All Albums'), 'link' => 'printAlbumMenuList("list",NULL,"","menu-active","submenu","menu-active","",false,false,false,false,getOption("menu_manager_truncate_string"));', 'show' => 1, 'include_li' => 0, 'nesting' => 1), array('type' => 'html', 'title' => gettext('Gallery Rule'), 'link' => '<li class="menu_rule menu_menulabel"></li>', 'show' => 1, 'include_li' => 0, 'nesting' => 0), array('type' => 'menulabel', 'title' => gettext('Pages'), 'link' => '', 'show' => 1, 'nesting' => 0), array('type' => 'menufunction', 'title' => gettext('All pages'), 'link' => 'printPageMenu("list","","menu-active","submenu","menu-active","",0,false,getOption("menu_manager_truncate_string"));', 'show' => 1, 'include_li' => 0, 'nesting' => 1, getOption("menu_manager_truncate_string")), array('type' => 'html', 'title' => gettext('Pages Rule'), 'link' => '<li class="menu_rule menu_menulabel"></li>', 'show' => 1, 'include_li' => 0, 'nesting' => 0), array('type' => 'menulabel', 'title' => gettext('Archive'), 'link' => '', 'show' => 1, 'nesting' => 0), array('type' => 'custompage', 'title' => gettext('Gallery and News'), 'link' => 'archive', 'show' => 1, 'nesting' => 1), array('type' => 'html', 'title' => gettext('Archive Rule'), 'link' => '<li class="menu_rule menu_menulabel"></li>', 'show' => 1, 'include_li' => 0, 'nesting' => 0)); if (extensionEnabled('rss')) { $rssItems = array(array('type' => 'menulabel', 'title' => gettext('RSS'), 'link' => '', 'show' => 1, 'nesting' => 0), array('type' => 'customlink', 'title' => gettext('Gallery'), 'link' => WEBPATH . '/index.php?rss', 'show' => 1, 'nesting' => 1), array('type' => 'customlink', 'title' => gettext('News'), 'link' => getRSSLink('news'), 'show' => 1, 'nesting' => 1), array('type' => 'customlink', 'title' => gettext('News and Gallery'), 'link' => getRSSLink('news') . '&withimages', 'show' => 1, 'nesting' => 1)); $menuitems = array_merge($menuitems, $rssItems); } createMenuIfNotExists($menuitems, 'effervescence'); } }
function gslideshow() { setOptionDefault('gslideshow_transition', 'fade'); setOptionDefault('gslideshow_playspeed', '4000'); setOptionDefault('gslideshow_clicknext', false); setOptionDefault('gslideshow_upscale', false); setOptionDefault('gslideshow_always', false); setOptionDefault('gslideshow_thumbsize', '100'); setOptionDefault('gslideshow_mediumsize', '800'); setOptionDefault('gslideshow_bigsize', '1200'); setOptionDefault('gslideshow_style', 'dark'); if (class_exists('cacheManager')) { cacheManager::deleteThemeCacheSizes('gslideshow'); cacheManager::addThemeCacheSize('gslideshow', getOption('gslideshow_thumbsize'), null, null, null, null, null, null, null, null, null, true); cacheManager::addThemeCacheSize('gslideshow', getOption('gslideshow_mediumsize'), null, null, null, null, null, null, null, null, null, true); cacheManager::addThemeCacheSize('gslideshow', getOption('gslideshow_bigsize'), null, null, null, null, null, null, null, null, null, true); } }
function tinymceOptions() { setOptionDefault('tinymce_zenphoto', 'zenphoto-default.js.php'); setOptionDefault('tinymce_zenpage', 'zenpage-default-full.js.php'); setOptionDefault('tinymce_tinyzenpage_customimagesize', '400'); setOptionDefault('tinymce_tinyzenpage_customthumb_size', '120'); setOptionDefault('tinymce_tinyzenpage_customthumb_cropwidth', '120'); setOptionDefault('tinymce_tinyzenpage_customthumb_cropheight', '120'); setOptionDefault('tinymce_tinyzenpage_flowplayer_width', '320'); setOptionDefault('tinymce_tinyzenpage_flowplayer_height', '240'); setOptionDefault('tinymce_tinyzenpage_flowplayer_mp3_height', '26'); if (class_exists('cacheManager')) { cacheManager::deleteThemeCacheSizes('tinyzenpage'); cacheManager::addThemeCacheSize('tinyzenpage', NULL, getOption('tinymce_tinyzenpage_customimagesize'), getOption('tinymce_tinyzenpage_customthumb_size'), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); cacheManager::addThemeCacheSize('tinyzenpage', NULL, getOption('tinymce_tinyzenpage_flowplayer_width'), getOption('tinymce_tinyzenpage_flowplayer_height'), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); cacheManager::addThemeCacheSize('tinyzenpage', 85, NULL, NULL, 85, 85, NULL, NULL, true, NULL, NULL, NULL); } }
function slideshow() { global $_zp_gallery; if (OFFSET_PATH == 2) { //setOptionDefault('slideshow_size', '595'); setOptionDefault('slideshow_width', '595'); setOptionDefault('slideshow_height', '595'); setOptionDefault('slideshow_mode', 'jQuery'); setOptionDefault('slideshow_effect', 'fade'); setOptionDefault('slideshow_speed', '1000'); setOptionDefault('slideshow_timeout', '3000'); setOptionDefault('slideshow_showdesc', ''); setOptionDefault('slideshow_colorbox_transition', 'fade'); // incase the flowplayer has not been enabled!!! setOptionDefault('slideshow_colorbox_imagetype', 'sizedimage'); setOptionDefault('slideshow_colorbox_imagetitle', 1); cacheManager::deleteThemeCacheSizes('slideshow'); cacheManager::addThemeCacheSize('slideshow', NULL, getOption('slideshow_width'), getOption('slideshow_height'), NULL, NULL, NULL, NULL, NULL, NULL, NULL, true); } }
function __construct() { global $_zp_gallery; if (OFFSET_PATH == 2) { //normal slideshow setOptionDefault('cycle-slideshow_width', '595'); setOptionDefault('cycle-slideshow_height', '595'); setOptionDefault('cycle-slideshow_mode', 'cycle'); setOptionDefault('cycle-slideshow_effect', 'fade'); setOptionDefault('cycle-slideshow_speed', '1000'); setOptionDefault('cycle-slideshow_timeout', '3000'); setOptionDefault('cycle-slideshow_showdesc', 0); // colorbox mode setOptionDefault('cycle-slideshow_colorbox_transition', 'fade'); setOptionDefault('cycle-slideshow_colorbox_imagetype', 'sizedimage'); setOptionDefault('cycle-slideshow_colorbox_imagetitle', 1); cacheManager::deleteThemeCacheSizes('cycle'); cacheManager::addThemeCacheSize('cycle', NULL, getOption('cycle-slideshow_width'), getOption('cycle-slideshow_height'), NULL, NULL, NULL, NULL, NULL, NULL, NULL, true); } }
function pagedthumbsOptions() { if (OFFSET_PATH == 2) { setOptionDefault('pagedthumbs_imagesperpage', '10'); setOptionDefault('pagedthumbs_counter', ''); gettext($str = '« prev thumbs'); setOptionDefault('pagedthumbs_prevtext', getAllTranslations($str)); gettext($str = 'next thumbs »'); setOptionDefault('pagedthumbs_nexttext', getAllTranslations($str)); setOptionDefault('pagedthumbs_width', '50'); setOptionDefault('pagedthumbs_height', '50'); setOptionDefault('pagedthumbs_crop', '1'); setOptionDefault('pagedthumbs_placeholders', ''); setOptionDefault('pagedthumbs_pagelist', ''); setOptionDefault('pagedthumbs_pagelistprevnext', ''); setOptionDefault('pagedthumbs_pagelistlength', '6'); cacheManager::deleteThemeCacheSizes('paged_thumbs_nav'); cacheManager::addThemeCacheSize('paged_thumbs_nav', NULL, getOption('pagedthumbs_width'), getOption('pagedthumbs_height'), NULL, NULL, NULL, NULL, true, NULL, NULL, NULL); } }
function ThemeOptions() { // force core theme options for this theme setThemeOption('albums_per_row', 3, null, 'zpskeleton'); setThemeOption('images_per_row', 8, null, 'zpskeleton'); setThemeOption('thumb_size', 220, null, 'zpskeleton'); setThemeOption('image_size', 630, null, 'zpskeleton'); setThemeOption('image_use_side', 'longest', null, 'zpskeleton'); setThemeOption('custom_index_page', 'none', null, 'zpskeleton'); // set core theme option defaults setThemeOptionDefault('albums_per_page', 6); setThemeOptionDefault('images_per_page', 9); setThemeOptionDefault('thumb_transition', 2); setThemeOptionDefault('thumb_crop', 0); // set theme option defaults setThemeOptionDefault('zpskel_usenews', true); setThemeOptionDefault('zpskel_debuguser', false); setThemeOptionDefault('zpskel_disablewarning', false); setThemeOptionDefault('zpskel_pptarget', 'sized'); setThemeOptionDefault('zpskel_strip', 'latest'); setThemeOptionDefault('zpskel_thumbsize', 'large'); setThemeOptionDefault('zpskel_download', true); setThemeOptionDefault('zpskel_archive', true); setThemeOptionDefault('zenpage_homepage', 'none'); if (class_exists('cacheManager')) { cacheManager::deleteThemeCacheSizes('zpskeleton'); cacheManager::addThemeCacheSize('zpskeleton', null, 420, 200, 420, 200, null, null, null, true, getOption('Image_watermark'), false, false); // album thumbs cacheManager::addThemeCacheSize('zpskeleton', 220, null, null, null, null, null, null, true, getOption('Image_watermark'), false, false); // image thumbs: uncropped large cacheManager::addThemeCacheSize('zpskeleton', 190, null, null, null, null, null, null, true, getOption('Image_watermark'), false, false); // image thumbs: uncropped small cacheManager::addThemeCacheSize('zpskeleton', null, 190, 190, 190, 190, null, null, true, getOption('Image_watermark'), false, false); // bottom image strip cacheManager::addThemeCacheSize('zpskeleton', 420, null, null, null, null, null, null, false, getOption('fullimage_watermark'), null, null); // mobile full cacheManager::addThemeCacheSize('zpskeleton', 630, null, null, null, null, null, null, false, getOption('fullimage_watermark'), null, null); // desktop full } }
function __construct() { $me = basename(dirname(__FILE__)); setThemeOptionDefault('Allow_search', true); setThemeOptionDefault('Allow_cloud', true); setThemeOptionDefault('albums_per_page', 6); setThemeOptionDefault('albums_per_row', 2); setThemeOptionDefault('images_per_page', 20); setThemeOptionDefault('images_per_row', 5); setThemeOption('image_size', 520, NULL, 'garland'); setThemeOption('image_use_side', 'longest', NULL, 'garland'); setThemeOptionDefault('thumb_transition', 1); setThemeOption('thumb_size', 85, NULL, 'garland'); setThemeOptionDefault('thumb_crop_width', 85); setThemeOptionDefault('thumb_crop_height', 85); setThemeOptionDefault('thumb_crop', 1); setThemeOptionDefault('garland_customHome', ''); setThemeOptionDefault('garland_personality', 'image_page'); setThemeOptionDefault('garland_transition', 'slide-hori'); setThemeOptionDefault('garland_caption_location', 'image'); setOptionDefault('colorbox_' . $me . '_image', 1); setOptionDefault('colorbox_' . $me . '_album', 1); setOptionDefault('colorbox_' . $me . '_search', 1); setThemeOptionDefault('garland_menu', ''); if (extensionEnabled('zenpage')) { setThemeOption('custom_index_page', 'gallery', NULL, 'garland', false); } else { setThemeOption('custom_index_page', '', NULL, 'garland', false); } if (class_exists('cacheManager')) { $me = basename(dirname(__FILE__)); cacheManager::deleteThemeCacheSizes($me); cacheManager::addThemeCacheSize($me, 520, NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, NULL); cacheManager::addThemeCacheSize($me, 85, NULL, NULL, getThemeOption('thumb_crop_width'), getThemeOption('thumb_crop_height'), NULL, NULL, true, NULL, NULL, NULL); } if (function_exists('createMenuIfNotExists')) { $menuitems = array(array('type' => 'menulabel', 'title' => gettext('News Articles'), 'link' => '', 'show' => 1, 'nesting' => 0), array('type' => 'menufunction', 'title' => gettext('All news'), 'link' => 'printAllNewsCategories("All news",TRUE,"","menu-active",false,"inner_ul",false,"list",false,getOption("menu_manager_truncate_string"));', 'show' => 1, 'include_li' => 0, 'nesting' => 1), array('type' => 'html', 'title' => gettext('News Articles Rule'), 'link' => '<li class="menu_rule menu_menulabel"></li>', 'show' => 1, 'include_li' => 0, 'nesting' => 0), array('type' => 'custompage', 'title' => gettext('Gallery'), 'link' => 'gallery', 'show' => 1, 'nesting' => 0), array('type' => 'menufunction', 'title' => gettext('All Albums'), 'link' => 'printAlbumMenuList("list",NULL,"","menu-active","inner_ul","menu-active","",false,false,false,false,getOption("menu_manager_truncate_string"));', 'show' => 1, 'include_li' => 0, 'nesting' => 1), array('type' => 'html', 'title' => gettext('Gallery Rule'), 'link' => '<li class="menu_rule menu_menulabel"></li>', 'show' => 1, 'include_li' => 0, 'nesting' => 0), array('type' => 'menulabel', 'title' => gettext('Pages'), 'link' => '', 'show' => 1, 'nesting' => 0), array('type' => 'menufunction', 'title' => gettext('All pages'), 'link' => 'printPageMenu("list","","menu-active","inner_ul","menu-active","",0,false,getOption("menu_manager_truncate_string"));', 'show' => 1, 'include_li' => 0, 'nesting' => 1, getOption("menu_manager_truncate_string")), array('type' => 'html', 'title' => gettext('Pages Rule'), 'link' => '<li class="menu_rule menu_menulabel"></li>', 'show' => 1, 'include_li' => 0, 'nesting' => 0)); createMenuIfNotExists($menuitems, 'garland'); } }
function __construct() { if (OFFSET_PATH == 2) { setOptionDefault('gmap_width', 595); setOptionDefault('gmap_height', 300); setOptionDefault('gmap_map_roadmap', 1); setOptionDefault('gmap_map_hybrid', 1); setOptionDefault('gmap_map_satellite', 1); setOptionDefault('gmap_map_terrain', 1); setOptionDefault('gmap_starting_map', 'HYBRID'); setOptionDefault('gmap_control_type', 'HORIZONTAL_BAR'); setOptionDefault('gmap_zoom_size', 'LARGE'); setOptionDefault('gmap_cluster_max_zoom', 13); setOptionDefault('gmap_sessions', 1); setOptionDefault('gmap_display', 'hide'); setOptionDefault('gmap_display', 'show'); if (class_exists('cacheManager')) { cacheManager::deleteThemeCacheSizes('GoogleMap'); cacheManager::addThemeCacheSize('GoogleMap', 150, NULL, NULL, NULL, NULL, NULL, NULL, true, NULL, NULL, NULL); } } }
function __construct() { $me = basename(dirname(__FILE__)); setThemeOptionDefault('Allow_search', true); setThemeOptionDefault('thumb_transition', 1); setThemeOption('thumb_size', 79, NULL, 'zpmobile'); setThemeOptionDefault('thumb_crop_width', 79); setThemeOptionDefault('thumb_crop_height', 79); setThemeOptionDefault('thumb_crop', 1); setThemeOptionDefault('albums_per_page', 6); setThemeOptionDefault('albums_per_row', 1); setThemeOptionDefault('images_per_page', 24); setThemeOptionDefault('images_per_row', 6); setOptionDefault('colorbox_zpmobile_album', 1); setOptionDefault('colorbox_zpmobile_favorites', 1); setOptionDefault('colorbox_zpmobile_image', 1); setOptionDefault('colorbox_zpmobilet_search', 1); if (class_exists('cacheManager')) { cacheManager::deleteThemeCacheSizes('zpMobile'); cacheManager::addThemeCacheSize('zpMobile', NULL, 79, 79, 79, 79, NULL, NULL, true, NULL, NULL, NULL); } }
function __construct() { setThemeOptionDefault('albums_per_row', 3); setThemeOptionDefault('albums_per_page', 9); setThemeOptionDefault('images_per_row', 4); setThemeOptionDefault('images_per_page', 16); setThemeOptionDefault('thumb_size', 220); setThemeOptionDefault('thumb_crop', 1); setThemeOptionDefault('thumb_crop_width', 220); setThemeOptionDefault('thumb_crop_height', 220); setThemeOptionDefault('image_size', 800, NULL); setThemeOptionDefault('image_use_side', 'longest'); setThemeOptionDefault('zpB_homepage', true); setThemeOptionDefault('allow_search', true); setThemeOptionDefault('zpB_show_archive', true); setThemeOptionDefault('zpB_show_tags', true); setThemeOptionDefault('zpB_social_links', true); setThemeOptionDefault('zpB_show_exif', true); // configure some zenphoto plugin options setOption('colorbox_zpBootstrap_album', 1); setOption('colorbox_zpBootstrap_favorites', 1); setOption('colorbox_zpBootstrap_image', 1); setOption('colorbox_zpBootstrap_search', 1); setOption('slideshow_zpBootstrap_album', 1); setOption('slideshow_zpBootstrap_image', 1); setOption('slideshow_zpBootstrap_favorites', 1); setOption('slideshow_zpBootstrap_search', 1); setOption('cycle_zpBootstrap_album', 1); setOption('cycle_zpBootstrap_image', 1); setOption('cycle_zpBootstrap_favorites', 1); setOption('cycle_zpBootstrap_search', 1); if (class_exists('cacheManager')) { $me = basename(dirname(__FILE__)); cacheManager::deleteThemeCacheSizes($me); cacheManager::addThemeCacheSize($me, getThemeOption('thumb_size'), NULL, NULL, getThemeOption('thumb_crop_width'), getThemeOption('thumb_crop_height'), NULL, NULL, true); cacheManager::addThemeCacheSize($me, getThemeOption('image_size'), NULL, NULL, NULL, NULL, NULL, NULL, false); } }
/************************************************************************/ if (strstr($ModPath, "..") || strstr($ModStart, "..") || stristr($ModPath, "script") || stristr($ModPath, "cookie") || stristr($ModPath, "iframe") || stristr($ModPath, "applet") || stristr($ModPath, "object") || stristr($ModPath, "meta") || stristr($ModStart, "script") || stristr($ModStart, "cookie") || stristr($ModStart, "iframe") || stristr($ModStart, "applet") || stristr($ModStart, "object") || stristr($ModStart, "meta")) { die; } if (!function_exists("Mysql_Connexion")) { include "mainfile.php"; } include "modules/{$ModPath}/archive-stories.conf.php"; include "modules/{$ModPath}/cache.timings.php"; if (!isset($start)) { $start = 0; } include "header.php"; // Include cache manager if ($SuperCache) { $cache_obj = new cacheManager(); $cache_obj->startCachingPage(); } else { $cache_obj = new SuperCacheEmpty(); } if ($cache_obj->genereting_output == 1 or $cache_obj->genereting_output == -1 or !$SuperCache) { if ($arch_titre) { echo $arch_titre; } echo ' <hr /> <table id ="lst_art_arch" data-toggle="table" data-striped="true" data-search="true" data-show-toggle="true" data-mobile-responsive="true" data-icons-prefix="fa" data-icons="icons"> <thead> <tr> <th data-sortable="true" data-halign="center">' . translate("Articles") . '</th> <th data-sortable="true" data-halign="center" data-align="right">' . translate("reads") . '</th>
function fab_block($title, $member, $content, $Xcache) { global $SuperCache, $CACHE_TIMINGS; // Multi-Langue $title = aff_langue($title); // Bloc caché $hidden = false; if (substr($content, 0, 7) == "hidden#") { $content = str_replace("hidden#", '', $content); $hidden = true; } // Si on cherche à charger un JS qui a déjà été chargé par pages.php alors on ne le charge pas ... global $pages_js; if ($pages_js != '') { preg_match('#src="([^"]*)#', $content, $jssrc); if (is_array($pages_js)) { foreach ($pages_js as $jsvalue) { if (array_key_exists('1', $jssrc)) { if ($jsvalue == $jssrc[1]) { $content = ''; break; } } } } else { if (array_key_exists('1', $jssrc)) { if ($pages_js == $jssrc[1]) { $content = ""; } } } } $content = aff_langue($content); if ($SuperCache and $Xcache != 0) { $cache_clef = md5($content); $CACHE_TIMINGS[$cache_clef] = $Xcache; $cache_obj = new cacheManager(); $cache_obj->startCachingBlock($cache_clef); } else { $cache_obj = new SuperCacheEmpty(); } if ($cache_obj->genereting_output == 1 or $cache_obj->genereting_output == -1 or !$SuperCache or $Xcache == 0) { global $user, $admin; // For including CLASS AND URI in Block global $B_class_title, $B_class_content; $B_class_title = ""; $B_class_content = ""; $R_uri = ""; if (stristr($content, "class-") or stristr($content, "uri")) { $tmp = explode("\n", $content); $content = ""; while (list($id, $class) = each($tmp)) { $temp = explode("#", $class); if ($temp[0] == "class-title") { $B_class_title = str_replace("\r", "", $temp[1]); } else { if ($temp[0] == "class-content") { $B_class_content = str_replace("\r", "", $temp[1]); } else { if ($temp[0] == "uri") { $R_uri = str_replace("\r", "", $temp[1]); } else { if ($content != "") { $content .= "\n "; } $content .= str_replace("\r", "", $class); } } } } } // For BLOC URIs if ($R_uri) { global $REQUEST_URI; $page_ref = basename($REQUEST_URI); $tab_uri = explode(" ", $R_uri); $R_content = false; $tab_pref = parse_url($page_ref); $racine_page = $tab_pref['path']; $tab_pref = explode("&", $tab_pref['query']); while (list(, $RR_uri) = each($tab_uri)) { $tab_puri = parse_url($RR_uri); $racine_uri = $tab_puri['path']; if ($racine_page == $racine_uri) { $tab_puri = explode("&", $tab_puri['query']); while (list($idx, $RRR_uri) = each($tab_puri)) { if (substr($RRR_uri, -1) == "*") { // si le token contient * if (substr($RRR_uri, 0, strpos($RRR_uri, "=")) == substr($tab_pref[$idx], 0, strpos($tab_pref[$idx], "="))) { $R_content = true; } } else { // sinon if ($RRR_uri != $tab_pref[$idx]) { $R_content = false; } else { $R_content = true; } } } } } if (!$R_content) { $content = ''; } } // For Javascript in Block if (!stristr($content, "javascript")) { $content = nl2br($content); } // For including externale file in block / the return MUST BE in $content if (stristr($content, "include#")) { $Xcontent = false; // You can now, include AND cast a fonction with params in the same bloc ! if (stristr($content, "function#")) { $content = str_replace("<br />", "", $content); $content = str_replace("<BR />", "", $content); $content = str_replace("<BR>", "", $content); $pos = strpos($content, "function#"); $Xcontent = substr(trim($content), $pos); $content = substr(trim($content), 8, $pos - 10); } else { $content = substr(trim($content), 8); } include_once $content; if ($Xcontent) { $content = $Xcontent; } } if (!empty($content)) { if ($member == 1 and isset($user)) { if (!block_fonction($title, $content)) { if (!$hidden) { themesidebox($title, $content); } else { echo $content; } } } elseif ($member == 0) { if (!block_fonction($title, $content)) { if (!$hidden) { themesidebox($title, $content); } else { echo $content; } } } elseif ($member > 1 and isset($user)) { $tab_groupe = valid_group($user); if (groupe_autorisation($member, $tab_groupe)) { if (!block_fonction($title, $content)) { if (!$hidden) { themesidebox($title, $content); } else { echo $content; } } } } elseif ($member == -1 and !isset($user)) { if (!block_fonction($title, $content)) { if (!$hidden) { themesidebox($title, $content); } else { echo $content; } } } elseif ($member == -127 and isset($admin) and $admin) { if (!block_fonction($title, $content)) { if (!$hidden) { themesidebox($title, $content); } else { echo $content; } } } } if ($SuperCache and $Xcache != 0) { $cache_obj->endCachingBlock($cache_clef); } } }
function fiche_detail($Xlid) { global $ModPath, $ModStart; include "header.php"; // Include cache manager global $SuperCache; if ($SuperCache) { $cache_obj = new cacheManager(); $cache_obj->startCachingPage(); } else { $cache_obj = new SuperCacheEmpty(); } if ($cache_obj->genereting_output == 1 or $cache_obj->genereting_output == -1 or !$SuperCache) { settype($xlid, 'integer'); $browse_key = $Xlid; $link_fiche_detail = "fiche_detail"; $inter = 'cid'; include "modules/sform/links/link_detail.php"; } if ($SuperCache) { $cache_obj->endCachingPage(); } include "footer.php"; }
function ThemeOptions() { // force core theme options for this theme setThemeOption('albums_per_row', 3, null, 'zpbase'); setThemeOption('images_per_row', 3, null, 'zpbase'); setThemeOption('image_use_side', 'longest', null, 'zpbase'); // set core theme option defaults setThemeOptionDefault('albums_per_page', 6); setThemeOptionDefault('images_per_page', 12); setThemeOptionDefault('thumb_crop', false); // set zpbase option defaults setThemeOptionDefault('zpbase_pnglogo', ''); setThemeOptionDefault('zpbase_style', 'light'); setThemeOptionDefault('zpbase_maxwidth', '960'); setThemeOptionDefault('zpbase_verticalscale', true); setThemeOptionDefault('zpbase_align', 'center'); setThemeOptionDefault('zpbase_date_albums', true); setThemeOptionDefault('zpbase_date_images', true); setThemeOptionDefault('zpbase_date_news', true); setThemeOptionDefault('zpbase_date_pages', true); setThemeOptionDefault('zpbase_social', true); setThemeOptionDefault('zpbase_download', true); setThemeOptionDefault('zpbase_selectmenu', 'chosen'); setThemeOptionDefault('zpbase_indexlayout', 'index-grid'); setThemeOptionDefault('zpbase_galleryishome', true); setThemeOptionDefault('zpbase_defaultalbum', 'album-grid'); setThemeOptionDefault('zpbase_newsstyle', 'masonry-style'); setThemeOptionDefault('zpbase_searchlayout', 'search-masonry'); setThemeOptionDefault('zpbase_usenews', true); setThemeOptionDefault('zpbase_newsname', ''); setThemeOptionDefault('zpbase_archive', true); setThemeOptionDefault('zpbase_iscrollbehavior', 'manual-first'); setThemeOptionDefault('zpbase_galss', true); setThemeOptionDefault('zpbase_galclicknext', false); setThemeOptionDefault('zpbase_galcropop', 'landscape'); setThemeOptionDefault('zpbase_galpan', false); setThemeOptionDefault('zpbase_galcaption', false); setThemeOptionDefault('zpbase_galhomeop', 'albums'); setThemeOptionDefault('zpbase_galhomecount', 30); setThemeOptionDefault('zpbase_galautoplay', false); setThemeOptionDefault('zpbase_galinterval', '4000'); setThemeOptionDefault('zpbase_galtrans', 'fadeslide'); setThemeOptionDefault('zpbase_galtranspeed', '400'); setThemeOptionDefault('zpbase_galhistory', true); setThemeOptionDefault('zpbase_galbigsize', 1200); setThemeOptionDefault('zpbase_googlefont1', ''); setThemeOptionDefault('zpbase_googlefont2', ''); setThemeOptionDefault('zpbase_fontsize', '12'); setThemeOptionDefault('zpbase_customcss', ''); setThemeOptionDefault('zpbase_bg', ''); setThemeOptionDefault('zpbase_facebook', ''); setThemeOptionDefault('zpbase_twitter', ''); setThemeOptionDefault('zpbase_google', ''); setThemeOptionDefault('zpbase_copy', '© ' . date("Y")); setThemeOptionDefault('zpbase_cbtarget', true); setThemeOptionDefault('zpbase_nodetailpage', false); setThemeOptionDefault('zpbase_disqus', false); setThemeOptionDefault('zpbase_disqus_shortname', ''); setThemeOptionDefault('zpbase_disqus_comment_form_albums', true); setThemeOptionDefault('zpbase_disqus_comment_form_images', true); setThemeOptionDefault('zpbase_disqus_comment_form_pages', false); setThemeOptionDefault('zpbase_disqus_comment_form_articles', true); setThemeOptionDefault('zpbase_magnific_grid', false); setThemeOptionDefault('zpbase_magnific_masonry', true); setThemeOptionDefault('zpbase_magnific_sds', true); setThemeOptionDefault('zpbase_magnific_target', 'image'); setThemeOptionDefault('zpbase_mobiletogrid', true); setThemeOptionDefault('zpbase_sds_maxheight', 500); setThemeOptionDefault('zpbase_sds_pagination', 'paginate'); setThemeOptionDefault('zpbase_analytics', ''); setThemeOptionDefault('zpbase_analytics_type', 'universal'); // set image sizes based on maxwidth setThemeOption('image_size', round(getOption('zpbase_maxwidth')), null, 'zpbase'); setThemeOption('thumb_size', round(0.31 * getOption('zpbase_maxwidth')), null, 'zpbase'); if (class_exists('cacheManager')) { $me = basename(dirname(__FILE__)); cacheManager::deleteThemeCacheSizes($me); cacheManager::addThemeCacheSize($me, getThemeOption('image_size'), NULL, NULL, NULL, NULL, NULL, NULL, false, getOption('fullimage_watermark'), NULL, NULL); // full image size cacheManager::addThemeCacheSize($me, getThemeOption('thumb_size'), NULL, NULL, NULL, NULL, NULL, NULL, true, getOption('Image_watermark'), NULL, NULL); // default thumb cacheManager::addThemeCacheSize($me, getThemeOption('zpbase_galbigsize'), NULL, NULL, NULL, NULL, NULL, NULL, false, getOption('fullimage_watermark'), NULL, NULL); //slideshow big image cacheManager::addThemeCacheSize($me, NULL, NULL, getOption('zpbase_sds_maxheight'), NULL, NULL, NULL, NULL, true, getOption('Image_watermark'), NULL, NULL); //sds layout image } }
function savetheme($uid, $theme) { global $NPDS_Prefix; global $user; $cookie = cookiedecode($user); $result = sql_query("SELECT uid FROM " . $NPDS_Prefix . "users WHERE uname='{$cookie['1']}'"); list($vuid) = sql_fetch_row($result); if ($uid == $vuid) { sql_query("UPDATE " . $NPDS_Prefix . "users SET theme='{$theme}' WHERE uid='{$uid}'"); $userinfo = getusrinfo($user); docookie($userinfo['uid'], $userinfo['uname'], $userinfo['pass'], $userinfo['storynum'], $userinfo['umode'], $userinfo['uorder'], $userinfo['thold'], $userinfo['noscore'], $userinfo['ublockon'], $userinfo['theme'], $userinfo['commentmax'], ""); // Include cache manager for purge cache Page $cache_obj = new cacheManager(); $cache_obj->UsercacheCleanup(); Header("Location: user.php"); } else { Header("Location: index.php"); } }
$q .= "AND s.aid='{$author}' "; } } if ($topic != "") { $q .= "AND s.topic='{$topic}' "; } if ($days != "" && $days != 0) { $q .= "AND TO_DAYS(NOW()) - TO_DAYS(time) <= '{$days}' "; } $q .= " ORDER BY s.time DESC" . $limit; $t = $topic; $x = 0; if ($SuperCache) { $cache_clef = "[objet]==> {$q}"; $CACHE_TIMINGS[$cache_clef] = 3600; $cache_obj = new cacheManager(); $tab_sid = $cache_obj->startCachingObjet($cache_clef); if ($tab_sid != "") { $x = count($tab_sid); } } else { $cache_obj = new SuperCacheEmpty(); } if ($cache_obj->genereting_output == 1 or $cache_obj->genereting_output == -1 or !$SuperCache) { $result = sql_query($q); if ($result) { while (list($sid, $aid, $title, $time, $url, $topic, $informant, $ihome) = sql_fetch_row($result)) { if (ctrl_aff($ihome, 0)) { $tab_sid[$x]['sid'] = $sid; $tab_sid[$x]['aid'] = $aid; $tab_sid[$x]['title'] = $title;