[6] | 1 | <?php |
---|
| 2 | |
---|
| 3 | /** |
---|
| 4 | * Copyright (C) 2008-2011 FluxBB |
---|
| 5 | * based on code by Rickard Andersson copyright (C) 2002-2008 PunBB |
---|
| 6 | * License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | // Tell header.php to use the admin template |
---|
| 10 | define('PUN_ADMIN_CONSOLE', 1); |
---|
| 11 | |
---|
| 12 | define('PUN_ROOT', dirname(__FILE__).'/'); |
---|
| 13 | require PUN_ROOT.'include/common.php'; |
---|
| 14 | require PUN_ROOT.'include/common_admin.php'; |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | if ($pun_user['g_id'] != PUN_ADMIN) |
---|
| 18 | message($lang_common['No permission']); |
---|
| 19 | |
---|
| 20 | // Load the admin_options.php language file |
---|
| 21 | require PUN_ROOT.'lang/'.$admin_language.'/admin_options.php'; |
---|
| 22 | |
---|
| 23 | if (isset($_POST['form_sent'])) |
---|
| 24 | { |
---|
| 25 | confirm_referrer('admin_options.php', $lang_admin_options['Bad HTTP Referer message']); |
---|
| 26 | |
---|
| 27 | $form = array( |
---|
| 28 | 'board_title' => pun_trim($_POST['form']['board_title']), |
---|
| 29 | 'board_desc' => pun_trim($_POST['form']['board_desc']), |
---|
| 30 | 'base_url' => pun_trim($_POST['form']['base_url']), |
---|
| 31 | 'default_timezone' => floatval($_POST['form']['default_timezone']), |
---|
| 32 | 'default_dst' => $_POST['form']['default_dst'] != '1' ? '0' : '1', |
---|
| 33 | 'default_lang' => pun_trim($_POST['form']['default_lang']), |
---|
| 34 | 'default_style' => pun_trim($_POST['form']['default_style']), |
---|
| 35 | 'time_format' => pun_trim($_POST['form']['time_format']), |
---|
| 36 | 'date_format' => pun_trim($_POST['form']['date_format']), |
---|
| 37 | 'timeout_visit' => intval($_POST['form']['timeout_visit']), |
---|
| 38 | 'timeout_online' => intval($_POST['form']['timeout_online']), |
---|
| 39 | 'redirect_delay' => intval($_POST['form']['redirect_delay']), |
---|
| 40 | 'show_version' => $_POST['form']['show_version'] != '1' ? '0' : '1', |
---|
| 41 | 'show_user_info' => $_POST['form']['show_user_info'] != '1' ? '0' : '1', |
---|
| 42 | 'show_post_count' => $_POST['form']['show_post_count'] != '1' ? '0' : '1', |
---|
| 43 | 'smilies' => $_POST['form']['smilies'] != '1' ? '0' : '1', |
---|
| 44 | 'smilies_sig' => $_POST['form']['smilies_sig'] != '1' ? '0' : '1', |
---|
| 45 | 'make_links' => $_POST['form']['make_links'] != '1' ? '0' : '1', |
---|
| 46 | 'topic_review' => intval($_POST['form']['topic_review']), |
---|
| 47 | 'disp_topics_default' => intval($_POST['form']['disp_topics_default']), |
---|
| 48 | 'disp_posts_default' => intval($_POST['form']['disp_posts_default']), |
---|
| 49 | 'indent_num_spaces' => intval($_POST['form']['indent_num_spaces']), |
---|
| 50 | 'quote_depth' => intval($_POST['form']['quote_depth']), |
---|
| 51 | 'quickpost' => $_POST['form']['quickpost'] != '1' ? '0' : '1', |
---|
| 52 | 'users_online' => $_POST['form']['users_online'] != '1' ? '0' : '1', |
---|
| 53 | 'censoring' => $_POST['form']['censoring'] != '1' ? '0' : '1', |
---|
| 54 | 'signatures' => $_POST['form']['signatures'] != '1' ? '0' : '1', |
---|
| 55 | 'ranks' => $_POST['form']['ranks'] != '1' ? '0' : '1', |
---|
| 56 | 'show_dot' => $_POST['form']['show_dot'] != '1' ? '0' : '1', |
---|
| 57 | 'topic_views' => $_POST['form']['topic_views'] != '1' ? '0' : '1', |
---|
| 58 | 'quickjump' => $_POST['form']['quickjump'] != '1' ? '0' : '1', |
---|
| 59 | 'gzip' => $_POST['form']['gzip'] != '1' ? '0' : '1', |
---|
| 60 | 'search_all_forums' => $_POST['form']['search_all_forums'] != '1' ? '0' : '1', |
---|
| 61 | 'additional_navlinks' => pun_trim($_POST['form']['additional_navlinks']), |
---|
| 62 | 'feed_type' => intval($_POST['form']['feed_type']), |
---|
| 63 | 'feed_ttl' => intval($_POST['form']['feed_ttl']), |
---|
| 64 | 'report_method' => intval($_POST['form']['report_method']), |
---|
| 65 | 'mailing_list' => pun_trim($_POST['form']['mailing_list']), |
---|
| 66 | 'avatars' => $_POST['form']['avatars'] != '1' ? '0' : '1', |
---|
| 67 | 'avatars_dir' => pun_trim($_POST['form']['avatars_dir']), |
---|
| 68 | 'avatars_width' => intval($_POST['form']['avatars_width']), |
---|
| 69 | 'avatars_height' => intval($_POST['form']['avatars_height']), |
---|
| 70 | 'avatars_size' => intval($_POST['form']['avatars_size']), |
---|
| 71 | 'admin_email' => strtolower(pun_trim($_POST['form']['admin_email'])), |
---|
| 72 | 'webmaster_email' => strtolower(pun_trim($_POST['form']['webmaster_email'])), |
---|
| 73 | 'forum_subscriptions' => $_POST['form']['forum_subscriptions'] != '1' ? '0' : '1', |
---|
| 74 | 'topic_subscriptions' => $_POST['form']['topic_subscriptions'] != '1' ? '0' : '1', |
---|
| 75 | 'smtp_host' => pun_trim($_POST['form']['smtp_host']), |
---|
| 76 | 'smtp_user' => pun_trim($_POST['form']['smtp_user']), |
---|
| 77 | 'smtp_ssl' => $_POST['form']['smtp_ssl'] != '1' ? '0' : '1', |
---|
| 78 | 'regs_allow' => $_POST['form']['regs_allow'] != '1' ? '0' : '1', |
---|
| 79 | 'regs_verify' => $_POST['form']['regs_verify'] != '1' ? '0' : '1', |
---|
| 80 | 'regs_report' => $_POST['form']['regs_report'] != '1' ? '0' : '1', |
---|
| 81 | 'rules' => $_POST['form']['rules'] != '1' ? '0' : '1', |
---|
| 82 | 'rules_message' => pun_trim($_POST['form']['rules_message']), |
---|
| 83 | 'default_email_setting' => intval($_POST['form']['default_email_setting']), |
---|
| 84 | 'announcement' => $_POST['form']['announcement'] != '1' ? '0' : '1', |
---|
| 85 | 'announcement_message' => pun_trim($_POST['form']['announcement_message']), |
---|
| 86 | 'maintenance' => $_POST['form']['maintenance'] != '1' ? '0' : '1', |
---|
| 87 | 'maintenance_message' => pun_trim($_POST['form']['maintenance_message']), |
---|
| 88 | ); |
---|
| 89 | |
---|
| 90 | if ($form['board_title'] == '') |
---|
| 91 | message($lang_admin_options['Must enter title message']); |
---|
| 92 | |
---|
| 93 | // Make sure base_url doesn't end with a slash |
---|
| 94 | if (substr($form['base_url'], -1) == '/') |
---|
| 95 | $form['base_url'] = substr($form['base_url'], 0, -1); |
---|
| 96 | |
---|
| 97 | $languages = forum_list_langs(); |
---|
| 98 | if (!in_array($form['default_lang'], $languages)) |
---|
| 99 | message($lang_common['Bad request']); |
---|
| 100 | |
---|
| 101 | $styles = forum_list_styles(); |
---|
| 102 | if (!in_array($form['default_style'], $styles)) |
---|
| 103 | message($lang_common['Bad request']); |
---|
| 104 | |
---|
| 105 | if ($form['time_format'] == '') |
---|
| 106 | $form['time_format'] = 'H:i:s'; |
---|
| 107 | |
---|
| 108 | if ($form['date_format'] == '') |
---|
| 109 | $form['date_format'] = 'Y-m-d'; |
---|
| 110 | |
---|
| 111 | |
---|
| 112 | require PUN_ROOT.'include/email.php'; |
---|
| 113 | |
---|
| 114 | if (!is_valid_email($form['admin_email'])) |
---|
| 115 | message($lang_admin_options['Invalid e-mail message']); |
---|
| 116 | |
---|
| 117 | if (!is_valid_email($form['webmaster_email'])) |
---|
| 118 | message($lang_admin_options['Invalid webmaster e-mail message']); |
---|
| 119 | |
---|
| 120 | if ($form['mailing_list'] != '') |
---|
| 121 | $form['mailing_list'] = strtolower(preg_replace('%\s%S', '', $form['mailing_list'])); |
---|
| 122 | |
---|
| 123 | // Make sure avatars_dir doesn't end with a slash |
---|
| 124 | if (substr($form['avatars_dir'], -1) == '/') |
---|
| 125 | $form['avatars_dir'] = substr($form['avatars_dir'], 0, -1); |
---|
| 126 | |
---|
| 127 | if ($form['additional_navlinks'] != '') |
---|
| 128 | $form['additional_navlinks'] = pun_trim(pun_linebreaks($form['additional_navlinks'])); |
---|
| 129 | |
---|
| 130 | // Change or enter a SMTP password |
---|
| 131 | if (isset($_POST['form']['smtp_change_pass'])) |
---|
| 132 | { |
---|
| 133 | $smtp_pass1 = isset($_POST['form']['smtp_pass1']) ? pun_trim($_POST['form']['smtp_pass1']) : ''; |
---|
| 134 | $smtp_pass2 = isset($_POST['form']['smtp_pass2']) ? pun_trim($_POST['form']['smtp_pass2']) : ''; |
---|
| 135 | |
---|
| 136 | if ($smtp_pass1 == $smtp_pass2) |
---|
| 137 | $form['smtp_pass'] = $smtp_pass1; |
---|
| 138 | else |
---|
| 139 | message($lang_admin_options['SMTP passwords did not match']); |
---|
| 140 | } |
---|
| 141 | |
---|
| 142 | if ($form['announcement_message'] != '') |
---|
| 143 | $form['announcement_message'] = pun_linebreaks($form['announcement_message']); |
---|
| 144 | else |
---|
| 145 | { |
---|
| 146 | $form['announcement_message'] = $lang_admin_options['Enter announcement here']; |
---|
| 147 | $form['announcement'] = '0'; |
---|
| 148 | } |
---|
| 149 | |
---|
| 150 | if ($form['rules_message'] != '') |
---|
| 151 | $form['rules_message'] = pun_linebreaks($form['rules_message']); |
---|
| 152 | else |
---|
| 153 | { |
---|
| 154 | $form['rules_message'] = $lang_admin_options['Enter rules here']; |
---|
| 155 | $form['rules'] = '0'; |
---|
| 156 | } |
---|
| 157 | |
---|
| 158 | if ($form['maintenance_message'] != '') |
---|
| 159 | $form['maintenance_message'] = pun_linebreaks($form['maintenance_message']); |
---|
| 160 | else |
---|
| 161 | { |
---|
| 162 | $form['maintenance_message'] = $lang_admin_options['Default maintenance message']; |
---|
| 163 | $form['maintenance'] = '0'; |
---|
| 164 | } |
---|
| 165 | |
---|
| 166 | // Make sure the number of displayed topics and posts is between 3 and 75 |
---|
| 167 | if ($form['disp_topics_default'] < 3) |
---|
| 168 | $form['disp_topics_default'] = 3; |
---|
| 169 | else if ($form['disp_topics_default'] > 75) |
---|
| 170 | $form['disp_topics_default'] = 75; |
---|
| 171 | |
---|
| 172 | if ($form['disp_posts_default'] < 3) |
---|
| 173 | $form['disp_posts_default'] = 3; |
---|
| 174 | else if ($form['disp_posts_default'] > 75) |
---|
| 175 | $form['disp_posts_default'] = 75; |
---|
| 176 | |
---|
| 177 | if ($form['feed_type'] < 0 || $form['feed_type'] > 2) |
---|
| 178 | message($lang_common['Bad request']); |
---|
| 179 | |
---|
| 180 | if ($form['feed_ttl'] < 0) |
---|
| 181 | message($lang_common['Bad request']); |
---|
| 182 | |
---|
| 183 | if ($form['report_method'] < 0 || $form['report_method'] > 2) |
---|
| 184 | message($lang_common['Bad request']); |
---|
| 185 | |
---|
| 186 | if ($form['default_email_setting'] < 0 || $form['default_email_setting'] > 2) |
---|
| 187 | message($lang_common['Bad request']); |
---|
| 188 | |
---|
| 189 | if ($form['timeout_online'] >= $form['timeout_visit']) |
---|
| 190 | message($lang_admin_options['Timeout error message']); |
---|
| 191 | |
---|
| 192 | foreach ($form as $key => $input) |
---|
| 193 | { |
---|
| 194 | // Only update values that have changed |
---|
| 195 | if (array_key_exists('o_'.$key, $pun_config) && $pun_config['o_'.$key] != $input) |
---|
| 196 | { |
---|
| 197 | if ($input != '' || is_int($input)) |
---|
| 198 | $value = '\''.$db->escape($input).'\''; |
---|
| 199 | else |
---|
| 200 | $value = 'NULL'; |
---|
| 201 | |
---|
| 202 | $db->query('UPDATE '.$db->prefix.'config SET conf_value='.$value.' WHERE conf_name=\'o_'.$db->escape($key).'\'') or error('Unable to update board config', __FILE__, __LINE__, $db->error()); |
---|
| 203 | } |
---|
| 204 | } |
---|
| 205 | |
---|
| 206 | // Regenerate the config cache |
---|
| 207 | if (!defined('FORUM_CACHE_FUNCTIONS_LOADED')) |
---|
| 208 | require PUN_ROOT.'include/cache.php'; |
---|
| 209 | |
---|
| 210 | generate_config_cache(); |
---|
| 211 | clear_feed_cache(); |
---|
| 212 | |
---|
| 213 | redirect('admin_options.php', $lang_admin_options['Options updated redirect']); |
---|
| 214 | } |
---|
| 215 | |
---|
| 216 | $page_title = array(pun_htmlspecialchars($pun_config['o_board_title']), $lang_admin_common['Admin'], $lang_admin_common['Options']); |
---|
| 217 | define('PUN_ACTIVE_PAGE', 'admin'); |
---|
| 218 | require PUN_ROOT.'header.php'; |
---|
| 219 | |
---|
| 220 | generate_admin_menu('options'); |
---|
| 221 | |
---|
| 222 | ?> |
---|
| 223 | <div class="blockform"> |
---|
| 224 | <h2><span><?php echo $lang_admin_options['Options head'] ?></span></h2> |
---|
| 225 | <div class="box"> |
---|
| 226 | <form method="post" action="admin_options.php"> |
---|
| 227 | <p class="submittop"><input type="submit" name="save" value="<?php echo $lang_admin_common['Save changes'] ?>" /></p> |
---|
| 228 | <div class="inform"> |
---|
| 229 | <input type="hidden" name="form_sent" value="1" /> |
---|
| 230 | <fieldset> |
---|
| 231 | <legend><?php echo $lang_admin_options['Essentials subhead'] ?></legend> |
---|
| 232 | <div class="infldset"> |
---|
| 233 | <table class="aligntop" cellspacing="0"> |
---|
| 234 | <tr> |
---|
| 235 | <th scope="row"><?php echo $lang_admin_options['Board title label'] ?></th> |
---|
| 236 | <td> |
---|
| 237 | <input type="text" name="form[board_title]" size="50" maxlength="255" value="<?php echo pun_htmlspecialchars($pun_config['o_board_title']) ?>" /> |
---|
| 238 | <span><?php echo $lang_admin_options['Board title help'] ?></span> |
---|
| 239 | </td> |
---|
| 240 | </tr> |
---|
| 241 | <tr> |
---|
| 242 | <th scope="row"><?php echo $lang_admin_options['Board desc label'] ?></th> |
---|
| 243 | <td> |
---|
| 244 | <input type="text" name="form[board_desc]" size="50" maxlength="255" value="<?php echo pun_htmlspecialchars($pun_config['o_board_desc']) ?>" /> |
---|
| 245 | <span><?php echo $lang_admin_options['Board desc help'] ?></span> |
---|
| 246 | </td> |
---|
| 247 | </tr> |
---|
| 248 | <tr> |
---|
| 249 | <th scope="row"><?php echo $lang_admin_options['Base URL label'] ?></th> |
---|
| 250 | <td> |
---|
| 251 | <input type="text" name="form[base_url]" size="50" maxlength="100" value="<?php echo pun_htmlspecialchars($pun_config['o_base_url']) ?>" /> |
---|
| 252 | <span><?php echo $lang_admin_options['Base URL help'] ?></span> |
---|
| 253 | </td> |
---|
| 254 | </tr> |
---|
| 255 | <tr> |
---|
| 256 | <th scope="row"><?php echo $lang_admin_options['Timezone label'] ?></th> |
---|
| 257 | <td> |
---|
| 258 | <select name="form[default_timezone]"> |
---|
| 259 | <option value="-12"<?php if ($pun_config['o_default_timezone'] == -12) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-12:00'] ?></option> |
---|
| 260 | <option value="-11"<?php if ($pun_config['o_default_timezone'] == -11) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-11:00'] ?></option> |
---|
| 261 | <option value="-10"<?php if ($pun_config['o_default_timezone'] == -10) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-10:00'] ?></option> |
---|
| 262 | <option value="-9.5"<?php if ($pun_config['o_default_timezone'] == -9.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-09:30'] ?></option> |
---|
| 263 | <option value="-9"<?php if ($pun_config['o_default_timezone'] == -9) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-09:00'] ?></option> |
---|
| 264 | <option value="-8.5"<?php if ($pun_config['o_default_timezone'] == -8.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-08:30'] ?></option> |
---|
| 265 | <option value="-8"<?php if ($pun_config['o_default_timezone'] == -8) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-08:00'] ?></option> |
---|
| 266 | <option value="-7"<?php if ($pun_config['o_default_timezone'] == -7) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-07:00'] ?></option> |
---|
| 267 | <option value="-6"<?php if ($pun_config['o_default_timezone'] == -6) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-06:00'] ?></option> |
---|
| 268 | <option value="-5"<?php if ($pun_config['o_default_timezone'] == -5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-05:00'] ?></option> |
---|
| 269 | <option value="-4"<?php if ($pun_config['o_default_timezone'] == -4) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-04:00'] ?></option> |
---|
| 270 | <option value="-3.5"<?php if ($pun_config['o_default_timezone'] == -3.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-03:30'] ?></option> |
---|
| 271 | <option value="-3"<?php if ($pun_config['o_default_timezone'] == -3) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-03:00'] ?></option> |
---|
| 272 | <option value="-2"<?php if ($pun_config['o_default_timezone'] == -2) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-02:00'] ?></option> |
---|
| 273 | <option value="-1"<?php if ($pun_config['o_default_timezone'] == -1) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-01:00'] ?></option> |
---|
| 274 | <option value="0"<?php if ($pun_config['o_default_timezone'] == 0) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC'] ?></option> |
---|
| 275 | <option value="1"<?php if ($pun_config['o_default_timezone'] == 1) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+01:00'] ?></option> |
---|
| 276 | <option value="2"<?php if ($pun_config['o_default_timezone'] == 2) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+02:00'] ?></option> |
---|
| 277 | <option value="3"<?php if ($pun_config['o_default_timezone'] == 3) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+03:00'] ?></option> |
---|
| 278 | <option value="3.5"<?php if ($pun_config['o_default_timezone'] == 3.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+03:30'] ?></option> |
---|
| 279 | <option value="4"<?php if ($pun_config['o_default_timezone'] == 4) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+04:00'] ?></option> |
---|
| 280 | <option value="4.5"<?php if ($pun_config['o_default_timezone'] == 4.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+04:30'] ?></option> |
---|
| 281 | <option value="5"<?php if ($pun_config['o_default_timezone'] == 5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+05:00'] ?></option> |
---|
| 282 | <option value="5.5"<?php if ($pun_config['o_default_timezone'] == 5.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+05:30'] ?></option> |
---|
| 283 | <option value="5.75"<?php if ($pun_config['o_default_timezone'] == 5.75) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+05:45'] ?></option> |
---|
| 284 | <option value="6"<?php if ($pun_config['o_default_timezone'] == 6) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+06:00'] ?></option> |
---|
| 285 | <option value="6.5"<?php if ($pun_config['o_default_timezone'] == 6.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+06:30'] ?></option> |
---|
| 286 | <option value="7"<?php if ($pun_config['o_default_timezone'] == 7) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+07:00'] ?></option> |
---|
| 287 | <option value="8"<?php if ($pun_config['o_default_timezone'] == 8) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+08:00'] ?></option> |
---|
| 288 | <option value="8.75"<?php if ($pun_config['o_default_timezone'] == 8.75) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+08:45'] ?></option> |
---|
| 289 | <option value="9"<?php if ($pun_config['o_default_timezone'] == 9) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+09:00'] ?></option> |
---|
| 290 | <option value="9.5"<?php if ($pun_config['o_default_timezone'] == 9.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+09:30'] ?></option> |
---|
| 291 | <option value="10"<?php if ($pun_config['o_default_timezone'] == 10) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+10:00'] ?></option> |
---|
| 292 | <option value="10.5"<?php if ($pun_config['o_default_timezone'] == 10.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+10:30'] ?></option> |
---|
| 293 | <option value="11"<?php if ($pun_config['o_default_timezone'] == 11) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+11:00'] ?></option> |
---|
| 294 | <option value="11.5"<?php if ($pun_config['o_default_timezone'] == 11.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+11:30'] ?></option> |
---|
| 295 | <option value="12"<?php if ($pun_config['o_default_timezone'] == 12) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+12:00'] ?></option> |
---|
| 296 | <option value="12.75"<?php if ($pun_config['o_default_timezone'] == 12.75) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+12:45'] ?></option> |
---|
| 297 | <option value="13"<?php if ($pun_config['o_default_timezone'] == 13) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+13:00'] ?></option> |
---|
| 298 | <option value="14"<?php if ($pun_config['o_default_timezone'] == 14) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+14:00'] ?></option> |
---|
| 299 | </select> |
---|
| 300 | <span><?php echo $lang_admin_options['Timezone help'] ?></span> |
---|
| 301 | </td> |
---|
| 302 | </tr> |
---|
| 303 | <tr> |
---|
| 304 | <th scope="row"><?php echo $lang_admin_options['DST label'] ?></th> |
---|
| 305 | <td> |
---|
| 306 | <input type="radio" name="form[default_dst]" value="1"<?php if ($pun_config['o_default_dst'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[default_dst]" value="0"<?php if ($pun_config['o_default_dst'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 307 | <span><?php echo $lang_admin_options['DST help'] ?></span> |
---|
| 308 | </td> |
---|
| 309 | </tr> |
---|
| 310 | <tr> |
---|
| 311 | <th scope="row"><?php echo $lang_admin_options['Language label'] ?></th> |
---|
| 312 | <td> |
---|
| 313 | <select name="form[default_lang]"> |
---|
| 314 | <?php |
---|
| 315 | |
---|
| 316 | $languages = forum_list_langs(); |
---|
| 317 | |
---|
| 318 | foreach ($languages as $temp) |
---|
| 319 | { |
---|
| 320 | if ($pun_config['o_default_lang'] == $temp) |
---|
| 321 | echo "\t\t\t\t\t\t\t\t\t\t\t".'<option value="'.$temp.'" selected="selected">'.$temp.'</option>'."\n"; |
---|
| 322 | else |
---|
| 323 | echo "\t\t\t\t\t\t\t\t\t\t\t".'<option value="'.$temp.'">'.$temp.'</option>'."\n"; |
---|
| 324 | } |
---|
| 325 | |
---|
| 326 | ?> |
---|
| 327 | </select> |
---|
| 328 | <span><?php echo $lang_admin_options['Language help'] ?></span> |
---|
| 329 | </td> |
---|
| 330 | </tr> |
---|
| 331 | <tr> |
---|
| 332 | <th scope="row"><?php echo $lang_admin_options['Default style label'] ?></th> |
---|
| 333 | <td> |
---|
| 334 | <select name="form[default_style]"> |
---|
| 335 | <?php |
---|
| 336 | |
---|
| 337 | $styles = forum_list_styles(); |
---|
| 338 | |
---|
| 339 | foreach ($styles as $temp) |
---|
| 340 | { |
---|
| 341 | if ($pun_config['o_default_style'] == $temp) |
---|
| 342 | echo "\t\t\t\t\t\t\t\t\t\t\t".'<option value="'.$temp.'" selected="selected">'.str_replace('_', ' ', $temp).'</option>'."\n"; |
---|
| 343 | else |
---|
| 344 | echo "\t\t\t\t\t\t\t\t\t\t\t".'<option value="'.$temp.'">'.str_replace('_', ' ', $temp).'</option>'."\n"; |
---|
| 345 | } |
---|
| 346 | |
---|
| 347 | ?> |
---|
| 348 | </select> |
---|
| 349 | <span><?php echo $lang_admin_options['Default style help'] ?></span> |
---|
| 350 | </td> |
---|
| 351 | </tr> |
---|
| 352 | </table> |
---|
| 353 | </div> |
---|
| 354 | </fieldset> |
---|
| 355 | </div> |
---|
| 356 | <?php |
---|
| 357 | |
---|
| 358 | $diff = ($pun_user['timezone'] + $pun_user['dst']) * 3600; |
---|
| 359 | $timestamp = time() + $diff; |
---|
| 360 | |
---|
| 361 | ?> |
---|
| 362 | <div class="inform"> |
---|
| 363 | <fieldset> |
---|
| 364 | <legend><?php echo $lang_admin_options['Timeouts subhead'] ?></legend> |
---|
| 365 | <div class="infldset"> |
---|
| 366 | <table class="aligntop" cellspacing="0"> |
---|
| 367 | <tr> |
---|
| 368 | <th scope="row"><?php echo $lang_admin_options['Time format label'] ?></th> |
---|
| 369 | <td> |
---|
| 370 | <input type="text" name="form[time_format]" size="25" maxlength="25" value="<?php echo pun_htmlspecialchars($pun_config['o_time_format']) ?>" /> |
---|
| 371 | <span><?php printf($lang_admin_options['Time format help'], gmdate($pun_config['o_time_format'], $timestamp), '<a href="http://www.php.net/manual/en/function.date.php">'.$lang_admin_options['PHP manual'].'</a>') ?></span> |
---|
| 372 | </td> |
---|
| 373 | </tr> |
---|
| 374 | <tr> |
---|
| 375 | <th scope="row"><?php echo $lang_admin_options['Date format label'] ?></th> |
---|
| 376 | <td> |
---|
| 377 | <input type="text" name="form[date_format]" size="25" maxlength="25" value="<?php echo pun_htmlspecialchars($pun_config['o_date_format']) ?>" /> |
---|
| 378 | <span><?php printf($lang_admin_options['Date format help'], gmdate($pun_config['o_date_format'], $timestamp), '<a href="http://www.php.net/manual/en/function.date.php">'.$lang_admin_options['PHP manual'].'</a>') ?></span> |
---|
| 379 | </td> |
---|
| 380 | </tr> |
---|
| 381 | <tr> |
---|
| 382 | <th scope="row"><?php echo $lang_admin_options['Visit timeout label'] ?></th> |
---|
| 383 | <td> |
---|
| 384 | <input type="text" name="form[timeout_visit]" size="5" maxlength="5" value="<?php echo $pun_config['o_timeout_visit'] ?>" /> |
---|
| 385 | <span><?php echo $lang_admin_options['Visit timeout help'] ?></span> |
---|
| 386 | </td> |
---|
| 387 | </tr> |
---|
| 388 | <tr> |
---|
| 389 | <th scope="row"><?php echo $lang_admin_options['Online timeout label'] ?></th> |
---|
| 390 | <td> |
---|
| 391 | <input type="text" name="form[timeout_online]" size="5" maxlength="5" value="<?php echo $pun_config['o_timeout_online'] ?>" /> |
---|
| 392 | <span><?php echo $lang_admin_options['Online timeout help'] ?></span> |
---|
| 393 | </td> |
---|
| 394 | </tr> |
---|
| 395 | <tr> |
---|
| 396 | <th scope="row"><?php echo $lang_admin_options['Redirect time label'] ?></th> |
---|
| 397 | <td> |
---|
| 398 | <input type="text" name="form[redirect_delay]" size="3" maxlength="3" value="<?php echo $pun_config['o_redirect_delay'] ?>" /> |
---|
| 399 | <span><?php echo $lang_admin_options['Redirect time help'] ?></span> |
---|
| 400 | </td> |
---|
| 401 | </tr> |
---|
| 402 | </table> |
---|
| 403 | </div> |
---|
| 404 | </fieldset> |
---|
| 405 | </div> |
---|
| 406 | <div class="inform"> |
---|
| 407 | <fieldset> |
---|
| 408 | <legend><?php echo $lang_admin_options['Display subhead'] ?></legend> |
---|
| 409 | <div class="infldset"> |
---|
| 410 | <table class="aligntop" cellspacing="0"> |
---|
| 411 | <tr> |
---|
| 412 | <th scope="row"><?php echo $lang_admin_options['Version number label'] ?></th> |
---|
| 413 | <td> |
---|
| 414 | <input type="radio" name="form[show_version]" value="1"<?php if ($pun_config['o_show_version'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[show_version]" value="0"<?php if ($pun_config['o_show_version'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 415 | <span><?php echo $lang_admin_options['Version number help'] ?></span> |
---|
| 416 | </td> |
---|
| 417 | </tr> |
---|
| 418 | <tr> |
---|
| 419 | <th scope="row"><?php echo $lang_admin_options['Info in posts label'] ?></th> |
---|
| 420 | <td> |
---|
| 421 | <input type="radio" name="form[show_user_info]" value="1"<?php if ($pun_config['o_show_user_info'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[show_user_info]" value="0"<?php if ($pun_config['o_show_user_info'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 422 | <span><?php echo $lang_admin_options['Info in posts help'] ?></span> |
---|
| 423 | </td> |
---|
| 424 | </tr> |
---|
| 425 | <tr> |
---|
| 426 | <th scope="row"><?php echo $lang_admin_options['Post count label'] ?></th> |
---|
| 427 | <td> |
---|
| 428 | <input type="radio" name="form[show_post_count]" value="1"<?php if ($pun_config['o_show_post_count'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[show_post_count]" value="0"<?php if ($pun_config['o_show_post_count'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 429 | <span><?php echo $lang_admin_options['Post count help'] ?></span> |
---|
| 430 | </td> |
---|
| 431 | </tr> |
---|
| 432 | <tr> |
---|
| 433 | <th scope="row"><?php echo $lang_admin_options['Smilies label'] ?></th> |
---|
| 434 | <td> |
---|
| 435 | <input type="radio" name="form[smilies]" value="1"<?php if ($pun_config['o_smilies'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[smilies]" value="0"<?php if ($pun_config['o_smilies'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 436 | <span><?php echo $lang_admin_options['Smilies help'] ?></span> |
---|
| 437 | </td> |
---|
| 438 | </tr> |
---|
| 439 | <tr> |
---|
| 440 | <th scope="row"><?php echo $lang_admin_options['Smilies sigs label'] ?></th> |
---|
| 441 | <td> |
---|
| 442 | <input type="radio" name="form[smilies_sig]" value="1"<?php if ($pun_config['o_smilies_sig'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[smilies_sig]" value="0"<?php if ($pun_config['o_smilies_sig'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 443 | <span><?php echo $lang_admin_options['Smilies sigs help'] ?></span> |
---|
| 444 | </td> |
---|
| 445 | </tr> |
---|
| 446 | <tr> |
---|
| 447 | <th scope="row"><?php echo $lang_admin_options['Clickable links label'] ?></th> |
---|
| 448 | <td> |
---|
| 449 | <input type="radio" name="form[make_links]" value="1"<?php if ($pun_config['o_make_links'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[make_links]" value="0"<?php if ($pun_config['o_make_links'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 450 | <span><?php echo $lang_admin_options['Clickable links help'] ?></span> |
---|
| 451 | </td> |
---|
| 452 | </tr> |
---|
| 453 | <tr> |
---|
| 454 | <th scope="row"><?php echo $lang_admin_options['Topic review label'] ?></th> |
---|
| 455 | <td> |
---|
| 456 | <input type="text" name="form[topic_review]" size="3" maxlength="3" value="<?php echo $pun_config['o_topic_review'] ?>" /> |
---|
| 457 | <span><?php echo $lang_admin_options['Topic review help'] ?></span> |
---|
| 458 | </td> |
---|
| 459 | </tr> |
---|
| 460 | <tr> |
---|
| 461 | <th scope="row"><?php echo $lang_admin_options['Topics per page label'] ?></th> |
---|
| 462 | <td> |
---|
| 463 | <input type="text" name="form[disp_topics_default]" size="3" maxlength="3" value="<?php echo $pun_config['o_disp_topics_default'] ?>" /> |
---|
| 464 | <span><?php echo $lang_admin_options['Topics per page help'] ?></span> |
---|
| 465 | </td> |
---|
| 466 | </tr> |
---|
| 467 | <tr> |
---|
| 468 | <th scope="row"><?php echo $lang_admin_options['Posts per page label'] ?></th> |
---|
| 469 | <td> |
---|
| 470 | <input type="text" name="form[disp_posts_default]" size="3" maxlength="3" value="<?php echo $pun_config['o_disp_posts_default'] ?>" /> |
---|
| 471 | <span><?php echo $lang_admin_options['Posts per page help'] ?></span> |
---|
| 472 | </td> |
---|
| 473 | </tr> |
---|
| 474 | <tr> |
---|
| 475 | <th scope="row"><?php echo $lang_admin_options['Indent label'] ?></th> |
---|
| 476 | <td> |
---|
| 477 | <input type="text" name="form[indent_num_spaces]" size="3" maxlength="3" value="<?php echo $pun_config['o_indent_num_spaces'] ?>" /> |
---|
| 478 | <span><?php echo $lang_admin_options['Indent help'] ?></span> |
---|
| 479 | </td> |
---|
| 480 | </tr> |
---|
| 481 | <tr> |
---|
| 482 | <th scope="row"><?php echo $lang_admin_options['Quote depth label'] ?></th> |
---|
| 483 | <td> |
---|
| 484 | <input type="text" name="form[quote_depth]" size="3" maxlength="3" value="<?php echo $pun_config['o_quote_depth'] ?>" /> |
---|
| 485 | <span><?php echo $lang_admin_options['Quote depth help'] ?></span> |
---|
| 486 | </td> |
---|
| 487 | </tr> |
---|
| 488 | </table> |
---|
| 489 | </div> |
---|
| 490 | </fieldset> |
---|
| 491 | </div> |
---|
| 492 | <div class="inform"> |
---|
| 493 | <fieldset> |
---|
| 494 | <legend><?php echo $lang_admin_options['Features subhead'] ?></legend> |
---|
| 495 | <div class="infldset"> |
---|
| 496 | <table class="aligntop" cellspacing="0"> |
---|
| 497 | <tr> |
---|
| 498 | <th scope="row"><?php echo $lang_admin_options['Quick post label'] ?></th> |
---|
| 499 | <td> |
---|
| 500 | <input type="radio" name="form[quickpost]" value="1"<?php if ($pun_config['o_quickpost'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[quickpost]" value="0"<?php if ($pun_config['o_quickpost'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 501 | <span><?php echo $lang_admin_options['Quick post help'] ?></span> |
---|
| 502 | </td> |
---|
| 503 | </tr> |
---|
| 504 | <tr> |
---|
| 505 | <th scope="row"><?php echo $lang_admin_options['Users online label'] ?></th> |
---|
| 506 | <td> |
---|
| 507 | <input type="radio" name="form[users_online]" value="1"<?php if ($pun_config['o_users_online'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[users_online]" value="0"<?php if ($pun_config['o_users_online'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 508 | <span><?php echo $lang_admin_options['Users online help'] ?></span> |
---|
| 509 | </td> |
---|
| 510 | </tr> |
---|
| 511 | <tr> |
---|
| 512 | <th scope="row"><a name="censoring"><?php echo $lang_admin_options['Censor words label'] ?></a></th> |
---|
| 513 | <td> |
---|
| 514 | <input type="radio" name="form[censoring]" value="1"<?php if ($pun_config['o_censoring'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[censoring]" value="0"<?php if ($pun_config['o_censoring'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 515 | <span><?php printf($lang_admin_options['Censor words help'], '<a href="admin_censoring.php">'.$lang_admin_common['Censoring'].'</a>') ?></span> |
---|
| 516 | </td> |
---|
| 517 | </tr> |
---|
| 518 | <tr> |
---|
| 519 | <th scope="row"><a name="signatures"><?php echo $lang_admin_options['Signatures label'] ?></a></th> |
---|
| 520 | <td> |
---|
| 521 | <input type="radio" name="form[signatures]" value="1"<?php if ($pun_config['o_signatures'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[signatures]" value="0"<?php if ($pun_config['o_signatures'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 522 | <span><?php echo $lang_admin_options['Signatures help'] ?></span> |
---|
| 523 | </td> |
---|
| 524 | </tr> |
---|
| 525 | <tr> |
---|
| 526 | <th scope="row"><a name="ranks"><?php echo $lang_admin_options['User ranks label'] ?></a></th> |
---|
| 527 | <td> |
---|
| 528 | <input type="radio" name="form[ranks]" value="1"<?php if ($pun_config['o_ranks'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[ranks]" value="0"<?php if ($pun_config['o_ranks'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 529 | <span><?php printf($lang_admin_options['User ranks help'], '<a href="admin_ranks.php">'.$lang_admin_common['Ranks'].'</a>') ?></span> |
---|
| 530 | </td> |
---|
| 531 | </tr> |
---|
| 532 | <tr> |
---|
| 533 | <th scope="row"><?php echo $lang_admin_options['User has posted label'] ?></th> |
---|
| 534 | <td> |
---|
| 535 | <input type="radio" name="form[show_dot]" value="1"<?php if ($pun_config['o_show_dot'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[show_dot]" value="0"<?php if ($pun_config['o_show_dot'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 536 | <span><?php echo $lang_admin_options['User has posted help'] ?></span> |
---|
| 537 | </td> |
---|
| 538 | </tr> |
---|
| 539 | <tr> |
---|
| 540 | <th scope="row"><?php echo $lang_admin_options['Topic views label'] ?></th> |
---|
| 541 | <td> |
---|
| 542 | <input type="radio" name="form[topic_views]" value="1"<?php if ($pun_config['o_topic_views'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[topic_views]" value="0"<?php if ($pun_config['o_topic_views'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 543 | <span><?php echo $lang_admin_options['Topic views help'] ?></span> |
---|
| 544 | </td> |
---|
| 545 | </tr> |
---|
| 546 | <tr> |
---|
| 547 | <th scope="row"><?php echo $lang_admin_options['Quick jump label'] ?></th> |
---|
| 548 | <td> |
---|
| 549 | <input type="radio" name="form[quickjump]" value="1"<?php if ($pun_config['o_quickjump'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[quickjump]" value="0"<?php if ($pun_config['o_quickjump'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 550 | <span><?php echo $lang_admin_options['Quick jump help'] ?></span> |
---|
| 551 | </td> |
---|
| 552 | </tr> |
---|
| 553 | <tr> |
---|
| 554 | <th scope="row"><?php echo $lang_admin_options['GZip label'] ?></th> |
---|
| 555 | <td> |
---|
| 556 | <input type="radio" name="form[gzip]" value="1"<?php if ($pun_config['o_gzip'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[gzip]" value="0"<?php if ($pun_config['o_gzip'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 557 | <span><?php echo $lang_admin_options['GZip help'] ?></span> |
---|
| 558 | </td> |
---|
| 559 | </tr> |
---|
| 560 | <tr> |
---|
| 561 | <th scope="row"><?php echo $lang_admin_options['Search all label'] ?></th> |
---|
| 562 | <td> |
---|
| 563 | <input type="radio" name="form[search_all_forums]" value="1"<?php if ($pun_config['o_search_all_forums'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[search_all_forums]" value="0"<?php if ($pun_config['o_search_all_forums'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 564 | <span><?php echo $lang_admin_options['Search all help'] ?></span> |
---|
| 565 | </td> |
---|
| 566 | </tr> |
---|
| 567 | <tr> |
---|
| 568 | <th scope="row"><?php echo $lang_admin_options['Menu items label'] ?></th> |
---|
| 569 | <td> |
---|
| 570 | <textarea name="form[additional_navlinks]" rows="3" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_additional_navlinks']) ?></textarea> |
---|
| 571 | <span><?php echo $lang_admin_options['Menu items help'] ?></span> |
---|
| 572 | </td> |
---|
| 573 | </tr> |
---|
| 574 | </table> |
---|
| 575 | </div> |
---|
| 576 | </fieldset> |
---|
| 577 | </div> |
---|
| 578 | <div class="inform"> |
---|
| 579 | <fieldset> |
---|
| 580 | <legend><?php echo $lang_admin_options['Feed subhead'] ?></legend> |
---|
| 581 | <div class="infldset"> |
---|
| 582 | <table class="aligntop" cellspacing="0"> |
---|
| 583 | <tr> |
---|
| 584 | <th scope="row"><?php echo $lang_admin_options['Default feed label'] ?></th> |
---|
| 585 | <td> |
---|
| 586 | <input type="radio" name="form[feed_type]" value="0"<?php if ($pun_config['o_feed_type'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_options['None'] ?></strong>   <input type="radio" name="form[feed_type]" value="1"<?php if ($pun_config['o_feed_type'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_options['RSS'] ?></strong>   <input type="radio" name="form[feed_type]" value="2"<?php if ($pun_config['o_feed_type'] == '2') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_options['Atom'] ?></strong> |
---|
| 587 | <span><?php echo $lang_admin_options['Default feed help'] ?></span> |
---|
| 588 | </td> |
---|
| 589 | </tr> |
---|
| 590 | <tr> |
---|
| 591 | <th scope="row"><?php echo $lang_admin_options['Feed TTL label'] ?></th> |
---|
| 592 | <td> |
---|
| 593 | <select name="form[feed_ttl]"> |
---|
| 594 | <option value="0"<?php if ($pun_config['o_feed_ttl'] == '0') echo ' selected="selected"'; ?>><?php echo $lang_admin_options['No cache'] ?></option> |
---|
| 595 | <?php |
---|
| 596 | |
---|
| 597 | $times = array(5, 15, 30, 60); |
---|
| 598 | |
---|
| 599 | foreach ($times as $time) |
---|
| 600 | echo "\t\t\t\t\t\t\t\t\t\t\t".'<option value="'.$time.'"'.($pun_config['o_feed_ttl'] == $time ? ' selected="selected"' : '').'>'.sprintf($lang_admin_options['Minutes'], $time).'</option>'."\n"; |
---|
| 601 | |
---|
| 602 | ?> |
---|
| 603 | </select> |
---|
| 604 | <span><?php echo $lang_admin_options['Feed TTL help'] ?></span> |
---|
| 605 | </td> |
---|
| 606 | </tr> |
---|
| 607 | </table> |
---|
| 608 | </div> |
---|
| 609 | </fieldset> |
---|
| 610 | </div> |
---|
| 611 | <div class="inform"> |
---|
| 612 | <fieldset> |
---|
| 613 | <legend><?php echo $lang_admin_options['Reports subhead'] ?></legend> |
---|
| 614 | <div class="infldset"> |
---|
| 615 | <table class="aligntop" cellspacing="0"> |
---|
| 616 | <tr> |
---|
| 617 | <th scope="row"><?php echo $lang_admin_options['Reporting method label'] ?></th> |
---|
| 618 | <td> |
---|
| 619 | <input type="radio" name="form[report_method]" value="0"<?php if ($pun_config['o_report_method'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_options['Internal'] ?></strong>   <input type="radio" name="form[report_method]" value="1"<?php if ($pun_config['o_report_method'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_options['By e-mail'] ?></strong>   <input type="radio" name="form[report_method]" value="2"<?php if ($pun_config['o_report_method'] == '2') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_options['Both'] ?></strong> |
---|
| 620 | <span><?php echo $lang_admin_options['Reporting method help'] ?></span> |
---|
| 621 | </td> |
---|
| 622 | </tr> |
---|
| 623 | <tr> |
---|
| 624 | <th scope="row"><?php echo $lang_admin_options['Mailing list label'] ?></th> |
---|
| 625 | <td> |
---|
| 626 | <textarea name="form[mailing_list]" rows="5" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_mailing_list']) ?></textarea> |
---|
| 627 | <span><?php echo $lang_admin_options['Mailing list help'] ?></span> |
---|
| 628 | </td> |
---|
| 629 | </tr> |
---|
| 630 | </table> |
---|
| 631 | </div> |
---|
| 632 | </fieldset> |
---|
| 633 | </div> |
---|
| 634 | <div class="inform"> |
---|
| 635 | <fieldset> |
---|
| 636 | <legend><?php echo $lang_admin_options['Avatars subhead'] ?></legend> |
---|
| 637 | <div class="infldset"> |
---|
| 638 | <table class="aligntop" cellspacing="0"> |
---|
| 639 | <tr> |
---|
| 640 | <th scope="row"><?php echo $lang_admin_options['Use avatars label'] ?></th> |
---|
| 641 | <td> |
---|
| 642 | <input type="radio" name="form[avatars]" value="1"<?php if ($pun_config['o_avatars'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[avatars]" value="0"<?php if ($pun_config['o_avatars'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 643 | <span><?php echo $lang_admin_options['Use avatars help'] ?></span> |
---|
| 644 | </td> |
---|
| 645 | </tr> |
---|
| 646 | <tr> |
---|
| 647 | <th scope="row"><?php echo $lang_admin_options['Upload directory label'] ?></th> |
---|
| 648 | <td> |
---|
| 649 | <input type="text" name="form[avatars_dir]" size="35" maxlength="50" value="<?php echo pun_htmlspecialchars($pun_config['o_avatars_dir']) ?>" /> |
---|
| 650 | <span><?php echo $lang_admin_options['Upload directory help'] ?></span> |
---|
| 651 | </td> |
---|
| 652 | </tr> |
---|
| 653 | <tr> |
---|
| 654 | <th scope="row"><?php echo $lang_admin_options['Max width label'] ?></th> |
---|
| 655 | <td> |
---|
| 656 | <input type="text" name="form[avatars_width]" size="5" maxlength="5" value="<?php echo $pun_config['o_avatars_width'] ?>" /> |
---|
| 657 | <span><?php echo $lang_admin_options['Max width help'] ?></span> |
---|
| 658 | </td> |
---|
| 659 | </tr> |
---|
| 660 | <tr> |
---|
| 661 | <th scope="row"><?php echo $lang_admin_options['Max height label'] ?></th> |
---|
| 662 | <td> |
---|
| 663 | <input type="text" name="form[avatars_height]" size="5" maxlength="5" value="<?php echo $pun_config['o_avatars_height'] ?>" /> |
---|
| 664 | <span><?php echo $lang_admin_options['Max height help'] ?></span> |
---|
| 665 | </td> |
---|
| 666 | </tr> |
---|
| 667 | <tr> |
---|
| 668 | <th scope="row"><?php echo $lang_admin_options['Max size label'] ?></th> |
---|
| 669 | <td> |
---|
| 670 | <input type="text" name="form[avatars_size]" size="6" maxlength="6" value="<?php echo $pun_config['o_avatars_size'] ?>" /> |
---|
| 671 | <span><?php echo $lang_admin_options['Max size help'] ?></span> |
---|
| 672 | </td> |
---|
| 673 | </tr> |
---|
| 674 | </table> |
---|
| 675 | </div> |
---|
| 676 | </fieldset> |
---|
| 677 | </div> |
---|
| 678 | <div class="inform"> |
---|
| 679 | <fieldset> |
---|
| 680 | <legend><?php echo $lang_admin_options['E-mail subhead'] ?></legend> |
---|
| 681 | <div class="infldset"> |
---|
| 682 | <table class="aligntop" cellspacing="0"> |
---|
| 683 | <tr> |
---|
| 684 | <th scope="row"><?php echo $lang_admin_options['Admin e-mail label'] ?></th> |
---|
| 685 | <td> |
---|
| 686 | <input type="text" name="form[admin_email]" size="50" maxlength="80" value="<?php echo $pun_config['o_admin_email'] ?>" /> |
---|
| 687 | <span><?php echo $lang_admin_options['Admin e-mail help'] ?></span> |
---|
| 688 | </td> |
---|
| 689 | </tr> |
---|
| 690 | <tr> |
---|
| 691 | <th scope="row"><?php echo $lang_admin_options['Webmaster e-mail label'] ?></th> |
---|
| 692 | <td> |
---|
| 693 | <input type="text" name="form[webmaster_email]" size="50" maxlength="80" value="<?php echo $pun_config['o_webmaster_email'] ?>" /> |
---|
| 694 | <span><?php echo $lang_admin_options['Webmaster e-mail help'] ?></span> |
---|
| 695 | </td> |
---|
| 696 | </tr> |
---|
| 697 | <tr> |
---|
| 698 | <th scope="row"><?php echo $lang_admin_options['Forum subscriptions label'] ?></th> |
---|
| 699 | <td> |
---|
| 700 | <input type="radio" name="form[forum_subscriptions]" value="1"<?php if ($pun_config['o_forum_subscriptions'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[forum_subscriptions]" value="0"<?php if ($pun_config['o_forum_subscriptions'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 701 | <span><?php echo $lang_admin_options['Forum subscriptions help'] ?></span> |
---|
| 702 | </td> |
---|
| 703 | </tr> |
---|
| 704 | <tr> |
---|
| 705 | <th scope="row"><?php echo $lang_admin_options['Topic subscriptions label'] ?></th> |
---|
| 706 | <td> |
---|
| 707 | <input type="radio" name="form[topic_subscriptions]" value="1"<?php if ($pun_config['o_topic_subscriptions'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[topic_subscriptions]" value="0"<?php if ($pun_config['o_topic_subscriptions'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 708 | <span><?php echo $lang_admin_options['Topic subscriptions help'] ?></span> |
---|
| 709 | </td> |
---|
| 710 | </tr> |
---|
| 711 | <tr> |
---|
| 712 | <th scope="row"><?php echo $lang_admin_options['SMTP address label'] ?></th> |
---|
| 713 | <td> |
---|
| 714 | <input type="text" name="form[smtp_host]" size="30" maxlength="100" value="<?php echo pun_htmlspecialchars($pun_config['o_smtp_host']) ?>" /> |
---|
| 715 | <span><?php echo $lang_admin_options['SMTP address help'] ?></span> |
---|
| 716 | </td> |
---|
| 717 | </tr> |
---|
| 718 | <tr> |
---|
| 719 | <th scope="row"><?php echo $lang_admin_options['SMTP username label'] ?></th> |
---|
| 720 | <td> |
---|
| 721 | <input type="text" name="form[smtp_user]" size="25" maxlength="50" value="<?php echo pun_htmlspecialchars($pun_config['o_smtp_user']) ?>" /> |
---|
| 722 | <span><?php echo $lang_admin_options['SMTP username help'] ?></span> |
---|
| 723 | </td> |
---|
| 724 | </tr> |
---|
| 725 | <tr> |
---|
| 726 | <th scope="row"><?php echo $lang_admin_options['SMTP password label'] ?></th> |
---|
| 727 | <td> |
---|
| 728 | <span><input type="checkbox" name="form[smtp_change_pass]" value="1" />  <?php echo $lang_admin_options['SMTP change password help'] ?></span> |
---|
| 729 | <?php $smtp_pass = !empty($pun_config['o_smtp_pass']) ? random_key(pun_strlen($pun_config['o_smtp_pass']), true) : ''; ?> |
---|
| 730 | <input type="password" name="form[smtp_pass1]" size="25" maxlength="50" value="<?php echo $smtp_pass ?>" /> |
---|
| 731 | <input type="password" name="form[smtp_pass2]" size="25" maxlength="50" value="<?php echo $smtp_pass ?>" /> |
---|
| 732 | <span><?php echo $lang_admin_options['SMTP password help'] ?></span> |
---|
| 733 | </td> |
---|
| 734 | </tr> |
---|
| 735 | <tr> |
---|
| 736 | <th scope="row"><?php echo $lang_admin_options['SMTP SSL label'] ?></th> |
---|
| 737 | <td> |
---|
| 738 | <input type="radio" name="form[smtp_ssl]" value="1"<?php if ($pun_config['o_smtp_ssl'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[smtp_ssl]" value="0"<?php if ($pun_config['o_smtp_ssl'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 739 | <span><?php echo $lang_admin_options['SMTP SSL help'] ?></span> |
---|
| 740 | </td> |
---|
| 741 | </tr> |
---|
| 742 | </table> |
---|
| 743 | </div> |
---|
| 744 | </fieldset> |
---|
| 745 | </div> |
---|
| 746 | <div class="inform"> |
---|
| 747 | <fieldset> |
---|
| 748 | <legend><?php echo $lang_admin_options['Registration subhead'] ?></legend> |
---|
| 749 | <div class="infldset"> |
---|
| 750 | <table class="aligntop" cellspacing="0"> |
---|
| 751 | <tr> |
---|
| 752 | <th scope="row"><?php echo $lang_admin_options['Allow new label'] ?></th> |
---|
| 753 | <td> |
---|
| 754 | <input type="radio" name="form[regs_allow]" value="1"<?php if ($pun_config['o_regs_allow'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[regs_allow]" value="0"<?php if ($pun_config['o_regs_allow'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 755 | <span><?php echo $lang_admin_options['Allow new help'] ?></span> |
---|
| 756 | </td> |
---|
| 757 | </tr> |
---|
| 758 | <tr> |
---|
| 759 | <th scope="row"><?php echo $lang_admin_options['Verify label'] ?></th> |
---|
| 760 | <td> |
---|
| 761 | <input type="radio" name="form[regs_verify]" value="1"<?php if ($pun_config['o_regs_verify'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[regs_verify]" value="0"<?php if ($pun_config['o_regs_verify'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 762 | <span><?php echo $lang_admin_options['Verify help'] ?></span> |
---|
| 763 | </td> |
---|
| 764 | </tr> |
---|
| 765 | <tr> |
---|
| 766 | <th scope="row"><?php echo $lang_admin_options['Report new label'] ?></th> |
---|
| 767 | <td> |
---|
| 768 | <input type="radio" name="form[regs_report]" value="1"<?php if ($pun_config['o_regs_report'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[regs_report]" value="0"<?php if ($pun_config['o_regs_report'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 769 | <span><?php echo $lang_admin_options['Report new help'] ?></span> |
---|
| 770 | </td> |
---|
| 771 | </tr> |
---|
| 772 | <tr> |
---|
| 773 | <th scope="row"><?php echo $lang_admin_options['Use rules label'] ?></th> |
---|
| 774 | <td> |
---|
| 775 | <input type="radio" name="form[rules]" value="1"<?php if ($pun_config['o_rules'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[rules]" value="0"<?php if ($pun_config['o_rules'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 776 | <span><?php echo $lang_admin_options['Use rules help'] ?></span> |
---|
| 777 | </td> |
---|
| 778 | </tr> |
---|
| 779 | <tr> |
---|
| 780 | <th scope="row"><?php echo $lang_admin_options['Rules label'] ?></th> |
---|
| 781 | <td> |
---|
| 782 | <textarea name="form[rules_message]" rows="10" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_rules_message']) ?></textarea> |
---|
| 783 | <span><?php echo $lang_admin_options['Rules help'] ?></span> |
---|
| 784 | </td> |
---|
| 785 | </tr> |
---|
| 786 | <tr> |
---|
| 787 | <th scope="row"><?php echo $lang_admin_options['E-mail default label'] ?></th> |
---|
| 788 | <td> |
---|
| 789 | <span><?php echo $lang_admin_options['E-mail default help'] ?></span> |
---|
| 790 | <input type="radio" name="form[default_email_setting]" value="0"<?php if ($pun_config['o_default_email_setting'] == '0') echo ' checked="checked"' ?> /> <?php echo $lang_admin_options['Display e-mail label'] ?><br /> |
---|
| 791 | <input type="radio" name="form[default_email_setting]" value="1"<?php if ($pun_config['o_default_email_setting'] == '1') echo ' checked="checked"' ?> /> <?php echo $lang_admin_options['Hide allow form label'] ?><br /> |
---|
| 792 | <input type="radio" name="form[default_email_setting]" value="2"<?php if ($pun_config['o_default_email_setting'] == '2') echo ' checked="checked"' ?> /> <?php echo $lang_admin_options['Hide both label'] ?><br /> |
---|
| 793 | </td> |
---|
| 794 | </tr> |
---|
| 795 | </table> |
---|
| 796 | </div> |
---|
| 797 | </fieldset> |
---|
| 798 | </div> |
---|
| 799 | <div class="inform"> |
---|
| 800 | <fieldset> |
---|
| 801 | <legend><?php echo $lang_admin_options['Announcement subhead'] ?></legend> |
---|
| 802 | <div class="infldset"> |
---|
| 803 | <table class="aligntop" cellspacing="0"> |
---|
| 804 | <tr> |
---|
| 805 | <th scope="row"><?php echo $lang_admin_options['Display announcement label'] ?></th> |
---|
| 806 | <td> |
---|
| 807 | <input type="radio" name="form[announcement]" value="1"<?php if ($pun_config['o_announcement'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[announcement]" value="0"<?php if ($pun_config['o_announcement'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 808 | <span><?php echo $lang_admin_options['Display announcement help'] ?></span> |
---|
| 809 | </td> |
---|
| 810 | </tr> |
---|
| 811 | <tr> |
---|
| 812 | <th scope="row"><?php echo $lang_admin_options['Announcement message label'] ?></th> |
---|
| 813 | <td> |
---|
| 814 | <textarea name="form[announcement_message]" rows="5" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_announcement_message']) ?></textarea> |
---|
| 815 | <span><?php echo $lang_admin_options['Announcement message help'] ?></span> |
---|
| 816 | </td> |
---|
| 817 | </tr> |
---|
| 818 | </table> |
---|
| 819 | </div> |
---|
| 820 | </fieldset> |
---|
| 821 | </div> |
---|
| 822 | <div class="inform"> |
---|
| 823 | <fieldset> |
---|
| 824 | <legend><?php echo $lang_admin_options['Maintenance subhead'] ?></legend> |
---|
| 825 | <div class="infldset"> |
---|
| 826 | <table class="aligntop" cellspacing="0"> |
---|
| 827 | <tr> |
---|
| 828 | <th scope="row"><a name="maintenance"><?php echo $lang_admin_options['Maintenance mode label'] ?></a></th> |
---|
| 829 | <td> |
---|
| 830 | <input type="radio" name="form[maintenance]" value="1"<?php if ($pun_config['o_maintenance'] == '1') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['Yes'] ?></strong>   <input type="radio" name="form[maintenance]" value="0"<?php if ($pun_config['o_maintenance'] == '0') echo ' checked="checked"' ?> /> <strong><?php echo $lang_admin_common['No'] ?></strong> |
---|
| 831 | <span><?php echo $lang_admin_options['Maintenance mode help'] ?></span> |
---|
| 832 | </td> |
---|
| 833 | </tr> |
---|
| 834 | <tr> |
---|
| 835 | <th scope="row"><?php echo $lang_admin_options['Maintenance message label'] ?></th> |
---|
| 836 | <td> |
---|
| 837 | <textarea name="form[maintenance_message]" rows="5" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_maintenance_message']) ?></textarea> |
---|
| 838 | <span><?php echo $lang_admin_options['Maintenance message help'] ?></span> |
---|
| 839 | </td> |
---|
| 840 | </tr> |
---|
| 841 | </table> |
---|
| 842 | </div> |
---|
| 843 | </fieldset> |
---|
| 844 | </div> |
---|
| 845 | <p class="submitend"><input type="submit" name="save" value="<?php echo $lang_admin_common['Save changes'] ?>" /></p> |
---|
| 846 | </form> |
---|
| 847 | </div> |
---|
| 848 | </div> |
---|
| 849 | <div class="clearer"></div> |
---|
| 850 | </div> |
---|
| 851 | <?php |
---|
| 852 | |
---|
| 853 | require PUN_ROOT.'footer.php'; |
---|