• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP setOptionDefault函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中setOptionDefault函数的典型用法代码示例。如果您正苦于以下问题:PHP setOptionDefault函数的具体用法?PHP setOptionDefault怎么用?PHP setOptionDefault使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了setOptionDefault函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: getOptionsSupported

 function getOptionsSupported()
 {
     setOptionDefault('ldap_id_offset', 100000);
     $options = parent::getOptionsSupported();
     $ldapOptions = LDAP_auth_options::getOptionsSupported();
     return array_merge($ldapOptions, $options);
 }
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:7,代码来源:LDAP+auth.php


示例2: __construct

 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);
     }
 }
开发者ID:rb26,项目名称:zenphoto,代码行数:35,代码来源:html_meta_tags.php


示例3: __construct

 function __construct()
 {
     setOptionDefault('print_album_menu_showsubs', 0);
     setOptionDefault('print_album_menu_count', 1);
     setOptionDefault('menu_truncate_string', 0);
     setOptionDefault('menu_truncate_indicator', '');
 }
开发者ID:rauldobrota,项目名称:zenphoto,代码行数:7,代码来源:print_album_menu.php


示例4: __construct

 /**
  * class instantiation function
  *
  */
 function __construct()
 {
     if (OFFSET_PATH == 2) {
         setOptionDefault('elFinder_files', 1);
         setOptionDefault('elFinder_tinymce', 0);
     }
 }
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:11,代码来源:elFinder.php


示例5: flowplayer3_options

 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', '');
 }
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:25,代码来源:flowplayer3.php


示例6: __construct

 /**
  *
  * class instantiator
  */
 function __construct()
 {
     if (OFFSET_PATH == 2) {
         setOptionDefault('menu_truncate_string', 0);
         setOptionDefault('menu_truncate_indicator', '');
     }
 }
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:11,代码来源:menu_manager.php


示例7: __construct

 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);
     }
 }
开发者ID:rb26,项目名称:zenphoto,代码行数:26,代码来源:themeoptions.php


示例8: __construct

 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', '');
 }
开发者ID:andrewfandrew,项目名称:ferdinand-miranda,代码行数:29,代码来源:html_meta_tags.php


示例9: viewer_size_image_options

 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);
 }
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:7,代码来源:viewer_size_image.php


示例10: VideoObject_Options

 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);
 }
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:7,代码来源:class-video.php


示例11: __construct

 /**
  * class instantiation function
  *
  * @return filter_zenphoto_seo
  */
 function __construct()
 {
     if (OFFSET_PATH == 2) {
         setOptionDefault('quota_default', 250000);
         setOptionDefault('quota_allowZIP', 1);
     }
 }
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:12,代码来源:quota_manager.php


示例12: ThemeOptions

 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);
     }
 }
开发者ID:benuri,项目名称:DevTools,代码行数:33,代码来源:themeoptions.php


示例13: SpamFilter

 /**
  * 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);
 }
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:12,代码来源:simple.php


示例14: __construct

 function __construct()
 {
     $effect = getPluginFiles('*.txt', 'image_effects');
     foreach ($this->effects = array_keys($effect) as $suffix) {
         setOptionDefault('image_effects_random_' . $suffix, 1);
     }
 }
开发者ID:rb26,项目名称:zenphoto,代码行数:7,代码来源:image_effects.php


示例15: trackbackOptions

 function trackbackOptions()
 {
     setOptionDefault('trackback_news', 1);
     setOptionDefault('trackback_pages', 1);
     setOptionDefault('trackback_images', 1);
     setOptionDefault('trackback_albums', 1);
 }
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:7,代码来源:comment_trackback.php


示例16: __construct

 /**
  * class instantiation function
  *
  */
 function __construct()
 {
     if (OFFSET_PATH == 2) {
         setOptionDefault('backup_interval', 7);
         setOptionDefault('backups_to_keep', 5);
     }
 }
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:11,代码来源:auto_backup.php


示例17: __construct

 function __construct()
 {
     if (OFFSET_PATH == 2) {
         setOptionDefault('tinymce_zenphoto', 'zenphoto-ribbon.php');
         setOptionDefault('tinymce_zenpage', 'zenpage-ribbon.php');
     }
 }
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:7,代码来源:tinymce.php


示例18: SpamFilter

 /**
  * 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];
     }
 }
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:31,代码来源:spamassassin.php


示例19: __construct

 /**
  * 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);
     }
 }
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:36,代码来源:lib-auth.php


示例20: ThemeOptions

 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);
 }
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:34,代码来源:themeoptions.php



注:本文中的setOptionDefault函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP setPageTitle函数代码示例发布时间:2022-05-15
下一篇:
PHP setOption函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap