本文整理汇总了PHP中utf8_normalize_nfc函数的典型用法代码示例。如果您正苦于以下问题:PHP utf8_normalize_nfc函数的具体用法?PHP utf8_normalize_nfc怎么用?PHP utf8_normalize_nfc使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了utf8_normalize_nfc函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
|
请发表评论