当前位置: 首页>>代码示例>>PHP>>正文


PHP utf8_normalize_nfc函数代码示例

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


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

示例1: __construct

 function __construct(viewNavigation $Navigation)
 {
     global $phpbb_root_path, $phpEx;
     $this->Raids = new \bbdkp\controller\raids\Raids();
     $this->PointsController = new \bbdkp\controller\points\PointsController();
     $this->PointsController->guild_id = $Navigation->getGuildId();
     $this->PointsController->query_by_pool = $Navigation->getQueryByPool();
     $this->PointsController->dkpsys_id = $Navigation->getDkpsysId();
     $this->PointsController->show_inactive = $Navigation->getShowAll();
     $this->PointsController->query_by_armor = $Navigation->getQueryByArmor();
     $this->PointsController->armor_filter = '';
     if ($this->PointsController->query_by_armor) {
         $this->PointsController->armor_filter = $Navigation->getFilter();
     }
     $this->PointsController->query_by_class = $Navigation->getQueryByClass();
     $this->PointsController->class_id = 0;
     if ($this->PointsController->query_by_class) {
         $this->PointsController->class_id = $Navigation->getClassId();
     }
     $this->PointsController->query_by_rank = false;
     $this->PointsController->rankfilter = '';
     if (request_var('rank', '') != '') {
         $this->PointsController->query_by_rank = true;
         $this->PointsController->rankfilter = request_var('rank', '');
     }
     $this->PointsController->member_filter = utf8_normalize_nfc(request_var('member_name', '', true));
     $this->PointsController->query_by_name = false;
     if ($this->PointsController->member_filter != '') {
         $this->PointsController->query_by_name = true;
     }
     $this->start = request_var('start', 0, false);
     $this->u_listmemberdkp = append_sid("{$phpbb_root_path}dkp.{$phpEx}", 'page=standings' . '&guild_id=' . $Navigation->getGuildId() . '&' . URI_DKPSYS . '=' . $this->PointsController->dkpsys_id . '&member_name=' . urlencode($this->PointsController->member_filter));
     $this->buildpage($Navigation);
 }
开发者ID:ZerGabriel,项目名称:bbDKP,代码行数:34,代码来源:viewStandings.php

示例2: main

 function main($id, $mode)
 {
     global $db, $user, $auth, $template, $cache, $request;
     global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
     $this->tpl_name = 'acp_countdown_config';
     $this->page_title = $user->lang['COUNTDOWN_CONFIG'];
     add_form_key('acp_countdown_config');
     $submit = $request->is_set_post('submit');
     if ($submit) {
         if (!check_form_key('acp_countdown_config')) {
             trigger_error('FORM_INVALID');
         }
         $config->set('countdown_enable', $request->variable('countdown_enable', 0));
         $config->set('countdown_testmode', $request->variable('countdown_testmode', 0));
         $config->set('countdown_direction', $request->variable('countdown_direction', 0));
         $config->set('countdown_date', $request->variable('countdown_date', ''));
         $config->set('countdown_offset_enable', $request->variable('countdown_offset_enable', 0));
         $config->set('countdown_offset', $request->variable('countdown_offset', ''));
         $config->set('countdown_year', $request->variable('countdown_year', 0));
         $config->set('countdown_month', $request->variable('countdown_month', 0));
         $config->set('countdown_text', utf8_normalize_nfc($request->variable('countdown_text', '', true)));
         $config->set('countdown_complete', utf8_normalize_nfc($request->variable('countdown_complete', '', true)));
         trigger_error($user->lang['COUNTDOWN_CONFIG_SAVED'] . adm_back_link($this->u_action));
     }
     $template->assign_vars(array('COUNTDOWN_VERSION' => isset($config['countdown_version']) ? $config['countdown_version'] : '', 'COUNTDOWN_ENABLE' => !empty($config['countdown_enable']) ? true : false, 'COUNTDOWN_TESTMODE' => !empty($config['countdown_testmode']) ? true : false, 'COUNTDOWN_DIRECTION' => !empty($config['countdown_direction']) ? true : false, 'COUNTDOWN_DATE' => isset($config['countdown_date']) ? $config['countdown_date'] : '', 'COUNTDOWN_OFFSET_ENABLE' => !empty($config['countdown_offset_enable']) ? true : false, 'COUNTDOWN_OFFSET' => isset($config['countdown_offset']) ? $config['countdown_offset'] : '', 'COUNTDOWN_YEAR' => !empty($config['countdown_year']) ? true : false, 'COUNTDOWN_MONTH' => !empty($config['countdown_month']) ? true : false, 'COUNTDOWN_TEXT' => isset($config['countdown_text']) ? $config['countdown_text'] : '', 'COUNTDOWN_COMPLETE' => isset($config['countdown_complete']) ? $config['countdown_complete'] : '', 'U_ACTION' => $this->u_action));
 }
开发者ID:borgesjoaquim,项目名称:countdown,代码行数:26,代码来源:countdown_module.php

示例3: upload_image

 /**
  * Insert the image into the database
  */
 public static function upload_image(&$image_data, $album_id)
 {
     global $user, $db;
     $sql_ary = array('image_filename' => $image_data['filename'], 'image_name' => $image_data['image_name'], 'image_name_clean' => utf8_clean_string($image_data['image_name']), 'image_user_id' => $user->data['user_id'], 'image_user_colour' => $user->data['user_colour'], 'image_username' => $image_data['username'], 'image_username_clean' => utf8_clean_string($image_data['username']), 'image_user_ip' => $user->ip, 'image_time' => $image_data['image_time'], 'image_album_id' => $image_data['image_album_id'], 'image_status' => phpbb_gallery::$auth->acl_check('i_approve', $album_id) ? phpbb_gallery_image::STATUS_APPROVED : phpbb_gallery_image::STATUS_UNAPPROVED, 'filesize_upload' => $image_data['image_filesize'], 'image_contest' => $image_data['image_contest'], 'image_exif_data' => $image_data['image_exif_data'], 'image_has_exif' => $image_data['image_has_exif']);
     $message_parser = new parse_message();
     $message_parser->message = utf8_normalize_nfc($image_data['image_desc']);
     if ($message_parser->message) {
         $message_parser->parse(true, true, true, true, false, true, true, true);
         $sql_ary['image_desc'] = $message_parser->message;
         $sql_ary['image_desc_uid'] = $message_parser->bbcode_uid;
         $sql_ary['image_desc_bitfield'] = $message_parser->bbcode_bitfield;
     } else {
         $sql_ary['image_desc'] = '';
         $sql_ary['image_desc_uid'] = '';
         $sql_ary['image_desc_bitfield'] = '';
     }
     $sql = 'INSERT INTO ' . GALLERY_IMAGES_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);
     $db->sql_query($sql);
     $image_id = $db->sql_nextid();
     if (phpbb_gallery::$user->get_data('watch_own')) {
         $sql_ary = array('image_id' => $image_id, 'user_id' => $user->data['user_id']);
         $sql = 'INSERT INTO ' . GALLERY_WATCH_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);
         $db->sql_query($sql);
     }
     return array('image_id' => $image_id, 'image_name' => $image_data['image_name']);
 }
开发者ID:phpbbgallery,项目名称:phpbb-gallery,代码行数:29,代码来源:misc.php

示例4: set_options

 /**
  * Set the options a user can configure
  *
  * @return null
  * @access protected
  */
 protected function set_options()
 {
     global $config, $request;
     $config->set('appform_forum_id', $request->variable('appform_forum_id', 0));
     $config->set('appform_positions', utf8_normalize_nfc($request->variable('appform_positions', '', true)));
     $config->set('appform_nru', $request->variable('appform_nru', 0));
 }
开发者ID:alhitary,项目名称:phpBB-3.1-applicationform,代码行数:13,代码来源:applicationform_module.php

示例5: acp_module

 /**
  * acp_module()
  * retunrs the acp config
  * @access private
  */
 function acp_module()
 {
     global $config, $phpbb_seo, $user;
     $config['sitename'] = utf8_normalize_nfc($config['sitename']);
     $config['site_desc'] = utf8_normalize_nfc($config['site_desc']);
     return array('cache' => array('display_vars' => array('title' => 'GYM_CACHE', 'vars' => array('legend1' => 'GYM_CACHE', 'rss_cache_on' => array('lang' => 'GYM_CACHE_ON', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_cache_force_gzip' => array('lang' => 'GYM_CACHE_FORCE_GZIP', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_cache_max_age' => array('lang' => 'GYM_CACHE_MAX_AGE', 'validate' => 'string', 'type' => 'text:4:4', 'explain' => true, 'overriding' => true), 'rss_cache_auto_regen' => array('lang' => 'GYM_CACHE_AUTO_REGEN', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_showstats' => array('lang' => 'GYM_SHOWSTATS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true))), 'default' => array('rss_cache_on' => 0, 'rss_cache_force_gzip' => 0, 'rss_cache_max_age' => 6, 'rss_cache_auto_regen' => 1, 'rss_showstats' => 1)), 'modrewrite' => array('display_vars' => array('title' => 'GYM_MODREWRITE', 'vars' => array('legend1' => 'GYM_MODREWRITE', 'rss_modrewrite' => array('lang' => 'GYM_MODREWRITE_ON', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_modrtype' => array('lang' => 'GYM_MODRTYPE', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true, 'overriding' => true), 'rss_1xredir' => array('lang' => 'RSS_1XREDIR', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true))), 'default' => array('rss_modrewrite' => 0, 'rss_modrtype' => 0, 'rss_1xredir' => 0), 'select' => array('rss_modrtype' => @$this->dyn_select['modrtype'])), 'gzip' => array('display_vars' => array('title' => 'GYM_GZIP', 'vars' => array('legend4' => 'GYM_GZIP', 'rss_gzip' => array('lang' => 'GYM_GZIP_ON', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_gzip_ext' => array('lang' => 'GYM_GZIP_EXT', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true))), 'default' => array('rss_gzip' => 0, 'rss_gzip_ext' => 1)), 'limit' => array('display_vars' => array('title' => 'GYM_LIMIT', 'vars' => array('legend1' => 'RSS_LIMIT_GEN', 'rss_url_limit' => array('lang' => 'GYM_URL_LIMIT', 'validate' => 'int:0:5000', 'type' => 'text:4:4', 'explain' => true, 'overriding' => true), 'rss_sql_limit' => array('lang' => 'GYM_SQL_LIMIT', 'validate' => 'int:0:1000', 'type' => 'text:4:4', 'explain' => true, 'overriding' => true), 'rss_time_limit' => array('lang' => 'GYM_TIME_LIMIT', 'validate' => 'int:0:1000', 'type' => 'text:4:4', 'explain' => true, 'overriding' => true), 'legend2' => 'RSS_LIMIT_SPEC', 'rss_url_limit_long' => array('lang' => 'RSS_URL_LIMIT_LONG', 'validate' => 'int:0:5000', 'type' => 'text:4:4', 'explain' => true), 'rss_sql_limit_long' => array('lang' => 'RSS_SQL_LIMIT_LONG', 'validate' => 'int:0:1000', 'type' => 'text:4:4', 'explain' => true), 'rss_url_limit_short' => array('lang' => 'RSS_URL_LIMIT_SHORT', 'validate' => 'int:0:5000', 'type' => 'text:4:4', 'explain' => true), 'rss_sql_limit_short' => array('lang' => 'RSS_SQL_LIMIT_SHORT', 'validate' => 'int:0:1000', 'type' => 'text:4:4', 'explain' => true), 'rss_url_limit_msg' => array('lang' => 'RSS_URL_LIMIT_MSG', 'validate' => 'int:0:1000', 'type' => 'text:4:4', 'explain' => true), 'rss_sql_limit_msg' => array('lang' => 'RSS_SQL_LIMIT_MSG', 'validate' => 'int:0:500', 'type' => 'text:4:4', 'explain' => true))), 'default' => array('rss_url_limit' => 50, 'rss_sql_limit' => 20, 'rss_time_limit' => 15, 'rss_url_limit_long' => 100, 'rss_sql_limit_long' => 25, 'rss_url_limit_short' => 10, 'rss_sql_limit_short' => 10, 'rss_url_limit_msg' => 15, 'rss_sql_limit_msg' => 15)), 'sort' => array('display_vars' => array('title' => 'GYM_SORT', 'vars' => array('legend1' => 'GYM_SORT', 'rss_sort' => array('lang' => 'GYM_SORT_TYPE', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true, 'overriding' => true))), 'default' => array('rss_sort' => 'DESC'), 'select' => array('rss_sort' => @$this->dyn_select['sort'])), 'pagination' => array('display_vars' => array('title' => 'GYM_PAGINATION', 'vars' => array('legend1' => 'GYM_PAGINATION', 'rss_pagination' => array('lang' => 'GYM_PAGINATION_ON', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_limitdown' => array('lang' => 'GYM_LIMITDOWN', 'validate' => 'int:0', 'type' => 'text:4:4', 'explain' => true, 'overriding' => true), 'rss_limitup' => array('lang' => 'GYM_LIMITUP', 'validate' => 'int:0', 'type' => 'text:4:4', 'explain' => true, 'overriding' => true))), 'default' => array('rss_pagination' => 1, 'rss_limitdown' => 3, 'rss_limitup' => 5)), 'override' => array('display_vars' => array('title' => 'GYM_OVERRIDE', 'vars' => array('legend1' => 'GYM_OVERRIDE', 'rss_override' => array('lang' => 'GYM_OVERRIDE_MAIN', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'rss_override_cache' => array('lang' => 'GYM_OVERRIDE_CACHE', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'rss_override_modrewrite' => array('lang' => 'GYM_OVERRIDE_MODREWRITE', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'rss_override_gzip' => array('lang' => 'GYM_OVERRIDE_GZIP', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'rss_override_limit' => array('lang' => 'GYM_OVERRIDE_LIMIT', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'rss_override_sort' => array('lang' => 'GYM_OVERRIDE_SORT', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'rss_override_pagination' => array('lang' => 'GYM_OVERRIDE_PAGINATION', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true))), 'default' => array('rss_override' => OVERRIDE_MODULE, 'rss_override_cache' => OVERRIDE_OTYPE, 'rss_override_modrewrite' => OVERRIDE_OTYPE, 'rss_override_gzip' => OVERRIDE_GLOBAL, 'rss_override_limit' => OVERRIDE_OTYPE, 'rss_override_sort' => OVERRIDE_MODULE, 'rss_override_pagination' => OVERRIDE_OTYPE), 'select' => array('rss_override' => $this->rss_override, 'rss_override_cache' => @$this->dyn_select['override'], 'rss_override_modrewrite' => @$this->dyn_select['override'], 'rss_override_gzip' => @$this->dyn_select['override'], 'rss_override_limit' => @$this->dyn_select['override'], 'rss_override_sort' => @$this->dyn_select['override'], 'rss_override_pagination' => @$this->dyn_select['override'])), 'main' => array('display_vars' => array('title' => 'RSS_MAIN', 'vars' => array('legend1' => 'RSS_URL', 'rss_url' => array('lang' => 'RSS_URL', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => true), 'legend2' => 'RSS_LINKS_ACTIVATION', 'rss_link_main' => array('lang' => 'RSS_LINKS_MAIN', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_link_index' => array('lang' => 'RSS_LINKS_INDEX', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_link_cat' => array('lang' => 'RSS_LINKS_CAT', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_alternate' => array('lang' => 'RSS_ALTERNATE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_linking_type' => array('lang' => 'RSS_LINKING_TYPE', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'legend3' => 'RSS_SETTINGS', 'rss_c_info' => array('lang' => 'RSS_C_INFO', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => true), 'rss_sitename' => array('lang' => 'RSS_SITENAME', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => true), 'rss_site_desc' => array('lang' => 'RSS_SITE_DESC', 'validate' => 'string', 'type' => 'textarea:6:50', 'explain' => true), 'rss_logo_url' => array('lang' => 'RSS_LOGO_URL', 'validate' => 'string', 'type' => 'text:25:200', 'explain' => true), 'rss_image_url' => array('lang' => 'RSS_IMAGE_URL', 'validate' => 'string', 'type' => 'text:25:200', 'explain' => true), 'rss_lang' => array('lang' => 'RSS_LANG', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'legend4' => 'RSS_AUTH_SETTINGS', 'rss_allow_auth' => array('lang' => 'RSS_ALLOW_AUTH', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_cache_auth' => array('lang' => 'RSS_CACHE_AUTH', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'legend5' => 'RSS_NOTIFY', 'rss_yahoo_notify' => array('lang' => 'RSS_YAHOO_NOTIFY', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_yahoo_appid' => array('lang' => 'RSS_YAHOO_APPID', 'validate' => 'string', 'type' => 'text:25:200', 'explain' => true), 'legend6' => 'RSS_STYLE', 'rss_xslt' => array('lang' => 'RSS_XSLT', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_force_xslt' => array('lang' => 'RSS_FORCE_XSLT', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_load_phpbb_css' => array('lang' => 'RSS_LOAD_PHPBB_CSS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true))), 'default' => array('rss_url' => $phpbb_seo->seo_path['phpbb_url'], 'rss_link_main' => 1, 'rss_link_index' => 1, 'rss_link_cat' => 1, 'rss_alternate' => 1, 'rss_linking_type' => 'n', 'rss_c_info' => $config['sitename'], 'rss_sitename' => $config['sitename'], 'rss_site_desc' => $config['site_desc'], 'rss_logo_url' => 'logo.gif', 'rss_image_url' => 'rss_forum_big.gif', 'rss_lang' => $config['default_lang'], 'rss_allow_auth' => 0, 'rss_cache_auth' => 1, 'rss_yahoo_notify' => 0, 'rss_yahoo_appid' => '', 'rss_xslt' => 1, 'rss_force_xslt' => 1, 'rss_load_phpbb_css' => 0), 'select' => array('rss_lang' => $user->lang['ISO_639_1'], 'rss_linking_type' => @$this->dyn_select['rss_linking_types'])), 'content' => array('display_vars' => array('title' => 'RSS_CONTENT', 'vars' => array('legend1' => 'RSS_CONTENT', 'rss_allow_news' => array('lang' => 'RSS_ALLOW_NEWS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_news_update' => array('lang' => 'RSS_NEWS_UPDATE', 'validate' => 'string', 'type' => 'text:4:4', 'explain' => true), 'rss_allow_short' => array('lang' => 'RSS_ALLOW_SHORT', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_allow_long' => array('lang' => 'RSS_ALLOW_LONG', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_allow_content' => array('lang' => 'RSS_ALLOW_CONTENT', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_allow_profile' => array('lang' => 'RSS_ALLOW_PROFILE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_allow_profile_links' => array('lang' => 'RSS_ALLOW_PROFILE_LINKS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_allow_bbcode' => array('lang' => 'RSS_ALLOW_BBCODE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_strip_bbcode' => array('lang' => 'RSS_STRIP_BBCODE', 'validate' => 'string', 'type' => 'text:30:200', 'explain' => true), 'rss_allow_links' => array('lang' => 'RSS_ALLOW_LINKS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_allow_emails' => array('lang' => 'RSS_ALLOW_EMAILS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_allow_smilies' => array('lang' => 'RSS_ALLOW_SMILIES', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_sumarize' => array('lang' => 'RSS_SUMARIZE', 'validate' => 'int:0:1000', 'type' => 'text:4:4', 'explain' => true), 'rss_sumarize_method' => array('lang' => 'RSS_SUMARIZE_METHOD', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'rss_nohtml' => array('lang' => 'RSS_NOHTML', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true))), 'default' => array('rss_allow_news' => 1, 'rss_news_update' => '', 'rss_allow_short' => 1, 'rss_allow_long' => 1, 'rss_allow_content' => 1, 'rss_allow_profile' => 1, 'rss_allow_profile_links' => 0, 'rss_allow_bbcode' => 1, 'rss_strip_bbcode' => '', 'rss_allow_links' => 1, 'rss_allow_emails' => 0, 'rss_allow_smilies' => 1, 'rss_sumarize' => 50, 'rss_sumarize_method' => 'words', 'rss_nohtml' => 0), 'select' => array('rss_sumarize_method' => @$this->dyn_select['sumarize_method'])), 'info' => array('title_lang' => 'GYM_RSS', 'lang_file' => 'gym_rss', 'actions' => array('main', 'content', 'cache', 'modrewrite', 'gzip', 'limit', 'sort', 'pagination', 'override'), 'mode' => 'rss', 'module' => 'main'));
 }
开发者ID:Ibrahim-Abdelkader,项目名称:phpbb3,代码行数:12,代码来源:rss_main.php

示例6: acp_module

 /**
  * acp_module()
  * retunrs the acp config
  * @access private
  */
 function acp_module()
 {
     global $config, $phpbb_seo, $user;
     $config['sitename'] = utf8_normalize_nfc($config['sitename']);
     $config['site_desc'] = utf8_normalize_nfc($config['site_desc']);
     return array('cache' => array('display_vars' => array('title' => 'GYM_CACHE', 'vars' => array('legend1' => 'GYM_CACHE', 'rss_forum_cache_on' => array('lang' => 'GYM_CACHE_ON', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_forum_cache_force_gzip' => array('lang' => 'GYM_CACHE_FORCE_GZIP', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_forum_cache_max_age' => array('lang' => 'GYM_CACHE_MAX_AGE', 'validate' => 'string', 'type' => 'text:4:4', 'explain' => true, 'overriding' => true), 'rss_forum_showstats' => array('lang' => 'GYM_SHOWSTATS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true))), 'default' => array('rss_forum_cache_on' => 0, 'rss_forum_cache_force_gzip' => 0, 'rss_forum_cache_max_age' => 6, 'rss_forum_showstats' => 1)), 'modrewrite' => array('display_vars' => array('title' => 'GYM_MODREWRITE', 'vars' => array('legend1' => 'GYM_MODREWRITE', 'rss_forum_modrewrite' => array('lang' => 'GYM_MODREWRITE_ON', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_forum_modrtype' => array('lang' => 'GYM_MODRTYPE', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true, 'overriding' => true))), 'default' => array('rss_forum_modrewrite' => 0, 'rss_forum_modrtype' => 0), 'select' => array('rss_forum_modrtype' => @$this->dyn_select['modrtype'])), 'gzip' => array('display_vars' => array('title' => 'GYM_GZIP', 'vars' => array('legend4' => 'GYM_GZIP', 'rss_forum_gzip' => array('lang' => 'GYM_GZIP_ON', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_forum_gzip_ext' => array('lang' => 'GYM_GZIP_EXT', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true))), 'default' => array('rss_forum_gzip' => 0, 'rss_forum_gzip_ext' => 1)), 'limit' => array('display_vars' => array('title' => 'GYM_LIMIT', 'vars' => array('legend1' => 'RSS_LIMIT_GEN', 'rss_forum_url_limit' => array('lang' => 'GYM_URL_LIMIT', 'validate' => 'int:0:5000', 'type' => 'text:4:4', 'explain' => true, 'overriding' => true), 'rss_forum_sql_limit' => array('lang' => 'GYM_SQL_LIMIT', 'validate' => 'int:0:1000', 'type' => 'text:4:4', 'explain' => true, 'overriding' => true), 'rss_forum_time_limit' => array('lang' => 'GYM_TIME_LIMIT', 'validate' => 'int:0:1000', 'type' => 'text:4:4', 'explain' => true, 'overriding' => true), 'legend2' => 'RSS_LIMIT_SPEC', 'rss_forum_url_limit_long' => array('lang' => 'RSS_URL_LIMIT_LONG', 'validate' => 'int:0:5000', 'type' => 'text:4:4', 'explain' => true, 'overriding' => true), 'rss_forum_sql_limit_long' => array('lang' => 'RSS_SQL_LIMIT_LONG', 'validate' => 'int:0:1000', 'type' => 'text:4:4', 'explain' => true, 'overriding' => true), 'rss_forum_url_limit_short' => array('lang' => 'RSS_URL_LIMIT_SHORT', 'validate' => 'int:0:5000', 'type' => 'text:4:4', 'explain' => true, 'overriding' => true), 'rss_forum_sql_limit_short' => array('lang' => 'RSS_SQL_LIMIT_SHORT', 'validate' => 'int:0:1000', 'type' => 'text:4:4', 'explain' => true, 'overriding' => true), 'rss_forum_url_limit_msg' => array('lang' => 'RSS_URL_LIMIT_MSG', 'validate' => 'int:0:1000', 'type' => 'text:4:4', 'explain' => true, 'overriding' => true), 'rss_forum_sql_limit_msg' => array('lang' => 'RSS_SQL_LIMIT_MSG', 'validate' => 'int:0:500', 'type' => 'text:4:4', 'explain' => true, 'overriding' => true))), 'default' => array('rss_forum_url_limit' => 50, 'rss_forum_sql_limit' => 20, 'rss_forum_time_limit' => 15, 'rss_forum_url_limit_long' => 100, 'rss_forum_sql_limit_long' => 25, 'rss_forum_url_limit_short' => 10, 'rss_forum_sql_limit_short' => 10, 'rss_forum_url_limit_msg' => 15, 'rss_forum_sql_limit_msg' => 15)), 'sort' => array('display_vars' => array('title' => 'GYM_SORT', 'vars' => array('legend1' => 'GYM_SORT', 'rss_forum_sort' => array('lang' => 'GYM_SORT_TYPE', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true, 'overriding' => true))), 'default' => array('rss_forum_sort' => 'DESC'), 'select' => array('rss_forum_sort' => @$this->dyn_select['sort'])), 'pagination' => array('display_vars' => array('title' => 'GYM_PAGINATION', 'vars' => array('legend1' => 'GYM_PAGINATION', 'rss_forum_pagination' => array('lang' => 'GYM_PAGINATION_ON', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_forum_limitdown' => array('lang' => 'GYM_LIMITDOWN', 'validate' => 'int:0', 'type' => 'text:4:4', 'explain' => true, 'overriding' => true), 'rss_forum_limitup' => array('lang' => 'GYM_LIMITUP', 'validate' => 'int:0', 'type' => 'text:4:4', 'explain' => true, 'overriding' => true))), 'default' => array('rss_forum_pagination' => 1, 'rss_forum_limitdown' => 3, 'rss_forum_limitup' => 5)), 'main' => array('display_vars' => array('title' => 'RSS_MAIN', 'vars' => array('legend1' => 'RSS_SETTINGS', 'rss_forum_c_info' => array('lang' => 'RSS_C_INFO', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => true, 'overriding' => true), 'rss_forum_sitename' => array('lang' => 'RSS_SITENAME', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => true, 'overriding' => true), 'rss_forum_site_desc' => array('lang' => 'RSS_SITE_DESC', 'validate' => 'string', 'type' => 'textarea:6:50', 'explain' => true, 'overriding' => true), 'rss_forum_logo_url' => array('lang' => 'RSS_LOGO_URL', 'validate' => 'string', 'type' => 'text:25:200', 'explain' => true, 'overriding' => true), 'rss_forum_image_url' => array('lang' => 'RSS_IMAGE_URL', 'validate' => 'string', 'type' => 'text:25:200', 'explain' => true, 'overriding' => true), 'rss_forum_lang' => array('lang' => 'RSS_LANG', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true, 'overriding' => true), 'rss_forum_alternate' => array('lang' => 'RSS_FORUM_ALTERNATE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'legend2' => 'RSS_AUTH_SETTINGS', 'rss_forum_allow_auth' => array('lang' => 'RSS_ALLOW_AUTH', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_forum_cache_auth' => array('lang' => 'RSS_CACHE_AUTH', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'legend3' => 'RSS_NOTIFY', 'rss_forum_yahoo_notify' => array('lang' => 'RSS_YAHOO_NOTIFY', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'legend4' => 'RSS_FORUM_EXCLUDE', 'rss_forum_exclude' => array('lang' => 'RSS_FORUM_EXCLUDE', 'multiple_validate' => 'int', 'type' => 'custom', 'method' => 'select_multiple_string', 'explain' => true))), 'default' => array('rss_forum_c_info' => $config['sitename'], 'rss_forum_sitename' => $config['sitename'], 'rss_forum_site_desc' => $config['site_desc'], 'rss_forum_logo_url' => 'logo.gif', 'rss_forum_image_url' => 'rss_forum_big.gif', 'rss_forum_lang' => $config['default_lang'], 'rss_forum_alternate' => 1, 'rss_forum_allow_auth' => 0, 'rss_forum_cache_auth' => 1, 'rss_forum_exclude' => '', 'rss_forum_yahoo_notify' => 0), 'select' => array('rss_forum_lang' => $user->lang['ISO_639_1'], 'rss_forum_exclude' => @$this->dyn_select['forums'])), 'content' => array('display_vars' => array('title' => 'RSS_CONTENT', 'vars' => array('legend1' => 'RSS_CONTENT', 'rss_forum_allow_news' => array('lang' => 'RSS_ALLOW_NEWS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_forum_allow_short' => array('lang' => 'RSS_ALLOW_SHORT', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_forum_allow_long' => array('lang' => 'RSS_ALLOW_LONG', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_forum_allow_content' => array('lang' => 'RSS_ALLOW_CONTENT', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_forum_allow_profile' => array('lang' => 'RSS_ALLOW_PROFILE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_forum_allow_profile_links' => array('lang' => 'RSS_ALLOW_PROFILE_LINKS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_forum_allow_bbcode' => array('lang' => 'RSS_ALLOW_BBCODE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_forum_strip_bbcode' => array('lang' => 'RSS_STRIP_BBCODE', 'validate' => 'string', 'type' => 'text:25:200', 'explain' => true, 'overriding' => true), 'rss_forum_allow_links' => array('lang' => 'RSS_ALLOW_LINKS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_forum_allow_emails' => array('lang' => 'RSS_ALLOW_EMAILS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_forum_allow_smilies' => array('lang' => 'RSS_ALLOW_SMILIES', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'rss_forum_sumarize' => array('lang' => 'RSS_SUMARIZE', 'validate' => 'int:0:1000', 'type' => 'text:4:4', 'explain' => true, 'overriding' => true), 'rss_forum_sumarize_method' => array('lang' => 'RSS_SUMARIZE_METHOD', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true, 'overriding' => true), 'rss_forum_nohtml' => array('lang' => 'RSS_NOHTML', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'legend2' => 'RSS_FORUM_CONTENT', 'rss_forum_first' => array('lang' => 'RSS_FORUM_FIRST', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_forum_last' => array('lang' => 'RSS_FORUM_LAST', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'rss_forum_rules' => array('lang' => 'RSS_FORUM_RULES', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true))), 'default' => array('rss_forum_allow_news' => 1, 'rss_forum_allow_short' => 1, 'rss_forum_allow_long' => 1, 'rss_forum_allow_content' => 1, 'rss_forum_allow_profile' => 1, 'rss_forum_allow_profile_links' => 0, 'rss_forum_allow_bbcode' => 1, 'rss_forum_strip_bbcode' => '', 'rss_forum_allow_links' => 1, 'rss_forum_allow_emails' => 0, 'rss_forum_allow_smilies' => 1, 'rss_forum_sumarize' => 25, 'rss_forum_sumarize_method' => 'words', 'rss_forum_nohtml' => 0, 'rss_forum_first' => 0, 'rss_forum_last' => 1, 'rss_forum_rules' => 0), 'select' => array('rss_forum_sumarize_method' => @$this->dyn_select['sumarize_method'])), 'info' => array('title_lang' => 'RSS_FORUM', 'lang_file' => 'rss_forum', 'actions' => array('main', 'content', 'cache', 'modrewrite', 'gzip', 'limit', 'sort', 'pagination'), 'mode' => 'rss', 'module' => 'forum'));
 }
开发者ID:Ibrahim-Abdelkader,项目名称:phpbb3,代码行数:12,代码来源:rss_forum.php

示例7: acp_module

 /**
  * acp_module()
  * retunrs the acp config
  * @access private
  */
 function acp_module()
 {
     global $config, $phpbb_seo, $user, $phpEx;
     $config['sitename'] = utf8_normalize_nfc($config['sitename']);
     $config['site_desc'] = utf8_normalize_nfc($config['site_desc']);
     return array('cache' => array('display_vars' => array('title' => 'HTML_CACHE', 'vars' => array('legend1' => 'HTML_CACHE', 'html_main_cache_on' => array('lang' => 'HTML_MAIN_CACHE_ON', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'html_main_cache_ttl' => array('lang' => 'HTML_MAIN_CACHE_TTL', 'validate' => 'string', 'type' => 'text:4:4', 'explain' => true), 'html_opt_cache_on' => array('lang' => 'HTML_OPT_CACHE_ON', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'html_opt_cache_ttl' => array('lang' => 'HTML_OPT_CACHE_TTL', 'validate' => 'string', 'type' => 'text:4:4', 'explain' => true))), 'default' => array('html_main_cache_on' => 0, 'html_opt_cache_on' => 0, 'html_opt_cache_ttl' => 6, 'html_main_cache_ttl' => 6)), 'modrewrite' => array('display_vars' => array('title' => 'GYM_MODREWRITE', 'vars' => array('legend1' => 'GYM_MODREWRITE', 'html_modrewrite' => array('lang' => 'GYM_MODREWRITE_ON', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true), 'html_modrtype' => array('lang' => 'GYM_MODRTYPE', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true, 'overriding' => true))), 'default' => array('html_modrewrite' => 0, 'html_modrtype' => 0), 'select' => array('html_modrtype' => @$this->dyn_select['modrtype'])), 'gzip' => array('display_vars' => array('title' => 'GYM_GZIP', 'vars' => array('legend4' => 'GYM_GZIP', 'html_gzip' => array('lang' => 'GYM_GZIP_ON', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true, 'overriding' => true))), 'default' => array('html_gzip' => 0)), 'limit' => array('display_vars' => array('title' => 'GYM_LIMIT', 'vars' => array('legend1' => 'GYM_URL_LIMIT', 'html_rss_news_limit' => array('lang' => 'HTML_RSS_NEWS_LIMIT', 'validate' => 'int:0:1000', 'type' => 'text:4:4', 'explain' => true), 'legend2' => 'GYM_TIME_LIMIT', 'html_map_time_limit' => array('lang' => 'HTML_MAP_TIME_LIMIT', 'validate' => 'int:0:1000', 'type' => 'text:4:4', 'explain' => true), 'html_cat_time_limit' => array('lang' => 'HTML_CAT_MAP_TIME_LIMIT', 'validate' => 'int:0:1000', 'type' => 'text:4:4', 'explain' => true), 'html_news_time_limit' => array('lang' => 'HTML_NEWS_TIME_LIMIT', 'validate' => 'int:0:1000', 'type' => 'text:4:4', 'explain' => true), 'html_cat_news_time_limit' => array('lang' => 'HTML_CAT_NEWS_TIME_LIMIT', 'validate' => 'int:0:1000', 'type' => 'text:4:4', 'explain' => true))), 'default' => array('html_rss_news_limit' => 10, 'html_map_time_limit' => 0, 'html_cat_time_limit' => 0, 'html_news_time_limit' => 0, 'html_cat_news_time_limit' => 0)), 'sort' => array('display_vars' => array('title' => 'GYM_SORT', 'vars' => array('legend1' => 'GYM_SORT', 'html_sort' => array('lang' => 'GYM_SORT_TYPE', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true, 'overriding' => true), 'html_cat_sort' => array('lang' => 'HTML_CAT_SORT_TYPE', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true, 'overriding' => true), 'html_news_sort' => array('lang' => 'HTML_NEWS_SORT_TYPE', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true, 'overriding' => true), 'html_cat_news_sort' => array('lang' => 'HTML_CAT_NEWS_SORT_TYPE', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true, 'overriding' => true))), 'default' => array('html_sort' => 'DESC', 'html_cat_sort' => 'DESC', 'html_news_sort' => 'DESC', 'html_cat_news_sort' => 'DESC'), 'select' => array('html_sort' => @$this->dyn_select['sort'], 'html_cat_sort' => @$this->dyn_select['sort'], 'html_news_sort' => @$this->dyn_select['sort'], 'html_cat_news_sort' => @$this->dyn_select['sort'])), 'pagination' => array('display_vars' => array('title' => 'GYM_PAGINATION', 'vars' => array('legend1' => 'HTML_PAGINATION_GEN', 'html_pagination' => array('lang' => 'HTML_PAGINATION', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'html_pagination_limit' => array('lang' => 'HTML_PAGINATION_LIMIT', 'validate' => 'int:0:100', 'type' => 'text:4:4', 'explain' => true), 'html_news_pagination' => array('lang' => 'HTML_NEWS_PAGINATION', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'html_news_pagination_limit' => array('lang' => 'HTML_NEWS_PAGINATION_LIMIT', 'validate' => 'int:0:50', 'type' => 'text:4:4', 'explain' => true), 'legend2' => 'HTML_PAGINATION_SPEC', 'html_item_pagination' => array('lang' => 'HTML_ITEM_PAGINATION', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true))), 'default' => array('html_pagination' => 1, 'html_pagination_limit' => 25, 'html_news_pagination' => 1, 'html_news_pagination_limit' => 10, 'html_item_pagination' => 0)), 'override' => array('display_vars' => array('title' => 'GYM_OVERRIDE', 'vars' => array('legend1' => 'GYM_OVERRIDE', 'html_override' => array('lang' => 'GYM_OVERRIDE_MAIN', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'html_override_cache' => array('lang' => 'GYM_OVERRIDE_CACHE', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'html_override_modrewrite' => array('lang' => 'GYM_OVERRIDE_MODREWRITE', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'html_override_gzip' => array('lang' => 'GYM_OVERRIDE_GZIP', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'html_override_limit' => array('lang' => 'GYM_OVERRIDE_LIMIT', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'html_override_sort' => array('lang' => 'GYM_OVERRIDE_SORT', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'html_override_pagination' => array('lang' => 'GYM_OVERRIDE_PAGINATION', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true))), 'default' => array('html_override' => OVERRIDE_MODULE, 'html_override_cache' => OVERRIDE_OTYPE, 'html_override_modrewrite' => OVERRIDE_OTYPE, 'html_override_gzip' => OVERRIDE_GLOBAL, 'html_override_limit' => OVERRIDE_OTYPE, 'html_override_sort' => OVERRIDE_MODULE, 'html_override_pagination' => OVERRIDE_OTYPE), 'select' => array('html_override' => $this->html_override, 'html_override_cache' => $this->html_override, 'html_override_modrewrite' => @$this->dyn_select['override'], 'html_override_gzip' => @$this->dyn_select['override'], 'html_override_limit' => $this->html_override, 'html_override_sort' => @$this->dyn_select['override'], 'html_override_pagination' => $this->html_override)), 'main' => array('display_vars' => array('title' => 'HTML_MAIN', 'vars' => array('legend1' => 'HTML_URL', 'html_url' => array('lang' => 'HTML_URL', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => true), 'legend2' => 'HTML_LINKS_ACTIVATION', 'html_link_main' => array('lang' => 'HTML_LINKS_MAIN', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'html_link_index' => array('lang' => 'HTML_LINKS_INDEX', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'html_link_cat' => array('lang' => 'HTML_LINKS_CAT', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'legend3' => 'HTML_SETTINGS', 'html_allow_map' => array('lang' => 'HTML_ALLOW_MAP', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'html_allow_cat_map' => array('lang' => 'HTML_ALLOW_CAT_MAP', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'html_sitename' => array('lang' => 'HTML_SITENAME', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => true), 'html_site_desc' => array('lang' => 'HTML_SITE_DESC', 'validate' => 'string', 'type' => 'textarea:6:50', 'explain' => true), 'html_c_info' => array('lang' => 'HTML_C_INFO', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => true), 'html_logo_url' => array('lang' => 'HTML_LOGO_URL', 'validate' => 'string', 'type' => 'text:25:200', 'explain' => true), 'html_stats_on_news' => array('lang' => 'HTML_STATS_ON_NEWS', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'html_stats_on_map' => array('lang' => 'HTML_STATS_ON_MAP', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'html_birthdays_on_news' => array('lang' => 'HTML_BIRTHDAYS_ON_NEWS', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'html_birthdays_on_map' => array('lang' => 'HTML_BIRTHDAYS_ON_MAP', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'html_disp_online' => array('lang' => 'HTML_DISP_ONLINE', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'html_disp_tracking' => array('lang' => 'HTML_DISP_TRACKING', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'html_disp_status' => array('lang' => 'HTML_DISP_STATUS', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'html_allow_profile' => array('lang' => 'HTML_ALLOW_PROFILE', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'html_allow_profile_links' => array('lang' => 'HTML_ALLOW_PROFILE_LINKS', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'legend4' => 'HTML_AUTH_SETTINGS', 'html_allow_auth' => array('lang' => 'HTML_ALLOW_AUTH', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true))), 'default' => array('html_url' => $phpbb_seo->seo_path['phpbb_url'], 'html_link_main' => 1, 'html_link_index' => 1, 'html_link_cat' => 1, 'html_allow_map' => 1, 'html_allow_cat_map' => 1, 'html_c_info' => $config['sitename'], 'html_sitename' => $config['sitename'], 'html_site_desc' => $config['site_desc'], 'html_logo_url' => '', 'html_disp_online' => 'globalmod', 'html_disp_tracking' => 'reg', 'html_disp_status' => 'reg', 'html_allow_profile' => 'none', 'html_allow_profile_links' => 'reg', 'html_allow_auth' => 1, 'html_stats_on_news' => 'all', 'html_stats_on_map' => 'all', 'html_birthdays_on_news' => 'reg', 'html_birthdays_on_map' => 'reg'), 'select' => array('html_disp_online' => @$this->dyn_select['gym_auth'], 'html_disp_tracking' => @$this->dyn_select['gym_auth'], 'html_disp_status' => @$this->dyn_select['gym_auth'], 'html_allow_profile' => @$this->dyn_select['gym_auth'], 'html_allow_profile_links' => @$this->dyn_select['gym_auth'], 'html_stats_on_news' => @$this->dyn_select['gym_auth'], 'html_stats_on_map' => @$this->dyn_select['gym_auth'], 'html_birthdays_on_news' => @$this->dyn_select['gym_auth'], 'html_birthdays_on_map' => @$this->dyn_select['gym_auth'])), 'content' => array('display_vars' => array('title' => 'HTML_NEWS', 'vars' => array('legend1' => 'HTML_NEWS', 'html_allow_news' => array('lang' => 'HTML_ALLOW_NEWS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'html_allow_cat_news' => array('lang' => 'HTML_ALLOW_CAT_NEWS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'html_rss_news_url' => array('lang' => 'HTML_RSS_NEWS_URL', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => true), 'legend2' => 'HTML_NEWS_CONTENT', 'html_allow_bbcode' => array('lang' => 'HTML_ALLOW_BBCODE', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'html_strip_bbcode' => array('lang' => 'HTML_STRIP_BBCODE', 'validate' => 'string', 'type' => 'text:30:200', 'explain' => true), 'html_allow_links' => array('lang' => 'HTML_ALLOW_LINKS', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'html_allow_emails' => array('lang' => 'HTML_ALLOW_EMAILS', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'html_allow_smilies' => array('lang' => 'HTML_ALLOW_SMILIES', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'html_allow_sig' => array('lang' => 'HTML_ALLOW_SIG', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true), 'html_sumarize' => array('lang' => 'HTML_SUMARIZE', 'validate' => 'int:0:1000', 'type' => 'text:4:4', 'explain' => true), 'html_sumarize_method' => array('lang' => 'HTML_SUMARIZE_METHOD', 'validate' => 'string', 'type' => 'select', 'method' => 'select_string', 'explain' => true))), 'default' => array('html_allow_news' => 1, 'html_allow_cat_news' => 1, 'html_rss_news_url' => (!empty($this->gym_master->gym_config['rss_url']) ? $this->gym_master->gym_config['rss_url'] : $phpbb_seo->seo_path['phpbb_url']) . "gymrss.{$phpEx}?news&digest", 'html_allow_bbcode' => 'all', 'html_strip_bbcode' => '', 'html_allow_links' => 'all', 'html_allow_emails' => 'none', 'html_allow_smilies' => 'all', 'html_allow_sig' => 'reg', 'html_sumarize' => 75, 'html_sumarize_method' => 'words'), 'select' => array('html_sumarize_method' => @$this->dyn_select['sumarize_method'], 'html_allow_bbcode' => @$this->dyn_select['gym_auth'], 'html_allow_links' => @$this->dyn_select['gym_auth'], 'html_allow_emails' => @$this->dyn_select['gym_auth'], 'html_allow_smilies' => @$this->dyn_select['gym_auth'], 'html_allow_sig' => @$this->dyn_select['gym_auth'])), 'info' => array('title_lang' => 'GYM_HTML', 'lang_file' => 'gym_html', 'actions' => array('main', 'content', 'cache', 'modrewrite', 'gzip', 'limit', 'sort', 'pagination', 'override'), 'mode' => 'rss', 'module' => 'main'));
 }
开发者ID:Ibrahim-Abdelkader,项目名称:phpbb3,代码行数:12,代码来源:html_main.php

示例8: main

 public function main($id, $mode)
 {
     global $data, $config, $error, $submit;
     $timezone = $config['board_timezone'];
     $data = array('username' => utf8_normalize_nfc(request_var('username', '', true)), 'password' => request_var('password', '', true), 'password_confirm' => request_var('password_confirm', '', true), 'email' => request_var('email', ''), 'email_confirm' => request_var('email_confirm', ''), 'tz' => request_var('tz', (double) $timezone));
     if ($submit) {
         $error = validate_data($data, array('username' => array(array('string', false, $config['min_username_chars'], $config['max_username_chars']), array('username', '')), 'password' => array(array('string', false, $config['min_password_chars'], $config['max_password_chars'])), 'password_confirm' => array('string', false, $config['min_password_chars'], $config['max_password_chars']), 'email' => array(array('string', false, 6, 60), array('email')), 'email_confirm' => array('string', false, 6, 60), 'tz' => array('num', -14, 14)));
         if (!sizeof($error)) {
             if ($data['password'] != $data['password_confirm']) {
                 $error[] = 'PASSWORD_MATCH_ERROR';
             }
             if ($data['email'] != $data['email_confirm']) {
                 $error[] = 'EMAIL_MATCH_ERROR';
             }
         }
         if (!sizeof($error)) {
             if ($config['activation_required'] == USER_ACTIVATION_SELF || $config['activation_required'] == USER_ACTIVATION_ADMIN) {
                 $data['group_id'] = INACTIVE_USERS;
             } else {
                 $data['group_id'] = REGISTERED_USERS;
             }
             if (user_add($data) !== false) {
                 /**
                  * @todo registration ok
                  */
             } else {
                 /**
                  * @todo registration failed
                  */
             }
         }
     }
 }
开发者ID:pwltt,项目名称:MES-PWLTT-ENVI,代码行数:33,代码来源:ucp_register.php

示例9: main

 function main($id, $mode)
 {
     global $config, $user, $template, $request;
     $this->tpl_name = 'acp_linkmenu_config';
     $this->page_title = $user->lang['ACP_LINKMENU_SETTINGS'];
     add_form_key('acp_linkmenu_config');
     $submit = $request->is_set_post('submit');
     if ($submit) {
         if (!check_form_key('acp_linkmenu_config')) {
             trigger_error('FORM_INVALID');
         }
         $config->set('linkmenu_enable', $request->variable('linkmenu_enable', 0));
         $config->set('linkmenu_enable_first', $request->variable('linkmenu_enable_first', 0));
         $config->set('linkmenu_name_field_first', utf8_normalize_nfc($request->variable('linkmenu_name_field_first', '', true)));
         $config->set('linkmenu_text_field_first', utf8_normalize_nfc($request->variable('linkmenu_text_field_first', '', true)));
         $config->set('linkmenu_enable_second', $request->variable('linkmenu_enable_second', 0));
         $config->set('linkmenu_name_field_second', utf8_normalize_nfc($request->variable('linkmenu_name_field_second', '', true)));
         $config->set('linkmenu_text_field_second', utf8_normalize_nfc($request->variable('linkmenu_text_field_second', '', true)));
         $config->set('linkmenu_enable_third', $request->variable('linkmenu_enable_third', 0));
         $config->set('linkmenu_name_field_third', utf8_normalize_nfc($request->variable('linkmenu_name_field_third', '', true)));
         $config->set('linkmenu_text_field_third', utf8_normalize_nfc($request->variable('linkmenu_text_field_third', '', true)));
         trigger_error($user->lang['ACP_LINKMENU_CONFIG_SAVED'] . adm_back_link($this->u_action));
     }
     $template->assign_vars(array('ACP_LINKMENU_VERSION' => isset($config['linkmenu_version']) ? $config['linkmenu_version'] : '', 'ACP_LINKMENU_ENABLE' => !empty($config['linkmenu_enable']) ? true : false, 'ACP_LINKMENU_ENABLE_FIRST' => !empty($config['linkmenu_enable_first']) ? true : false, 'LINKMENU_NAME_FIELD_FIRST' => isset($config['linkmenu_name_field_first']) ? $config['linkmenu_name_field_first'] : '', 'LINKMENU_TEXT_FIELD_FIRST' => isset($config['linkmenu_text_field_first']) ? $config['linkmenu_text_field_first'] : '', 'ACP_LINKMENU_ENABLE_SECOND' => !empty($config['linkmenu_enable_second']) ? true : false, 'LINKMENU_NAME_FIELD_SECOND' => isset($config['linkmenu_name_field_second']) ? $config['linkmenu_name_field_second'] : '', 'LINKMENU_TEXT_FIELD_SECOND' => isset($config['linkmenu_text_field_second']) ? $config['linkmenu_text_field_second'] : '', 'ACP_LINKMENU_ENABLE_THIRD' => !empty($config['linkmenu_enable_third']) ? true : false, 'LINKMENU_NAME_FIELD_THIRD' => isset($config['linkmenu_name_field_third']) ? $config['linkmenu_name_field_third'] : '', 'LINKMENU_TEXT_FIELD_THIRD' => isset($config['linkmenu_text_field_third']) ? $config['linkmenu_text_field_third'] : '', 'U_ACTION' => $this->u_action));
 }
开发者ID:alhitary,项目名称:Link-menu,代码行数:25,代码来源:linkmenu_module.php

示例10: base

    public function base()
    {
        $note = utf8_normalize_nfc($this->request->variable('note', '', true));
        $submit = isset($_POST['submit']) ? true : false;
        $error = array();
        // check if user s logged in, since this page can be used only after registration...
        if (!$this->user->data['is_registered']) {
            login_box($this->helper->route('vinny_usersnotes_controller'));
        }
        // ... and also this is not for bots (especially for bad ones :)
        if ($this->user->data['is_bot']) {
            redirect(append_sid("{$this->phpbb_root_path}index.{$this->phpEx}"));
        }
        $s_action = $this->helper->route('vinny_usersnotes_controller');
        $s_hidden_fields = '';
        add_form_key('postform');
        // create a template variables
        $this->template->assign_vars(array('S_POST_ACTION' => $s_action, 'S_HIDDEN_FIELDS' => $s_hidden_fields, 'ERROR' => sizeof($error) ? implode('<br />', $error) : ''));
        if ($submit) {
            /*if(!check_form_key('postform'))
            		{
            			trigger_error('FORM_INVALID');
            		}*/
            $sql = 'UPDATE ' . USERS_TABLE . '
				SET user_note = "' . $note . '"
				WHERE user_id = ' . $this->user->data['user_id'];
            $this->db->sql_query($sql);
            meta_refresh(3, $this->helper->route('vinny_usersnotes_controller'));
            trigger_error(sprintf($this->user->lang['NOTES_SAVED'], $this->helper->route('vinny_usersnotes_controller')));
        }
        // create a template variables
        $this->template->assign_vars(array('NOTE' => $this->user->data['user_note']));
        $this->template->assign_block_vars('navlinks', array('FORUM_NAME' => $this->user->lang['NOTES']));
        return $this->helper->render('notes.html', $this->user->lang['NOTES']);
    }
开发者ID:OfficeForum,项目名称:users-notes-ext,代码行数:35,代码来源:main.php

示例11: get_table_flash_bbcode_pkids

function get_table_flash_bbcode_pkids($table_name, $id_field, $content_field, $uid_field, $bitfield_field)
{
	global $db;

	$ids = array();

	$sql = "SELECT $id_field, $content_field, $uid_field, $bitfield_field
		FROM $table_name
		WHERE $content_field LIKE '%[/flash:%'
			AND $bitfield_field <> ''";

	$result = $db->sql_query($sql);
	while ($row = $db->sql_fetchrow($result))
	{
		$uid = $row[$uid_field];

		// thanks support toolkit
		$content = html_entity_decode_utf8($row[$content_field]);
		set_var($content, $content, 'string', true);
		$content = utf8_normalize_nfc($content);

		$bitfield_data = $row[$bitfield_field];

		if (!is_valid_flash_bbcode($content, $uid) && has_flash_enabled($bitfield_data))
		{
			$ids[] = (int) $row[$id_field];
		}
	}
	$db->sql_freeresult($result);

	return $ids;
}
开发者ID:naderman,项目名称:phpbb-orchestra,代码行数:32,代码来源:check_flash_bbcodes.php

示例12: main

    function main($id, $mode)
    {
        global $db, $user, $auth, $template, $cache;
        global $config, $src_root_path, $src_admin_path, $phpEx;
        include $src_root_path . 'includes/functions_user.' . $phpEx;
        $user->add_lang('acp/posting');
        // Set up general vars
        $this->tpl_name = 'acp_disallow';
        $this->page_title = 'ACP_DISALLOW_USERNAMES';
        $form_key = 'acp_disallow';
        add_form_key($form_key);
        $disallow = isset($_POST['disallow']) ? true : false;
        $allow = isset($_POST['allow']) ? true : false;
        if (($allow || $disallow) && !check_form_key($form_key)) {
            trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
        }
        if ($disallow) {
            $disallowed_user = str_replace('*', '%', utf8_normalize_nfc(request_var('disallowed_user', '', true)));
            if (!$disallowed_user) {
                trigger_error($user->lang['NO_USERNAME_SPECIFIED'] . adm_back_link($this->u_action), E_USER_WARNING);
            }
            $sql = 'SELECT disallow_id
				FROM ' . DISALLOW_TABLE . "\n\t\t\t\tWHERE disallow_username = '" . $db->sql_escape($disallowed_user) . "'";
            $result = $db->sql_query($sql);
            $row = $db->sql_fetchrow($result);
            $db->sql_freeresult($result);
            if ($row) {
                trigger_error($user->lang['DISALLOWED_ALREADY'] . adm_back_link($this->u_action), E_USER_WARNING);
            }
            $sql = 'INSERT INTO ' . DISALLOW_TABLE . ' ' . $db->sql_build_array('INSERT', array('disallow_username' => $disallowed_user));
            $db->sql_query($sql);
            $cache->destroy('_disallowed_usernames');
            $message = $user->lang['DISALLOW_SUCCESSFUL'];
            add_log('admin', 'LOG_DISALLOW_ADD', str_replace('%', '*', $disallowed_user));
            trigger_error($message . adm_back_link($this->u_action));
        } else {
            if ($allow) {
                $disallowed_id = request_var('disallowed_id', 0);
                if (!$disallowed_id) {
                    trigger_error($user->lang['NO_USERNAME_SPECIFIED'] . adm_back_link($this->u_action), E_USER_WARNING);
                }
                $sql = 'DELETE FROM ' . DISALLOW_TABLE . '
				WHERE disallow_id = ' . $disallowed_id;
                $db->sql_query($sql);
                $cache->destroy('_disallowed_usernames');
                add_log('admin', 'LOG_DISALLOW_DELETE');
                trigger_error($user->lang['DISALLOWED_DELETED'] . adm_back_link($this->u_action));
            }
        }
        // Grab the current list of disallowed usernames...
        $sql = 'SELECT *
			FROM ' . DISALLOW_TABLE;
        $result = $db->sql_query($sql);
        $disallow_select = '';
        while ($row = $db->sql_fetchrow($result)) {
            $disallow_select .= '<option value="' . $row['disallow_id'] . '">' . str_replace('%', '*', $row['disallow_username']) . '</option>';
        }
        $db->sql_freeresult($result);
        $template->assign_vars(array('U_ACTION' => $this->u_action, 'S_DISALLOWED_NAMES' => $disallow_select));
    }
开发者ID:AkhilSharma,项目名称:Serbest,代码行数:60,代码来源:acp_disallow.php

示例13: main

 function main($id, $mode)
 {
     global $config, $db, $user, $auth, $template, $cache;
     global $phpbb_root_path, $phpbb_admin_path, $phpEx, $table_prefix;
     include $phpbb_root_path . 'includes/functions_user.' . $phpEx;
     $bansubmit = isset($_POST['bansubmit']) ? true : false;
     $unbansubmit = isset($_POST['unbansubmit']) ? true : false;
     $current_time = time();
     $user->add_lang(array('acp/ban', 'acp/users'));
     $this->tpl_name = 'acp_ban';
     $form_key = 'acp_ban';
     add_form_key($form_key);
     if (($bansubmit || $unbansubmit) && !check_form_key($form_key)) {
         trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
     }
     // Ban submitted?
     if ($bansubmit) {
         // Grab the list of entries
         $ban = utf8_normalize_nfc(request_var('ban', '', true));
         $ban_len = request_var('banlength', 0);
         $ban_len_other = request_var('banlengthother', '');
         $ban_exclude = request_var('banexclude', 0);
         $ban_reason = utf8_normalize_nfc(request_var('banreason', '', true));
         $ban_give_reason = utf8_normalize_nfc(request_var('bangivereason', '', true));
         if ($ban) {
             user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reason, $ban_give_reason);
             trigger_error($user->lang['BAN_UPDATE_SUCCESSFUL'] . adm_back_link($this->u_action));
         }
     } else {
         if ($unbansubmit) {
             $ban = request_var('unban', array(''));
             if ($ban) {
                 user_unban($mode, $ban);
                 trigger_error($user->lang['BAN_UPDATE_SUCCESSFUL'] . adm_back_link($this->u_action));
             }
         }
     }
     // Define language vars
     $this->page_title = $user->lang[strtoupper($mode) . '_BAN'];
     $l_ban_explain = $user->lang[strtoupper($mode) . '_BAN_EXPLAIN'];
     $l_ban_exclude_explain = $user->lang[strtoupper($mode) . '_BAN_EXCLUDE_EXPLAIN'];
     $l_unban_title = $user->lang[strtoupper($mode) . '_UNBAN'];
     $l_unban_explain = $user->lang[strtoupper($mode) . '_UNBAN_EXPLAIN'];
     $l_no_ban_cell = $user->lang[strtoupper($mode) . '_NO_BANNED'];
     switch ($mode) {
         case 'user':
             $l_ban_cell = $user->lang['USERNAME'];
             break;
         case 'ip':
             $l_ban_cell = $user->lang['IP_HOSTNAME'];
             break;
         case 'email':
             $l_ban_cell = $user->lang['EMAIL_ADDRESS'];
             break;
     }
     $this->display_ban_options($mode);
     $template->assign_vars(array('L_TITLE' => $this->page_title, 'L_EXPLAIN' => $l_ban_explain, 'L_UNBAN_TITLE' => $l_unban_title, 'L_UNBAN_EXPLAIN' => $l_unban_explain, 'L_BAN_CELL' => $l_ban_cell, 'L_BAN_EXCLUDE_EXPLAIN' => $l_ban_exclude_explain, 'L_NO_BAN_CELL' => $l_no_ban_cell, 'S_USERNAME_BAN' => $mode == 'user' ? true : false, 'U_ACTION' => $this->u_action, 'U_FIND_USERNAME' => append_sid("{$phpbb_root_path}memberlist.{$phpEx}", 'mode=searchuser&amp;form=acp_ban&amp;field=ban')));
 }
开发者ID:ahmatjan,项目名称:Crimson,代码行数:58,代码来源:acp_ban.php

示例14: post_funct

 public function post_funct($event)
 {
     if ($this->config['autoban_active'] && $event['user_row']['user_warnings'] + 1 >= $this->config['autoban_count']) {
         if (!function_exists('user_ban')) {
             include $this->root_path . 'includes/functions_user.' . $this->php_ext;
         }
         user_ban('user', utf8_normalize_nfc($event['user_row']['username']), $this->config['autoban_duration'] * 60 * 24, '', '', $this->config['autoban_reason'], $this->config['autoban_reason']);
     }
 }
开发者ID:cracknel,项目名称:ubuntudanmark.dk,代码行数:9,代码来源:mainlistener.php

示例15: username

 /**
  * Check username
  *
  * @return object
  */
 public function username()
 {
     $data = array('username' => utf8_normalize_nfc($this->request->variable('username', '', true)));
     $error = validate_data($data, array('username' => array(array('string', false, $this->config['min_name_chars'], $this->config['max_name_chars']), array('username', ''))));
     $error = $this->set_error($error);
     if (sizeof($error)) {
         return new Response(implode('<br>', $error));
     }
     return new Response($this->user->lang('USERNAME_FREE'));
 }
开发者ID:3D-I,项目名称:regcheck,代码行数:15,代码来源:main.php


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