PageRenderTime 62ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/admin_options.php

https://github.com/Dratone/EveBB
PHP | 908 lines | 837 code | 53 blank | 18 comment | 245 complexity | ba67f1b65d4bee0ff611aaba31a0e433 MD5 | raw file
Possible License(s): GPL-2.0

Large files files are truncated, but you can click here to view the full file

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

Large files files are truncated, but you can click here to view the full file