/admin/settings.php
PHP | 1480 lines | 1264 code | 162 blank | 54 comment | 355 complexity | ccd58c0ee35570ee51455f7215f7df25 MD5 | raw file
Possible License(s): GPL-2.0
Large files files are truncated, but you can click here to view the full file
- <?php
- /**
- * Forum settings management page.
- *
- * Allows administrators to control many of the settings used in the site.
- *
- * @copyright (C) 2008-2012 PunBB, partially based on code (C) 2008-2009 FluxBB.org
- * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
- * @package PunBB
- */
- if (!defined('FORUM_ROOT'))
- define('FORUM_ROOT', '../');
- require FORUM_ROOT.'include/common.php';
- require FORUM_ROOT.'include/common_admin.php';
- ($hook = get_hook('aop_start')) ? eval($hook) : null;
- if ($forum_user['g_id'] != FORUM_ADMIN)
- message($lang_common['No permission']);
- // Load the admin.php language file
- require FORUM_ROOT.'lang/'.$forum_user['language'].'/admin_common.php';
- require FORUM_ROOT.'lang/'.$forum_user['language'].'/admin_settings.php';
- $section = isset($_GET['section']) ? $_GET['section'] : null;
- if (isset($_POST['form_sent']))
- {
- $form = array_map('trim', $_POST['form']);
- ($hook = get_hook('aop_form_submitted')) ? eval($hook) : null;
- // Validate input depending on section
- switch ($section)
- {
- case 'setup':
- {
- ($hook = get_hook('aop_setup_validation')) ? eval($hook) : null;
- if ($form['board_title'] == '')
- message($lang_admin_settings['Error no board title']);
- // Clean default_lang, default_style, and sef
- $form['default_style'] = preg_replace('#[\.\\\/]#', '', $form['default_style']);
- $form['default_lang'] = preg_replace('#[\.\\\/]#', '', $form['default_lang']);
- $form['sef'] = preg_replace('#[\.\\\/]#', '', $form['sef']);
- // Make sure default_lang, default_style, and sef exist
- if (!file_exists(FORUM_ROOT.'style/'.$form['default_style'].'/'.$form['default_style'].'.php'))
- message($lang_common['Bad request']);
- if (!file_exists(FORUM_ROOT.'lang/'.$form['default_lang'].'/common.php'))
- message($lang_common['Bad request']);
- if (!file_exists(FORUM_ROOT.'include/url/'.$form['sef'].'/forum_urls.php'))
- message($lang_common['Bad request']);
- if (!isset($form['default_dst']) || $form['default_dst'] != '1')
- $form['default_dst'] = '0';
- $form['timeout_visit'] = intval($form['timeout_visit']);
- $form['timeout_online'] = intval($form['timeout_online']);
- $form['redirect_delay'] = intval($form['redirect_delay']);
- if ($form['timeout_online'] >= $form['timeout_visit'])
- message($lang_admin_settings['Error timeout value']);
- $form['disp_topics_default'] = (intval($form['disp_topics_default']) > 0) ? intval($form['disp_topics_default']) : 1;
- $form['disp_posts_default'] = (intval($form['disp_posts_default']) > 0) ? intval($form['disp_posts_default']) : 1;
- if ($form['additional_navlinks'] != '')
- $form['additional_navlinks'] = forum_trim(forum_linebreaks($form['additional_navlinks']));
- break;
- }
- case 'features':
- {
- ($hook = get_hook('aop_features_validation')) ? eval($hook) : null;
- if (!isset($form['search_all_forums']) || $form['search_all_forums'] != '1') $form['search_all_forums'] = '0';
- if (!isset($form['ranks']) || $form['ranks'] != '1') $form['ranks'] = '0';
- if (!isset($form['censoring']) || $form['censoring'] != '1') $form['censoring'] = '0';
- if (!isset($form['quickjump']) || $form['quickjump'] != '1') $form['quickjump'] = '0';
- if (!isset($form['show_version']) || $form['show_version'] != '1') $form['show_version'] = '0';
- if (!isset($form['show_moderators']) || $form['show_moderators'] != '1') $form['show_moderators'] = '0';
- if (!isset($form['users_online']) || $form['users_online'] != '1') $form['users_online'] = '0';
- if (!isset($form['quickpost']) || $form['quickpost'] != '1') $form['quickpost'] = '0';
- if (!isset($form['subscriptions']) || $form['subscriptions'] != '1') $form['subscriptions'] = '0';
- if (!isset($form['force_guest_email']) || $form['force_guest_email'] != '1') $form['force_guest_email'] = '0';
- if (!isset($form['show_dot']) || $form['show_dot'] != '1') $form['show_dot'] = '0';
- if (!isset($form['topic_views']) || $form['topic_views'] != '1') $form['topic_views'] = '0';
- if (!isset($form['show_post_count']) || $form['show_post_count'] != '1') $form['show_post_count'] = '0';
- if (!isset($form['show_user_info']) || $form['show_user_info'] != '1') $form['show_user_info'] = '0';
- if (!isset($form['message_bbcode']) || $form['message_bbcode'] != '1') $form['message_bbcode'] = '0';
- if (!isset($form['message_img_tag']) || $form['message_img_tag'] != '1') $form['message_img_tag'] = '0';
- if (!isset($form['smilies']) || $form['smilies'] != '1') $form['smilies'] = '0';
- if (!isset($form['make_links']) || $form['make_links'] != '1') $form['make_links'] = '0';
- if (!isset($form['message_all_caps']) || $form['message_all_caps'] != '1') $form['message_all_caps'] = '0';
- if (!isset($form['subject_all_caps']) || $form['subject_all_caps'] != '1') $form['subject_all_caps'] = '0';
- $form['indent_num_spaces'] = intval($form['indent_num_spaces']);
- $form['quote_depth'] = intval($form['quote_depth']);
- if (!isset($form['signatures']) || $form['signatures'] != '1') $form['signatures'] = '0';
- if (!isset($form['sig_bbcode']) || $form['sig_bbcode'] != '1') $form['sig_bbcode'] = '0';
- if (!isset($form['sig_img_tag']) || $form['sig_img_tag'] != '1') $form['sig_img_tag'] = '0';
- if (!isset($form['smilies_sig']) || $form['smilies_sig'] != '1') $form['smilies_sig'] = '0';
- if (!isset($form['sig_all_caps']) || $form['sig_all_caps'] != '1') $form['sig_all_caps'] = '0';
- $form['sig_length'] = intval($form['sig_length']);
- $form['sig_lines'] = intval($form['sig_lines']);
- if (!isset($form['avatars']) || $form['avatars'] != '1') $form['avatars'] = '0';
- // Make sure avatars_dir doesn't end with a slash
- if (substr($form['avatars_dir'], -1) == '/')
- $form['avatars_dir'] = substr($form['avatars_dir'], 0, -1);
- $form['avatars_width'] = intval($form['avatars_width']);
- $form['avatars_height'] = intval($form['avatars_height']);
- $form['avatars_size'] = intval($form['avatars_size']);
- if (!isset($form['check_for_updates']) || $form['check_for_updates'] != '1') $form['check_for_updates'] = '0';
- if (!isset($form['check_for_versions']) || $form['check_for_versions'] != '1') $form['check_for_versions'] = '0';
- if (!isset($form['mask_passwords']) || $form['mask_passwords'] != '1') $form['mask_passwords'] = '0';
- if (!isset($form['gzip']) || $form['gzip'] != '1') $form['gzip'] = '0';
- break;
- }
- case 'email':
- {
- ($hook = get_hook('aop_email_validation')) ? eval($hook) : null;
- if (!defined('FORUM_EMAIL_FUNCTIONS_LOADED'))
- require FORUM_ROOT.'include/email.php';
- $form['admin_email'] = strtolower($form['admin_email']);
- if (!is_valid_email($form['admin_email']))
- message($lang_admin_settings['Error invalid admin e-mail']);
- $form['webmaster_email'] = strtolower($form['webmaster_email']);
- if (!is_valid_email($form['webmaster_email']))
- message($lang_admin_settings['Error invalid web e-mail']);
- if (!isset($form['smtp_ssl']) || $form['smtp_ssl'] != '1') $form['smtp_ssl'] = '0';
- break;
- }
- case 'announcements':
- {
- ($hook = get_hook('aop_announcements_validation')) ? eval($hook) : null;
- if (!isset($form['announcement']) || $form['announcement'] != '1') $form['announcement'] = '0';
- if ($form['announcement_message'] != '')
- $form['announcement_message'] = forum_linebreaks($form['announcement_message']);
- else
- $form['announcement_message'] = $lang_admin_settings['Announcement message default'];
- break;
- }
- case 'registration':
- {
- ($hook = get_hook('aop_registration_validation')) ? eval($hook) : null;
- if (!isset($form['regs_allow']) || $form['regs_allow'] != '1') $form['regs_allow'] = '0';
- if (!isset($form['regs_verify']) || $form['regs_verify'] != '1') $form['regs_verify'] = '0';
- if (!isset($form['allow_banned_email']) || $form['allow_banned_email'] != '1') $form['allow_banned_email'] = '0';
- if (!isset($form['allow_dupe_email']) || $form['allow_dupe_email'] != '1') $form['allow_dupe_email'] = '0';
- if (!isset($form['regs_report']) || $form['regs_report'] != '1') $form['regs_report'] = '0';
- if (!isset($form['rules']) || $form['rules'] != '1') $form['rules'] = '0';
- if ($form['rules_message'] != '')
- $form['rules_message'] = forum_linebreaks($form['rules_message']);
- else
- $form['rules_message'] = $lang_admin_settings['Rules default'];
- break;
- }
- case 'maintenance':
- {
- ($hook = get_hook('aop_maintenance_validation')) ? eval($hook) : null;
- if (!isset($form['maintenance']) || $form['maintenance'] != '1') $form['maintenance'] = '0';
- if ($form['maintenance_message'] != '')
- $form['maintenance_message'] = forum_linebreaks($form['maintenance_message']);
- else
- $form['maintenance_message'] = $lang_admin_settings['Maintenance message default'];
- break;
- }
- default:
- {
- ($hook = get_hook('aop_new_section_validation')) ? eval($hook) : null;
- break;
- }
- }
- ($hook = get_hook('aop_pre_update_configuration')) ? eval($hook) : null;
- foreach ($form as $key => $input)
- {
- // Only update permission values that have changed
- if (array_key_exists('p_'.$key, $forum_config) && $forum_config['p_'.$key] != $input)
- {
- $query = array(
- 'UPDATE' => 'config',
- 'SET' => 'conf_value='.intval($input),
- 'WHERE' => 'conf_name=\'p_'.$forum_db->escape($key).'\''
- );
- ($hook = get_hook('aop_qr_update_permission_conf')) ? eval($hook) : null;
- $forum_db->query_build($query) or error(__FILE__, __LINE__);
- }
- // Only update option values that have changed
- if (array_key_exists('o_'.$key, $forum_config) && $forum_config['o_'.$key] != $input)
- {
- if ($input != '' || is_int($input))
- $value = '\''.$forum_db->escape($input).'\'';
- else
- $value = 'NULL';
- $query = array(
- 'UPDATE' => 'config',
- 'SET' => 'conf_value='.$value,
- 'WHERE' => 'conf_name=\'o_'.$forum_db->escape($key).'\''
- );
- ($hook = get_hook('aop_qr_update_permission_option')) ? eval($hook) : null;
- $forum_db->query_build($query) or error(__FILE__, __LINE__);
- }
- }
- // Regenerate the config cache
- if (!defined('FORUM_CACHE_FUNCTIONS_LOADED'))
- require FORUM_ROOT.'include/cache.php';
- generate_config_cache();
- // If changed sef - remove quick-jump cache
- if (!empty($forum_config['o_sef']) && !empty($form['sef']))
- {
- if ($forum_config['o_sef'] != $form['sef'])
- {
- clean_quickjump_cache();
- }
- }
- // Add flash message
- $forum_flash->add_info($lang_admin_settings['Settings updated']);
- ($hook = get_hook('aop_pre_redirect')) ? eval($hook) : null;
- redirect(forum_link($forum_url['admin_settings_'.$section]), $lang_admin_settings['Settings updated']);
- }
- if (!$section || $section == 'setup')
- {
- // Setup the form
- $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0;
- // Setup breadcrumbs
- $forum_page['crumbs'] = array(
- array($forum_config['o_board_title'], forum_link($forum_url['index'])),
- array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])),
- array($lang_admin_common['Settings'], forum_link($forum_url['admin_settings_setup'])),
- array($lang_admin_common['Setup'], forum_link($forum_url['admin_settings_setup']))
- );
- ($hook = get_hook('aop_setup_pre_header_load')) ? eval($hook) : null;
- define('FORUM_PAGE_SECTION', 'settings');
- define('FORUM_PAGE', 'admin-settings-setup');
- require FORUM_ROOT.'header.php';
- // START SUBST - <!-- forum_main -->
- ob_start();
- ($hook = get_hook('aop_setup_output_start')) ? eval($hook) : null;
- ?>
- <div class="main-content main-frm">
- <form class="frm-form" method="post" accept-charset="utf-8" action="<?php echo forum_link($forum_url['admin_settings_setup']) ?>">
- <div class="hidden">
- <input type="hidden" name="csrf_token" value="<?php echo generate_form_token(forum_link($forum_url['admin_settings_setup'])) ?>" />
- <input type="hidden" name="form_sent" value="1" />
- </div>
- <div class="content-head">
- <h2 class="hn"><span><?php echo $lang_admin_settings['Setup personal'] ?></span></h2>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_personal_fieldset')) ? eval($hook) : null; ?>
- <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
- <legend class="group-legend"><strong><?php echo $lang_admin_settings['Setup personal legend'] ?></strong></legend>
- <?php ($hook = get_hook('aop_setup_pre_board_title')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box text">
- <label for="fld<?php echo ++$forum_page['fld_count'] ?>">
- <span><?php echo $lang_admin_settings['Board title label'] ?></span>
- </label><br />
- <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[board_title]" size="50" maxlength="255" value="<?php echo forum_htmlencode($forum_config['o_board_title']) ?>" /></span>
- </div>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_board_descrip')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box text">
- <label for="fld<?php echo ++$forum_page['fld_count'] ?>">
- <span><?php echo $lang_admin_settings['Board description label'] ?></span>
- </label><br />
- <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[board_desc]" size="50" maxlength="255" value="<?php echo forum_htmlencode($forum_config['o_board_desc']) ?>" /></span>
- </div>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_default_style')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box select">
- <label for="fld<?php echo ++$forum_page['fld_count'] ?>">
- <span><?php echo $lang_admin_settings['Default style label'] ?></span>
- </label><br />
- <span class="fld-input"><select id="fld<?php echo $forum_page['fld_count'] ?>" name="form[default_style]">
- <?php
- $styles = get_style_packs();
- foreach ($styles as $style)
- {
- if ($forum_config['o_default_style'] == $style)
- echo "\t\t\t\t\t\t\t\t".'<option value="'.$style.'" selected="selected">'.str_replace('_', ' ', $style).'</option>'."\n";
- else
- echo "\t\t\t\t\t\t\t\t".'<option value="'.$style.'">'.str_replace('_', ' ', $style).'</option>'."\n";
- }
- ?>
- </select></span>
- </div>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_personal_fieldset_end')) ? eval($hook) : null; ?>
- </fieldset>
- <?php
- ($hook = get_hook('aop_setup_personal_fieldset_end')) ? eval($hook) : null;
- // Reset counter
- $forum_page['group_count'] = $forum_page['item_count'] = 0;
- ?>
- <div class="content-head">
- <h2 class="hn"><span><?php echo $lang_admin_settings['Setup local'] ?></span></h2>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_local_fieldset')) ? eval($hook) : null; ?>
- <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
- <legend class="group-legend"><strong><?php echo $lang_admin_settings['Setup local legend'] ?></strong></legend>
- <?php ($hook = get_hook('aop_setup_pre_default_language')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box select">
- <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Default language label'] ?></span><small><?php echo $lang_admin_settings['Default language help'] ?></small></label><br />
- <span class="fld-input"><select id="fld<?php echo $forum_page['fld_count'] ?>" name="form[default_lang]">
- <?php
- $languages = get_language_packs();
- foreach ($languages as $lang)
- {
- if ($forum_config['o_default_lang'] == $lang)
- echo "\t\t\t\t\t\t\t\t".'<option value="'.$lang.'" selected="selected">'.$lang.'</option>'."\n";
- else
- echo "\t\t\t\t\t\t\t\t".'<option value="'.$lang.'">'.$lang.'</option>'."\n";
- }
- // Load the profile.php language file
- require FORUM_ROOT.'lang/'.$forum_user['language'].'/profile.php';
- ?>
- </select></span>
- </div>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_default_timezone')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box select">
- <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Default timezone label'] ?></span></label><br />
- <span class="fld-input"><select id="fld<?php echo $forum_page['fld_count'] ?>" name="form[default_timezone]">
- <option value="-12"<?php if ($forum_config['o_default_timezone'] == -12) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC-12:00'] ?></option>
- <option value="-11"<?php if ($forum_config['o_default_timezone'] == -11) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC-11:00'] ?></option>
- <option value="-10"<?php if ($forum_config['o_default_timezone'] == -10) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC-10:00'] ?></option>
- <option value="-9.5"<?php if ($forum_config['o_default_timezone'] == -9.5) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC-09:30'] ?></option>
- <option value="-9"<?php if ($forum_config['o_default_timezone'] == -9) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC-09:00'] ?></option>
- <option value="-8"<?php if ($forum_config['o_default_timezone'] == -8) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC-08:00'] ?></option>
- <option value="-7"<?php if ($forum_config['o_default_timezone'] == -7) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC-07:00'] ?></option>
- <option value="-6"<?php if ($forum_config['o_default_timezone'] == -6) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC-06:00'] ?></option>
- <option value="-5"<?php if ($forum_config['o_default_timezone'] == -5) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC-05:00'] ?></option>
- <option value="-4"<?php if ($forum_config['o_default_timezone'] == -4) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC-04:00'] ?></option>
- <option value="-3.5"<?php if ($forum_config['o_default_timezone'] == -3.5) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC-03:30'] ?></option>
- <option value="-3"<?php if ($forum_config['o_default_timezone'] == -3) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC-03:00'] ?></option>
- <option value="-2"<?php if ($forum_config['o_default_timezone'] == -2) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC-02:00'] ?></option>
- <option value="-1"<?php if ($forum_config['o_default_timezone'] == -1) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC-01:00'] ?></option>
- <option value="0"<?php if ($forum_config['o_default_timezone'] == 0) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC'] ?></option>
- <option value="1"<?php if ($forum_config['o_default_timezone'] == 1) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+01:00'] ?></option>
- <option value="2"<?php if ($forum_config['o_default_timezone'] == 2) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+02:00'] ?></option>
- <option value="3"<?php if ($forum_config['o_default_timezone'] == 3) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+03:00'] ?></option>
- <option value="3.5"<?php if ($forum_config['o_default_timezone'] == 3.5) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+03:30'] ?></option>
- <option value="4"<?php if ($forum_config['o_default_timezone'] == 4) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+04:00'] ?></option>
- <option value="4.5"<?php if ($forum_config['o_default_timezone'] == 4.5) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+04:30'] ?></option>
- <option value="5"<?php if ($forum_config['o_default_timezone'] == 5) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+05:00'] ?></option>
- <option value="5.5"<?php if ($forum_config['o_default_timezone'] == 5.5) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+05:30'] ?></option>
- <option value="5.75"<?php if ($forum_config['o_default_timezone'] == 5.75) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+05:45'] ?></option>
- <option value="6"<?php if ($forum_config['o_default_timezone'] == 6) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+06:00'] ?></option>
- <option value="6.5"<?php if ($forum_config['o_default_timezone'] == 6.5) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+06:30'] ?></option>
- <option value="7"<?php if ($forum_config['o_default_timezone'] == 7) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+07:00'] ?></option>
- <option value="8"<?php if ($forum_config['o_default_timezone'] == 8) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+08:00'] ?></option>
- <option value="8.75"<?php if ($forum_config['o_default_timezone'] == 8.75) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+08:45'] ?></option>
- <option value="9"<?php if ($forum_config['o_default_timezone'] == 9) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+09:00'] ?></option>
- <option value="9.5"<?php if ($forum_config['o_default_timezone'] == 9.5) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+09:30'] ?></option>
- <option value="10"<?php if ($forum_config['o_default_timezone'] == 10) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+10:00'] ?></option>
- <option value="10.5"<?php if ($forum_config['o_default_timezone'] == 10.5) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+10:30'] ?></option>
- <option value="11"<?php if ($forum_config['o_default_timezone'] == 11) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+11:00'] ?></option>
- <option value="11.5"<?php if ($forum_config['o_default_timezone'] == 11.5) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+11:30'] ?></option>
- <option value="12"<?php if ($forum_config['o_default_timezone'] == 12) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+12:00'] ?></option>
- <option value="12.75"<?php if ($forum_config['o_default_timezone'] == 12.75) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+12:45'] ?></option>
- <option value="13"<?php if ($forum_config['o_default_timezone'] == 13) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+13:00'] ?></option>
- <option value="14"<?php if ($forum_config['o_default_timezone'] == 14) echo ' selected="selected"' ?>><?php echo $lang_profile['UTC+14:00'] ?></option>
- </select></span>
- </div>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_default_dst')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box checkbox">
- <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[default_dst]" value="1"<?php if ($forum_config['o_default_dst'] == 1) echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><?php echo $lang_admin_settings['DST label'] ?></label>
- </div>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_time_format')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box text">
- <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Time format label'] ?></span><small><?php printf($lang_admin_settings['Current format'], format_time(time(), 2, null, $forum_config['o_time_format']), $lang_admin_settings['External format help']) ?></small></label><br />
- <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[time_format]" size="25" maxlength="25" value="<?php echo forum_htmlencode($forum_config['o_time_format']) ?>" /></span>
- </div>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_date_format')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box text">
- <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Date format label'] ?></span><small><?php printf($lang_admin_settings['Current format'], format_time(time(), 1, $forum_config['o_date_format'], null, true), $lang_admin_settings['External format help']) ?></small></label><br />
- <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[date_format]" size="25" maxlength="25" value="<?php echo forum_htmlencode($forum_config['o_date_format']) ?>" /></span>
- </div>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_local_fieldset_end')) ? eval($hook) : null; ?>
- </fieldset>
- <?php
- ($hook = get_hook('aop_setup_local_fieldset_end')) ? eval($hook) : null;
- // Reset counter
- $forum_page['group_count'] = $forum_page['item_count'] = 0;
- ?>
- <div class="content-head">
- <h2 class="hn"><span><?php echo $lang_admin_settings['Setup timeouts'] ?></span></h2>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_timeouts_fieldset')) ? eval($hook) : null; ?>
- <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
- <legend class="group-legend"><strong><?php echo $lang_admin_settings['Setup timeouts legend'] ?></strong></legend>
- <?php ($hook = get_hook('aop_setup_pre_visit_timeout')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box text">
- <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Visit timeout label'] ?></span><small><?php echo $lang_admin_settings['Visit timeout help'] ?></small></label><br />
- <span class="fld-input"><input type="number" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[timeout_visit]" size="5" maxlength="5" value="<?php echo $forum_config['o_timeout_visit'] ?>" /></span>
- </div>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_online_timeout')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box text">
- <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Online timeout label'] ?></span><small><?php echo $lang_admin_settings['Online timeout help'] ?></small></label><br />
- <span class="fld-input"><input type="number" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[timeout_online]" size="5" maxlength="5" value="<?php echo $forum_config['o_timeout_online'] ?>" /></span>
- </div>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_redirect_time')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box text">
- <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Redirect time label'] ?></span><small><?php echo $lang_admin_settings['Redirect time help'] ?></small></label><br />
- <span class="fld-input"><input type="number" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[redirect_delay]" size="5" maxlength="5" value="<?php echo $forum_config['o_redirect_delay'] ?>" /></span>
- </div>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_timeouts_fieldset_end')) ? eval($hook) : null; ?>
- </fieldset>
- <?php
- ($hook = get_hook('aop_setup_timeouts_fieldset_end')) ? eval($hook) : null;
- // Reset counter
- $forum_page['group_count'] = $forum_page['item_count'] = 0;
- ?>
- <div class="content-head">
- <h2 class="hn"><span><?php echo $lang_admin_settings['Setup pagination'] ?></span></h2>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_pagination_fieldset')) ? eval($hook) : null; ?>
- <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
- <legend class="group-legend"><strong><?php echo $lang_admin_settings['Setup pagination legend'] ?></strong></legend>
- <?php ($hook = get_hook('aop_setup_pre_topics_per_page')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box text">
- <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Topics per page label'] ?></span></label><br />
- <span class="fld-input"><input type="number" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[disp_topics_default]" size="5" maxlength="3" value="<?php echo $forum_config['o_disp_topics_default'] ?>" /></span>
- </div>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_posts_per_page')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box text">
- <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Posts per page label'] ?></span></label><br />
- <span class="fld-input"><input type="number" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[disp_posts_default]" size="5" maxlength="3" value="<?php echo $forum_config['o_disp_posts_default'] ?>" /></span>
- </div>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_topic_review')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box frm-short text">
- <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Topic review label'] ?></span><small><?php echo $lang_admin_settings['Topic review help'] ?></small></label><br />
- <span class="fld-input"><input type="number" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[topic_review]" size="5" maxlength="3" value="<?php echo $forum_config['o_topic_review'] ?>" /></span>
- </div>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_pagination_fieldset_end')) ? eval($hook) : null; ?>
- </fieldset>
- <?php
- ($hook = get_hook('aop_setup_pagination_fieldset_end')) ? eval($hook) : null;
- // Reset counter
- $forum_page['group_count'] = $forum_page['item_count'] = 0;
- ?>
- <div class="content-head">
- <h2 class="hn"><span><?php echo $lang_admin_settings['Setup reports'] ?></span></h2>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_reports_fieldset')) ? eval($hook) : null; ?>
- <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
- <legend class="group-legend"><strong><?php echo $lang_admin_settings['Setup reports legend'] ?></strong></legend>
- <fieldset class="mf-set set<?php echo ++$forum_page['item_count'] ?>">
- <legend><span><?php echo $lang_admin_settings['Reporting method'] ?></span></legend>
- <div class="mf-box">
- <div class="mf-item">
- <span class="fld-input"><input type="radio" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[report_method]" value="0"<?php if ($forum_config['o_report_method'] == '0') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><?php echo $lang_admin_settings['Report internal label'] ?></label>
- </div>
- <div class="mf-item">
- <span class="fld-input"><input type="radio" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[report_method]" value="1"<?php if ($forum_config['o_report_method'] == '1') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><?php echo $lang_admin_settings['Report email label'] ?></label>
- </div>
- <div class="mf-item">
- <span class="fld-input"><input type="radio" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[report_method]" value="2"<?php if ($forum_config['o_report_method'] == '2') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><?php echo $lang_admin_settings['Report both label'] ?></label>
- </div>
- <?php ($hook = get_hook('aop_setup_new_reporting_method')) ? eval($hook) : null; ?>
- </div>
- </fieldset>
- <?php ($hook = get_hook('aop_setup_pre_reports_fieldset_end')) ? eval($hook) : null; ?>
- </fieldset>
- <?php
- ($hook = get_hook('aop_setup_reports_fieldset_end')) ? eval($hook) : null;
- // Reset counter
- $forum_page['group_count'] = $forum_page['item_count'] = 0;
- ?>
- <div class="content-head">
- <h2 class="hn"><span><?php echo $lang_admin_settings['Setup URL'] ?></span></h2>
- </div>
- <div class="ct-box">
- <p class="warn"><?php echo $lang_admin_settings['URL scheme info'] ?></p>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_url_scheme_fieldset')) ? eval($hook) : null; ?>
- <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
- <legend class="group-legend"><strong><?php echo $lang_admin_settings['Setup URL legend'] ?></strong></legend>
- <?php ($hook = get_hook('aop_setup_pre_url_scheme')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box select">
- <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['URL scheme label'] ?></span><small><?php echo $lang_admin_settings['URL scheme help'] ?></small></label><br />
- <span class="fld-input"><select id="fld<?php echo $forum_page['fld_count'] ?>" name="form[sef]">
- <?php
- $url_schemes = get_scheme_packs();
- foreach ($url_schemes as $schema)
- {
- if ($forum_config['o_sef'] == $schema)
- echo "\t\t\t\t\t\t\t\t".'<option value="'.$schema.'" selected="selected">'.str_replace('_', ' ', $schema).'</option>'."\n";
- else
- echo "\t\t\t\t\t\t\t\t".'<option value="'.$schema.'">'.str_replace('_', ' ', $schema).'</option>'."\n";
- }
- ?>
- </select></span>
- </div>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_url_scheme_fieldset_end')) ? eval($hook) : null; ?>
- </fieldset>
- <?php
- ($hook = get_hook('aop_setup_url_scheme_fieldset_end')) ? eval($hook) : null;
- // Reset counter
- $forum_page['group_count'] = $forum_page['item_count'] = 0;
- ?>
- <div class="content-head">
- <h2 class="hn"><span><?php echo $lang_admin_settings['Setup links'] ?></span></h2>
- </div>
- <div class="ct-box">
- <p class="warn"><?php echo $lang_admin_settings['Setup links info'] ?></p>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_links_fieldset')) ? eval($hook) : null; ?>
- <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
- <legend class="group-legend"><strong><?php echo $lang_admin_settings['Setup links legend'] ?></strong></legend>
- <?php ($hook = get_hook('aop_setup_pre_additional_navlinks')) ? eval($hook) : null; ?>
- <div class="txt-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="txt-box textarea">
- <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Enter links label'] ?></span></label>
- <div class="txt-input"><span class="fld-input"><textarea id="fld<?php echo $forum_page['fld_count'] ?>" name="form[additional_navlinks]" rows="3" cols="55"><?php echo forum_htmlencode($forum_config['o_additional_navlinks']) ?></textarea></span></div>
- </div>
- </div>
- <?php ($hook = get_hook('aop_setup_pre_links_fieldset_end')) ? eval($hook) : null; ?>
- </fieldset>
- <?php ($hook = get_hook('aop_setup_links_fieldset_end')) ? eval($hook) : null; ?>
- <div class="frm-buttons">
- <span class="submit primary"><input type="submit" name="save" value="<?php echo $lang_admin_common['Save changes'] ?>" /></span>
- </div>
- </form>
- </div>
- <?php
- }
- else if ($section == 'features')
- {
- // Setup the form
- $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0;
- // Setup breadcrumbs
- $forum_page['crumbs'] = array(
- array($forum_config['o_board_title'], forum_link($forum_url['index'])),
- array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])),
- array($lang_admin_common['Settings'], forum_link($forum_url['admin_settings_setup'])),
- array($lang_admin_common['Features'], forum_link($forum_url['admin_settings_features']))
- );
- ($hook = get_hook('aop_features_pre_header_load')) ? eval($hook) : null;
- define('FORUM_PAGE_SECTION', 'settings');
- define('FORUM_PAGE', 'admin-settings-features');
- require FORUM_ROOT.'header.php';
- // START SUBST - <!-- forum_main -->
- ob_start();
- ($hook = get_hook('aop_features_output_start')) ? eval($hook) : null;
- ?>
- <div class="main-content main-frm">
- <form class="frm-form" method="post" accept-charset="utf-8" action="<?php echo forum_link($forum_url['admin_settings_features']) ?>">
- <div class="hidden">
- <input type="hidden" name="csrf_token" value="<?php echo generate_form_token(forum_link($forum_url['admin_settings_features'])) ?>" />
- <input type="hidden" name="form_sent" value="1" />
- </div>
- <div class="content-head">
- <h2 class="hn"><span><?php echo $lang_admin_settings['Features general'] ?></span></h2>
- </div>
- <?php ($hook = get_hook('aop_features_pre_general_fieldset')) ? eval($hook) : null; ?>
- <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
- <legend class="group-legend"><strong><?php echo $lang_admin_settings['Features general legend'] ?></strong></legend>
- <?php ($hook = get_hook('aop_features_pre_search_all_checkbox')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box checkbox">
- <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[search_all_forums]" value="1"<?php if ($forum_config['o_search_all_forums'] == '1') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Searching'] ?></span> <?php echo $lang_admin_settings['Search all label'] ?></label>
- </div>
- </div>
- <?php ($hook = get_hook('aop_features_pre_ranks_checkbox')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box checkbox">
- <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[ranks]" value="1"<?php if ($forum_config['o_ranks'] == '1') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['User ranks'] ?></span> <?php echo $lang_admin_settings['User ranks label'] ?></label>
- </div>
- </div>
- <?php ($hook = get_hook('aop_features_pre_censoring_checkbox')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box checkbox">
- <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[censoring]" value="1"<?php if ($forum_config['o_censoring'] == '1') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Censor words'] ?></span> <?php echo $lang_admin_settings['Censor words label'] ?></label>
- </div>
- </div>
- <?php ($hook = get_hook('aop_features_pre_quickjump_checkbox')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box checkbox">
- <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[quickjump]" value="1"<?php if ($forum_config['o_quickjump'] == '1') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Quick jump'] ?></span> <?php echo $lang_admin_settings['Quick jump label'] ?></label>
- </div>
- </div>
- <?php ($hook = get_hook('aop_features_pre_show_version_checkbox')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box checkbox">
- <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[show_version]" value="1"<?php if ($forum_config['o_show_version'] == '1') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Show version'] ?></span> <?php echo $lang_admin_settings['Show version label'] ?></label>
- </div>
- </div>
- <?php ($hook = get_hook('aop_features_pre_show_moderators_checkbox')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box checkbox">
- <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[show_moderators]" value="1"<?php if ($forum_config['o_show_moderators'] == '1') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Show moderators'] ?></span> <?php echo $lang_admin_settings['Show moderators label'] ?></label>
- </div>
- </div>
- <?php ($hook = get_hook('aop_features_pre_users_online_checkbox')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box checkbox">
- <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[users_online]" value="1"<?php if ($forum_config['o_users_online'] == '1') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Online list'] ?></span> <?php echo $lang_admin_settings['Users online label'] ?></label>
- </div>
- </div>
- <?php ($hook = get_hook('aop_features_pre_general_fieldset_end')) ? eval($hook) : null; ?>
- </fieldset>
- <?php
- ($hook = get_hook('aop_features_general_fieldset_end')) ? eval($hook) : null;
- // Reset counter
- $forum_page['group_count'] = $forum_page['item_count'] = 0;
- ?>
- <div class="content-head">
- <h2 class="hn"><span><?php echo $lang_admin_settings['Features posting'] ?></span></h2>
- </div>
- <?php ($hook = get_hook('aop_features_pre_posting_fieldset')) ? eval($hook) : null; ?>
- <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
- <legend class="group-legend"><span><?php echo $lang_admin_settings['Features posting legend'] ?></span></legend>
- <?php ($hook = get_hook('aop_features_pre_quickpost_checkbox')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box checkbox">
- <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[quickpost]" value="1"<?php if ($forum_config['o_quickpost'] == '1') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Quick post'] ?></span> <?php echo $lang_admin_settings['Quick post label'] ?></label>
- </div>
- </div>
- <?php ($hook = get_hook('aop_features_pre_subscriptions_checkbox')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box checkbox">
- <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[subscriptions]" value="1"<?php if ($forum_config['o_subscriptions'] == '1') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Subscriptions'] ?></span> <?php echo $lang_admin_settings['Subscriptions label'] ?></label>
- </div>
- </div>
- <?php ($hook = get_hook('aop_features_pre_force_guest_email_checkbox')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box checkbox">
- <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[force_guest_email]" value="1"<?php if ($forum_config['p_force_guest_email'] == '1') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Guest posting'] ?></span> <?php echo $lang_admin_settings['Guest posting label'] ?></label>
- </div>
- </div>
- <?php ($hook = get_hook('aop_features_pre_show_dot_checkbox')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box checkbox">
- <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[show_dot]" value="1"<?php if ($forum_config['o_show_dot'] == '1') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['User has posted'] ?></span> <?php echo $lang_admin_settings['User has posted label'] ?></label>
- </div>
- </div>
- <?php ($hook = get_hook('aop_features_pre_topic_views_checkbox')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box checkbox">
- <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[topic_views]" value="1"<?php if ($forum_config['o_topic_views'] == '1') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['Topic views'] ?></span> <?php echo $lang_admin_settings['Topic views label'] ?></label>
- </div>
- </div>
- <?php ($hook = get_hook('aop_features_pre_show_post_count_checkbox')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box checkbox">
- <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[show_post_count]" value="1"<?php if ($forum_config['o_show_post_count'] == '1') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['User post count'] ?></span> <?php echo $lang_admin_settings['User post count label'] ?></label>
- </div>
- </div>
- <?php ($hook = get_hook('aop_features_pre_show_user_info_checkbox')) ? eval($hook) : null; ?>
- <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
- <div class="sf-box checkbox">
- <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[show_user_info]" value="1"<?php if ($forum_config['o_show_user_info'] == '1') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_admin_settings['User info'] ?></span> <?php echo $lang_admin_settings['User info label'] ?></label>
- </div>
- </div>
- <?php ($hook = get_hook('aop_features_pre_posting_fieldset_end')) ? eval($hook) : null; ?>
- </fieldset>
- <?php
- ($hook = get_hook('aop_features_posting_fieldset_end')) ? eval($hook) : null;
- // Reset counter
- $forum_page['group_count'] = $forum_page['item_count'] = 0;
- ?>
- <div class="content-head">
- <h2 class="hn"><span><?php echo $lang_admin_settings['Features posts'] ?></span></h2>
- </div>
- <?php ($hook = get_hook('aop_features_pre_message_fieldset')) ? eval($hook) : null; ?>
- <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
- <legend class="group-legend"><span><?php echo $lang_admin_settings['Features posts legend'] ?></span></legend>
- <?php ($hook = get_hook('aop_features_pre_message_content_fieldset')) ? eval($hook) : null; ?>
- <fieldset class="mf-set set<?php echo ++$forum_page['item_count'] ?>">
- <legend><span><?php echo $lang_admin_settings['Post content group'] ?></span></legend>
- <div class="mf-box">
- <div class="mf-item">
- <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[message_bbcode]" value="1"<?php if ($forum_config['p_message_bbcode'] == '1') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><?php echo $lang_admin_settings['Allow BBCode label'] ?></label>
- </div>
- <div class="mf-item">
- <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[message_img_tag]" value="1"<?php if ($forum_config['p_message_img_tag'] == '1') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><?php echo $lang_admin_settings['Allow img label'] ?></label>
- </div>
- <div class="mf-item">
- <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[smilies]" value="1"<?php if ($forum_config['o_smilies'] == '1') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><?php echo $lang_admin_settings['Smilies in posts label'] ?></label>
- </div>
- <div class="mf-item">
- <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[make_links]" value="1"<?php if ($forum_config['o_make_links'] == '1') echo ' checked="checked"' ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"><?php echo $lang_admin_settings['Make clickable links label'] ?></label>
- </div>
- <?php ($hook = get_hook('aop_features_new_message_content_option')) ? eval($hook) : null; ?>
- </div>
- <?php ($hook = get_hook('aop_features_pre_message_content_fieldset_end')) ? eval($hook) : null; ?>
- </fieldset>
- <?php ($hook = get_hook('aop_features_message_content_fieldset_end')) ? eval($hook) : null; ?>
- <fieldset class="mf-…
Large files files are truncated, but you can click here to view the full file