コード例 #1
0
ファイル: LDAP auth.php プロジェクト: ariep/ZenPhoto20-DEV
 function getOptionsSupported()
 {
     setOptionDefault('ldap_id_offset', 100000);
     $options = parent::getOptionsSupported();
     $ldapOptions = LDAP_auth_options::getOptionsSupported();
     return array_merge($ldapOptions, $options);
 }
コード例 #2
0
ファイル: html_meta_tags.php プロジェクト: rb26/zenphoto
 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);
     }
 }
コード例 #3
0
 function __construct()
 {
     setOptionDefault('print_album_menu_showsubs', 0);
     setOptionDefault('print_album_menu_count', 1);
     setOptionDefault('menu_truncate_string', 0);
     setOptionDefault('menu_truncate_indicator', '');
 }
コード例 #4
0
ファイル: elFinder.php プロジェクト: ariep/ZenPhoto20-DEV
 /**
  * class instantiation function
  *
  */
 function __construct()
 {
     if (OFFSET_PATH == 2) {
         setOptionDefault('elFinder_files', 1);
         setOptionDefault('elFinder_tinymce', 0);
     }
 }
コード例 #5
0
 function flowplayer3_options()
 {
     setOptionDefault('flow_player3_width', '320');
     setOptionDefault('flow_player3_height', '240');
     setOptionDefault('flow_player3_controlsbackgroundcolor', '#110e0e');
     setOptionDefault('flow_player3_controlsbackgroundcolorgradient', 'none');
     setOptionDefault('flow_player3_controlsbordercolor', '#000000');
     setOptionDefault('flow_player3_autoplay', '');
     setOptionDefault('flow_player3_backgroundcolor', '#000000');
     setOptionDefault('flow_player3_backgroundcolorgradient', 'none');
     setOptionDefault('flow_player3_controlsautohide', 'never');
     setOptionDefault('flow_player3_controlstimecolor', '#fcfcfc');
     setOptionDefault('flow_player3_controlsdurationcolor', '#ffffff');
     setOptionDefault('flow_player3_controlsprogresscolor', '#ffffff');
     setOptionDefault('flow_player3_controlsprogressgradient', 'low');
     setOptionDefault('flow_player3_controlsbuffercolor', '#275577');
     setOptionDefault('flow_player3_controlsbuffergradient', 'low');
     setOptionDefault('flow_player3_controlsslidercolor', '#ffffff');
     setOptionDefault('flow_player3_controlsslidergradient', 'low');
     setOptionDefault('flow_player3_controlsbuttoncolor', '#567890');
     setOptionDefault('flow_player3_controlsbuttonovercolor', '#999999');
     setOptionDefault('flow_player3_splashimagescale', 'fit');
     setOptionDefault('flow_player3_scaling', 'fit');
     setOptionDefault('flow_player3_mp3coverimage', '');
 }
コード例 #6
0
ファイル: menu_manager.php プロジェクト: ariep/ZenPhoto20-DEV
 /**
  *
  * class instantiator
  */
 function __construct()
 {
     if (OFFSET_PATH == 2) {
         setOptionDefault('menu_truncate_string', 0);
         setOptionDefault('menu_truncate_indicator', '');
     }
 }
コード例 #7
0
ファイル: themeoptions.php プロジェクト: rb26/zenphoto
 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);
     }
 }
コード例 #8
0
 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', '');
 }
コード例 #9
0
 function viewer_size_image_options()
 {
     $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);
 }
コード例 #10
0
 function VideoObject_Options()
 {
     setOptionDefault('zp_plugin_class-video_mov_w', 520);
     setOptionDefault('zp_plugin_class-video_mov_h', 390);
     setOptionDefault('zp_plugin_class-video_3gp_w', 520);
     setOptionDefault('zp_plugin_class-video_3gp_h', 390);
 }
コード例 #11
0
 /**
  * class instantiation function
  *
  * @return filter_zenphoto_seo
  */
 function __construct()
 {
     if (OFFSET_PATH == 2) {
         setOptionDefault('quota_default', 250000);
         setOptionDefault('quota_allowZIP', 1);
     }
 }
コード例 #12
0
ファイル: themeoptions.php プロジェクト: benuri/DevTools
 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);
     }
 }
コード例 #13
0
ファイル: simple.php プロジェクト: ItsHaden/epicLanBootstrap
 /**
  * The SpamFilter class instantiation function.
  *
  * @return SpamFilter
  */
 function SpamFilter()
 {
     setOptionDefault('Words_to_die_on', implode(',', $this->wordsToDieOn));
     setOptionDefault('Patterns_to_die_on', implode(' ', $this->patternsToDieOn));
     setOptionDefault('Excessive_URL_count', $this->excessiveURLCount);
     setOptionDefault('Forgiving', 0);
 }
コード例 #14
0
ファイル: image_effects.php プロジェクト: rb26/zenphoto
 function __construct()
 {
     $effect = getPluginFiles('*.txt', 'image_effects');
     foreach ($this->effects = array_keys($effect) as $suffix) {
         setOptionDefault('image_effects_random_' . $suffix, 1);
     }
 }
コード例 #15
0
 function trackbackOptions()
 {
     setOptionDefault('trackback_news', 1);
     setOptionDefault('trackback_pages', 1);
     setOptionDefault('trackback_images', 1);
     setOptionDefault('trackback_albums', 1);
 }
コード例 #16
0
ファイル: auto_backup.php プロジェクト: ariep/ZenPhoto20-DEV
 /**
  * class instantiation function
  *
  */
 function __construct()
 {
     if (OFFSET_PATH == 2) {
         setOptionDefault('backup_interval', 7);
         setOptionDefault('backups_to_keep', 5);
     }
 }
コード例 #17
0
ファイル: tinymce.php プロジェクト: ariep/ZenPhoto20-DEV
 function __construct()
 {
     if (OFFSET_PATH == 2) {
         setOptionDefault('tinymce_zenphoto', 'zenphoto-ribbon.php');
         setOptionDefault('tinymce_zenpage', 'zenpage-ribbon.php');
     }
 }
コード例 #18
0
 /**
  * The SpamFilter class instantiation function.
  *
  * @return SpamFilter
  */
 function SpamFilter()
 {
     // constructor
     // setup default options
     setOptionDefault('Forgiving', 0);
     setOptionDefault('SpamAssassin_host', 'localhost');
     setOptionDefault('SpamAssassin_ctype', 'tcp');
     setOptionDefault('SpamAssassin_port', '');
     setOptionDefault('SpamAssassin_socket', '');
     setOptionDefault('SpamAssassin_user', '');
     /* Spamassassin variables */
     $this->spamassassin_host = getOption('SpamAssassin_host');
     $this->spamassassin_ctype = getOption('SpamAssassin_ctype');
     if ($this->spamassassin_ctype == 'tcp') {
         $this->spamassassin_port = getOption('SpamAssassin_port');
     } else {
         $this->spamassassin_socket = getOption('SpamAssassin_socket');
     }
     $this->spamassassin_user = getOption('SpamAssassin_user');
     /* Internal variables I need to fetch to use them in the class */
     $this->server_name = php_uname('n');
     $admin_emails = getAdminEmail();
     if (count($admin_emails) > 0) {
         $this->admin_email = $admin_emails[0];
     }
 }
コード例 #19
0
ファイル: lib-auth.php プロジェクト: ariep/ZenPhoto20-DEV
 /**
  * class instantiation function
  *
  * @return lib_auth_options
  */
 function __construct()
 {
     if (OFFSET_PATH == 2) {
         setOptionDefault('password_strength', 10);
         setOptionDefault('min_password_lenght', 6);
         setOptionDefault('user_album_edit_default', 1);
     }
     $this->admin_all = $this->admin_groups = $this->admin_users = $this->admin_other = array();
     $sql = 'SELECT * FROM ' . prefix('administrators') . ' ORDER BY `rights` DESC, `id`';
     $admins = query($sql, false);
     if ($admins) {
         while ($user = db_fetch_assoc($admins)) {
             $this->admin_all[$user['id']] = $user;
             switch ($user['valid']) {
                 case 1:
                     $this->admin_users[$user['id']] = $user;
                     if (empty($this->master_user)) {
                         $this->master_user = $user['user'];
                     }
                     break;
                 case 0:
                     $this->admin_groups[$user['id']] = $user;
                     break;
                 default:
                     $this->admin_other[$user['id']] = $user;
                     break;
             }
         }
         db_free_result($admins);
     }
 }
コード例 #20
0
 function ThemeOptions()
 {
     setOptionDefault('zpgal_tagline', 'Welcome to zpGalleriffic - Change this in Theme Options');
     setOptionDefault('zpgal_homepage', gettext('none'));
     setOptionDefault('zpgal_show_credit', false);
     setOptionDefault('zpgal_contrast', 'dark');
     setOptionDefault('zpgal_use_image_logo_filename', '');
     setOptionDefault('zpgal_zp_latestnews', '2');
     setOptionDefault('zpgal_zp_latestnews_trunc', '400');
     setOptionDefault('zpgal_show_meta', '1');
     setOptionDefault('zpgal_final_link', 'colorbox');
     setOptionDefault('zpgal_nogal', '1');
     setOptionDefault('zpgal_leftalign', '0');
     setOptionDefault('zpgal_delay', '6000');
     setOptionDefault('zpgal_thumbcount', '6');
     setOptionDefault('zpgal_preload', '12');
     setOptionDefault('zpgal_minigaloption', 'latest');
     setOptionDefault('zpgal_download_link', true);
     setOptionDefault('zpgal_cbtarget', true);
     setOptionDefault('zpgal_cbstyle', 'style3');
     setOptionDefault('zpgal_cbtransition', 'fade');
     setOptionDefault('zpgal_cbssspeed', '2500');
     setOptionDefault('zpgal_minigal', true);
     setOptionDefault('zpgal_minigalheight', '250');
     setOptionDefault('zpgal_minigalcount', '12');
     setOptionDefault('zpgal_color', '#B45E2C');
     setOptionDefault('zpgal_archiveoption', 'latest');
     setOptionDefault('zpgal_archivecount', '16');
     setOptionDefault('zpgal_crop', true);
     setOptionDefault('zpgal_minigalspecified', '');
     setOptionDefault('zpgal_minigalspecifiedcount', true);
     setOptionDefault('zpgal_minigalspecifiedshuffle', true);
     setOptionDefault('jcarousel_zpgalleriffic_image', 1);
 }
コード例 #21
0
 function ThemeOptions()
 {
     /* put any setup code needed here */
     setOptionDefault('Allow_comments', true);
     setOptionDefault('Allow_search', true);
     setOptionDefault('Mini_slide_selector', 'Recent images');
 }
コード例 #22
0
 function htmlmetatags()
 {
     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_http-equiv-language', '1');
     setOptionDefault('htmlmeta_name-language', '1');
     setOptionDefault('htmlmeta_htmlmeta_tags', '1');
     setOptionDefault('htmlmeta_http-equiv-cache-control', '1');
     setOptionDefault('htmlmeta_http-equiv-pragma', '1');
     setOptionDefault('htmlmeta_http-equiv-content-style-type', '1');
     setOptionDefault('htmlmeta_name-title', '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');
 }
コード例 #23
0
 function __construct()
 {
     foreach (getPluginFiles('*.php') as $extension => $plugin) {
         $deprecated = stripSuffix($plugin) . '/deprecated-functions.php';
         if (file_exists($deprecated)) {
             $plugin = basename(dirname($deprecated));
             $content = preg_replace('~#.*function~', '', file_get_contents($deprecated));
             //	remove the comments!
             preg_match_all('~@deprecated\\s+.*since\\s+.*(\\d+\\.\\d+\\.\\d+)~', $content, $versions);
             preg_match_all('/([public static|static]*)\\s*function\\s+(.*)\\s?\\(.*\\)\\s?\\{/', $content, $functions);
             if ($plugin == 'deprecated-functions') {
                 $plugin = 'core';
                 $suffix = '';
             } else {
                 $suffix = ' (' . $plugin . ')';
             }
             foreach ($functions[2] as $key => $function) {
                 if ($functions[1][$key]) {
                     $flag = '_method';
                     $star = '*';
                 } else {
                     $star = $flag = '';
                 }
                 $name = $function . $star . $suffix;
                 $option = 'deprecated_' . $plugin . '_' . $function . $flag;
                 setOptionDefault($option, 1);
                 $this->unique_functions[strtolower($function)] = $this->listed_functions[$name] = array('plugin' => $plugin, 'function' => $function, 'class' => trim($functions[1][$key]), 'since' => @$versions[1][$key], 'option' => $option, 'multiple' => array_key_exists($function, $this->unique_functions));
             }
         }
     }
 }
コード例 #24
0
 function register_user_options()
 {
     setOptionDefault('print_album_menu_showsubs', 0);
     setOptionDefault('print_album_menu_count', 1);
     setOptionDefault('menu_truncate_string', 0);
     setOptionDefault('menu_truncate_indicator', '');
 }
コード例 #25
0
ファイル: comment_form.php プロジェクト: ariep/ZenPhoto20-DEV
 /**
  * class instantiation function
  *
  */
 function __construct()
 {
     if (OFFSET_PATH == 2) {
         $old = getOption('tinymce_comments');
         setOptionDefault('email_new_comments', 1);
         setOptionDefault('comment_name_required', 'required');
         setOptionDefault('comment_email_required', 'required');
         setOptionDefault('comment_web_required', 'show');
         setOptionDefault('Use_Captcha', false);
         setOptionDefault('comment_form_addresses', 0);
         setOptionDefault('comment_form_require_addresses', 0);
         setOptionDefault('comment_form_members_only', 0);
         setOptionDefault('comment_form_albums', 1);
         setOptionDefault('comment_form_images', 1);
         setOptionDefault('comment_form_articles', 1);
         setOptionDefault('comment_form_pages', 1);
         setOptionDefault('comment_form_rss', 1);
         setOptionDefault('comment_form_private', 1);
         setOptionDefault('comment_form_anon', 1);
         setOptionDefault('comment_form_showURL', 1);
         setOptionDefault('comment_form_comments_per_page', 10);
         setOptionDefault('comment_form_pagination', true);
         setOptionDefault('comment_form_toggle', 1);
         setOptionDefault('tinymce_comments', 'comment-ribbon.php');
         setOptionDefault('tinymce_admin_comments', 'comment-ribbon.php');
     }
 }
コード例 #26
0
 /**
  *
  * supported options
  */
 function getOptionsSupported()
 {
     global $_zp_zenpage;
     $options = array(gettext('Consumer key') => array('key' => 'tweet_news_consumer', 'type' => OPTION_TYPE_TEXTBOX, 'order' => 2, 'desc' => gettext('This <code>tweet_news</code> app for this site needs a <em>consumer key</em>, a <em>consumer key secret</em>, an <em>access token</em>, and an <em>access token secret</em>.') . '<p class="notebox">' . gettext('Get these from <a href="http://dev.twitter.com/">Twitter developers</a>') . '</p>'), gettext('Secret') => array('key' => 'tweet_news_consumer_secret', 'type' => OPTION_TYPE_TEXTBOX, 'order' => 3, 'desc' => gettext('The <em>secret</em> associated with your <em>consumer key</em>.')), gettext('Access token') => array('key' => 'tweet_news_oauth_token', 'type' => OPTION_TYPE_TEXTBOX, 'order' => 4, 'desc' => gettext('The application <em>oauth_token</em> token.')), gettext('Access token secret') => array('key' => 'tweet_news_oauth_token_secret', 'type' => OPTION_TYPE_TEXTBOX, 'order' => 5, 'desc' => gettext('The application <em>oauth_token</em> secret.')), gettext('Protected objects') => array('key' => 'tweet_news_protected', 'type' => OPTION_TYPE_CHECKBOX, 'order' => 7, 'desc' => gettext('If checked, protected items will be tweeted. <strong>Note:</strong> followers will need the password to visit the tweeted link.')));
     $note = '';
     $list = array('<em>' . gettext('Albums') . '</em>' => 'tweet_news_albums', '<em>' . gettext('Images') . '</em>' => 'tweet_news_images');
     if (getOption('zp_plugin_zenpage')) {
         $list['<em>' . gettext('News') . '</em>'] = 'tweet_news_news';
         $options[gettext('Scan pending')] = array('key' => 'tweet_news_rescan', 'type' => OPTION_TYPE_CHECKBOX, 'order' => 8, 'desc' => gettext('<code>tweet_news</code> notices when an article is published. ' . 'If the article date is in the future, it is put in the <em>to-be-tweeted</em> and tweeted when that date arrives. ' . 'This option allows you to re-populate that list to the current state of scheduled articles.'));
     } else {
         setOption('tweet_news_news', 0);
     }
     $options[gettext('Tweet')] = array('key' => 'tweet_news_items', 'type' => OPTION_TYPE_CHECKBOX_ARRAY, 'order' => 6, 'checkboxes' => $list, 'desc' => gettext('If an <em>type</em> is checked, a Tweet will be made when an object of that <em>type</em> is published.'));
     if (getOption('tweet_news_news')) {
         $catlist = unserialize(getOption('tweet_news_categories'));
         $news_categories = $_zp_zenpage->getAllCategories(false);
         $catlist = array(gettext('*not categorized*') => 'tweet_news_categories_none');
         foreach ($news_categories as $category) {
             $option = 'tweet_news_categories_' . $category['titlelink'];
             $catlist[$category['title']] = $option;
             setOptionDefault($option, NULL);
         }
         $options[gettext('News categories')] = array('key' => 'tweet_news_categories', 'type' => OPTION_TYPE_CHECKBOX_UL, 'order' => 6, 'checkboxes' => $catlist, 'desc' => gettext('Only those <em>news categories</em> checked will be Tweeted. <strong>Note:</strong> <em>*not categorized*</em> means those news articles which have no category assigned.'));
     }
     if (getOption('tweet_news_rescan')) {
         setOption('tweet_news_rescan', 0);
         $note = tweetRepopulate();
     }
     if ($note) {
         $options['note'] = array('key' => 'tweet_news_rescan', 'type' => OPTION_TYPE_NOTE, 'order' => 0, 'desc' => $note);
     }
     return $options;
 }
コード例 #27
0
ファイル: user-expiry.php プロジェクト: Simounet/zenphoto
 /**
  * class instantiation function
  *
  */
 function __construct()
 {
     setOptionDefault('user_expiry_interval', 365);
     setOptionDefault('user_expiry_warn_interval', 7);
     setOptionDefault('user_expiry_auto_renew', 0);
     setOptionDefault('user_expiry_password_cycle', 0);
 }
コード例 #28
0
 function ThemeOptions()
 {
     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_row', 2);
     setThemeOptionDefault('images_per_row', 5);
     setThemeOptionDefault('thumb_transition', 1);
     setOptionDefault('zp_plugin_colorbox', 1);
     setOptionDefault('colorbox_zenpage_album', 1);
     setOptionDefault('colorbox_zenpage_image', 1);
     setOptionDefault('colorbox_zenpage_search', 1);
     if (getOption('zp_plugin_zenpage')) {
         setThemeOption('custom_index_page', 'gallery', NULL, NULL, false);
     } else {
         setThemeOption('custom_index_page', '', NULL, NULL, false);
     }
     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');
     }
 }
コード例 #29
0
ファイル: search_statistics.php プロジェクト: rb26/zenphoto
 /**
  * class instantiation function
  *
  * @return jquery_rating
  */
 function search_statistics()
 {
     setOptionDefault('search_statistics_threshold', 25);
     setOptionDefault('search_statistics_terms_threshold', 25);
     setOptionDefault('search_statistics_failed_threshold', 10);
     setOptionDefault('search_statistics_ip_threshold', 10);
 }
コード例 #30
0
ファイル: themeoptions.php プロジェクト: ariep/ZenPhoto20-DEV
 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);
     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, 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');
     }
 }