punbb/admin_options.php
author Dan
Thu, 12 Jul 2007 01:04:01 -0400
changeset 2 a8a21e1c7afa
parent 0 f9ffdbd96607
child 3 c0c445d4a13e
permissions -rw-r--r--
Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     1
<?php
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     2
/***********************************************************************
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     3
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     4
  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     5
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     6
  This file is part of PunBB.
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     7
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     8
  PunBB is free software; you can redistribute it and/or modify it
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     9
  under the terms of the GNU General Public License as published
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    10
  by the Free Software Foundation; either version 2 of the License,
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    11
  or (at your option) any later version.
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    12
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    13
  PunBB is distributed in the hope that it will be useful, but
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    14
  WITHOUT ANY WARRANTY; without even the implied warranty of
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    15
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    16
  GNU General Public License for more details.
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    17
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    18
  You should have received a copy of the GNU General Public License
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    19
  along with this program; if not, write to the Free Software
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    20
  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    21
  MA  02111-1307  USA
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    22
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    23
************************************************************************/
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    24
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    25
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    26
// Tell header.php to use the admin template
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    27
define('PUN_ADMIN_CONSOLE', 1);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    28
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    29
//define('PUN_ROOT', './');
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    30
//require PUN_ROOT.'include/common.php';
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    31
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    32
global $pun_db, $pun_user, $pun_config, $lang_common;
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    33
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    34
require PUN_ROOT.'include/common_admin.php';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    35
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    36
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    37
if ($pun_user['g_id'] < PUN_ADMIN)
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    38
	message($lang_common['No permission']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    39
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    40
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    41
if (isset($_POST['form_sent']))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    42
{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    43
	// Custom referrer check (so we can output a custom error message)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    44
	if (!preg_match('#^'.preg_quote(str_replace('www.', '', $pun_config['o_base_url']).'/admin_options.php', '#').'#i', str_replace('www.', '', (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''))))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    45
		message('Bad HTTP_REFERER. If you have moved these forums from one location to another or switched domains, you need to update the Base URL manually in the database (look for o_base_url in the config table) and then clear the cache by deleting all .php files in the /cache directory.');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    46
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    47
	$form = array_map('trim', $_POST['form']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    48
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    49
	if ($form['board_title'] == '')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    50
		message('You must enter a board title.');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    51
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    52
	// Clean default_lang
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    53
	$form['default_lang'] = preg_replace('#[\.\\\/]#', '', $form['default_lang']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    54
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    55
	require PUN_ROOT.'include/email.php';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    56
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    57
	$form['admin_email'] = strtolower($form['admin_email']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    58
	if (!is_valid_email($form['admin_email']))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    59
		message('The admin e-mail address you entered is invalid.');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    60
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    61
	$form['webmaster_email'] = strtolower($form['webmaster_email']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    62
	if (!is_valid_email($form['webmaster_email']))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    63
		message('The webmaster e-mail address you entered is invalid.');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    64
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    65
	if ($form['mailing_list'] != '')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    66
		$form['mailing_list'] = strtolower(preg_replace('/[\s]/', '', $form['mailing_list']));
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    67
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    68
	// Make sure base_url doesn't end with a slash
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    69
	if (substr($form['base_url'], -1) == '/')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    70
		$form['base_url'] = substr($form['base_url'], 0, -1);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    71
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    72
	// Clean avatars_dir
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    73
	$form['avatars_dir'] = str_replace("\0", '', $form['avatars_dir']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    74
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    75
	// Make sure avatars_dir doesn't end with a slash
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    76
	if (substr($form['avatars_dir'], -1) == '/')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    77
		$form['avatars_dir'] = substr($form['avatars_dir'], 0, -1);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    78
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    79
	if ($form['additional_navlinks'] != '')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    80
		$form['additional_navlinks'] = trim(pun_linebreaks($form['additional_navlinks']));
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    81
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    82
	if ($form['announcement_message'] != '')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    83
		$form['announcement_message'] = pun_linebreaks($form['announcement_message']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    84
	else
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    85
	{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    86
		$form['announcement_message'] = 'Enter your announcement here.';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    87
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    88
		if ($form['announcement'] == '1')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    89
			$form['announcement'] = '0';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    90
	}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    91
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    92
	if ($form['rules_message'] != '')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    93
		$form['rules_message'] = pun_linebreaks($form['rules_message']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    94
	else
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    95
	{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    96
		$form['rules_message'] = 'Enter your rules here.';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    97
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    98
		if ($form['rules'] == '1')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    99
			$form['rules'] = '0';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   100
	}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   101
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   102
	if ($form['maintenance_message'] != '')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   103
		$form['maintenance_message'] = pun_linebreaks($form['maintenance_message']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   104
	else
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   105
	{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   106
		$form['maintenance_message'] = 'The forums are temporarily down for maintenance. Please try again in a few minutes.\n\n/Administrator';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   107
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   108
		if ($form['maintenance'] == '1')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   109
			$form['maintenance'] = '0';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   110
	}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   111
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   112
	$form['timeout_visit'] = intval($form['timeout_visit']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   113
	$form['timeout_online'] = intval($form['timeout_online']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   114
	$form['redirect_delay'] = intval($form['redirect_delay']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   115
	$form['topic_review'] = intval($form['topic_review']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   116
	$form['disp_topics_default'] = intval($form['disp_topics_default']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   117
	$form['disp_posts_default'] = intval($form['disp_posts_default']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   118
	$form['indent_num_spaces'] = intval($form['indent_num_spaces']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   119
	$form['avatars_width'] = intval($form['avatars_width']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   120
	$form['avatars_height'] = intval($form['avatars_height']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   121
	$form['avatars_size'] = intval($form['avatars_size']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   122
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   123
	if ($form['timeout_online'] >= $form['timeout_visit'])
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   124
		message('The value of "Timeout online" must be smaller than the value of "Timeout visit".');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   125
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   126
	while (list($key, $input) = @each($form))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   127
	{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   128
		// Only update values that have changed
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   129
		if (array_key_exists('o_'.$key, $pun_config) && $pun_config['o_'.$key] != $input)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   130
		{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   131
			if ($input != '' || is_int($input))
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
   132
				$value = '\''.$pun_db->escape($input).'\'';
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   133
			else
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   134
				$value = 'NULL';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   135
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
   136
			$pun_db->query('UPDATE '.$pun_db->prefix.'config SET conf_value='.$value.' WHERE conf_name=\'o_'.$pun_db->escape($key).'\'') or error('Unable to update board config', __FILE__, __LINE__, $pun_db->error());
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   137
		}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   138
	}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   139
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   140
	// Regenerate the config cache
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   141
	require_once PUN_ROOT.'include/cache.php';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   142
	generate_config_cache();
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   143
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
   144
	pun_redirect('admin_options.php', 'Options updated. Redirecting &hellip;');
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   145
}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   146
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   147
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   148
$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Options';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   149
$form_name = 'update_options';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   150
require PUN_ROOT.'header.php';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   151
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   152
generate_admin_menu('options');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   153
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   154
?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   155
	<div class="blockform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   156
		<h2><span>Options</span></h2>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   157
		<div class="box">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   158
			<form method="post" action="admin_options.php?action=foo">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   159
				<p class="submittop"><input type="submit" name="save" value="Save changes" /></p>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   160
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   161
				<input type="hidden" name="form_sent" value="1" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   162
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   163
						<legend>Essentials</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   164
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   165
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   166
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   167
									<th scope="row">Board title</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   168
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   169
										<input type="text" name="form[board_title]" size="50" maxlength="255" value="<?php echo pun_htmlspecialchars($pun_config['o_board_title']) ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   170
										<span>The title of this bulletin board (shown at the top of every page). This field may <strong>not</strong> contain HTML.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   171
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   172
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   173
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   174
									<th scope="row">Board description</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   175
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   176
										<input type="text" name="form[board_desc]" size="50" maxlength="255" value="<?php echo pun_htmlspecialchars($pun_config['o_board_desc']) ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   177
										<span>A short description of this bulletin board (shown at the top of every page). This field may contain HTML.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   178
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   179
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   180
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   181
									<th scope="row">Base URL</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   182
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   183
										<input type="text" name="form[base_url]" size="50" maxlength="100" value="<?php echo $pun_config['o_base_url'] ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   184
										<span>The complete URL of the forum without trailing slash (i.e. http://www.mydomain.com/forums). This <strong>must</strong> be correct in order for all admin and moderator features to work. If you get "Bad referer" errors, it's probably incorrect.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   185
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   186
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   187
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   188
									<th scope="row">Server timezone</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   189
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   190
										<select name="form[server_timezone]">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   191
											<option value="-12"<?php if ($pun_config['o_server_timezone'] == -12 ) echo ' selected="selected"' ?>>-12</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   192
											<option value="-11"<?php if ($pun_config['o_server_timezone'] == -11) echo ' selected="selected"' ?>>-11</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   193
											<option value="-10"<?php if ($pun_config['o_server_timezone'] == -10) echo ' selected="selected"' ?>>-10</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   194
											<option value="-9.5"<?php if ($pun_config['o_server_timezone'] == -9.5) echo ' selected="selected"' ?>>-09.5</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   195
											<option value="-9"<?php if ($pun_config['o_server_timezone'] == -9 ) echo ' selected="selected"' ?>>-09</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   196
											<option value="-8.5"<?php if ($pun_config['o_server_timezone'] == -8.5) echo ' selected="selected"' ?>>-08.5</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   197
											<option value="-8"<?php if ($pun_config['o_server_timezone'] == -8 ) echo ' selected="selected"' ?>>-08 PST</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   198
											<option value="-7"<?php if ($pun_config['o_server_timezone'] == -7 ) echo ' selected="selected"' ?>>-07 MST</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   199
											<option value="-6"<?php if ($pun_config['o_server_timezone'] == -6 ) echo ' selected="selected"' ?>>-06 CST</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   200
											<option value="-5"<?php if ($pun_config['o_server_timezone'] == -5 ) echo ' selected="selected"' ?>>-05 EST</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   201
											<option value="-4"<?php if ($pun_config['o_server_timezone'] == -4 ) echo ' selected="selected"' ?>>-04 AST</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   202
											<option value="-3.5"<?php if ($pun_config['o_server_timezone'] == -3.5) echo ' selected="selected"' ?>>-03.5</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   203
											<option value="-3"<?php if ($pun_config['o_server_timezone'] == -3 ) echo ' selected="selected"' ?>>-03 ADT</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   204
											<option value="-2"<?php if ($pun_config['o_server_timezone'] == -2 ) echo ' selected="selected"' ?>>-02</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   205
											<option value="-1"<?php if ($pun_config['o_server_timezone'] == -1) echo ' selected="selected"' ?>>-01</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   206
											<option value="0"<?php if ($pun_config['o_server_timezone'] == 0) echo ' selected="selected"' ?>>00 GMT</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   207
											<option value="1"<?php if ($pun_config['o_server_timezone'] == 1) echo ' selected="selected"' ?>>+01 CET</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   208
											<option value="2"<?php if ($pun_config['o_server_timezone'] == 2 ) echo ' selected="selected"' ?>>+02</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   209
											<option value="3"<?php if ($pun_config['o_server_timezone'] == 3 ) echo ' selected="selected"' ?>>+03</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   210
											<option value="3.5"<?php if ($pun_config['o_server_timezone'] == 3.5) echo ' selected="selected"' ?>>+03.5</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   211
											<option value="4"<?php if ($pun_config['o_server_timezone'] == 4 ) echo ' selected="selected"' ?>>+04</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   212
											<option value="4.5"<?php if ($pun_config['o_server_timezone'] == 4.5) echo ' selected="selected"' ?>>+04.5</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   213
											<option value="5"<?php if ($pun_config['o_server_timezone'] == 5 ) echo ' selected="selected"' ?>>+05</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   214
											<option value="5.5"<?php if ($pun_config['o_server_timezone'] == 5.5) echo ' selected="selected"' ?>>+05.5</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   215
											<option value="6"<?php if ($pun_config['o_server_timezone'] == 6 ) echo ' selected="selected"' ?>>+06</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   216
											<option value="6.5"<?php if ($pun_config['o_server_timezone'] == 6.5) echo ' selected="selected"' ?>>+06.5</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   217
											<option value="7"<?php if ($pun_config['o_server_timezone'] == 7 ) echo ' selected="selected"' ?>>+07</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   218
											<option value="8"<?php if ($pun_config['o_server_timezone'] == 8 ) echo ' selected="selected"' ?>>+08</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   219
											<option value="9"<?php if ($pun_config['o_server_timezone'] == 9 ) echo ' selected="selected"' ?>>+09</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   220
											<option value="9.5"<?php if ($pun_config['o_server_timezone'] == 9.5) echo ' selected="selected"' ?>>+09.5</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   221
											<option value="10"<?php if ($pun_config['o_server_timezone'] == 10) echo ' selected="selected"' ?>>+10</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   222
											<option value="10.5"<?php if ($pun_config['o_server_timezone'] == 10.5) echo ' selected="selected"' ?>>+10.5</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   223
											<option value="11"<?php if ($pun_config['o_server_timezone'] == 11) echo ' selected="selected"' ?>>+11</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   224
											<option value="11.5"<?php if ($pun_config['o_server_timezone'] == 11.5) echo ' selected="selected"' ?>>+11.5</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   225
											<option value="12"<?php if ($pun_config['o_server_timezone'] == 12 ) echo ' selected="selected"' ?>>+12</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   226
											<option value="13"<?php if ($pun_config['o_server_timezone'] == 13 ) echo ' selected="selected"' ?>>+13</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   227
										</select>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   228
										<span>The timezone of the server where PunBB is installed.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   229
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   230
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   231
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   232
									<th scope="row">Default language</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   233
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   234
										<select name="form[default_lang]">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   235
<?php
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   236
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   237
		$languages = array();
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   238
		$d = dir(PUN_ROOT.'lang');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   239
		while (($entry = $d->read()) !== false)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   240
		{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   241
			if ($entry != '.' && $entry != '..' && is_dir(PUN_ROOT.'lang/'.$entry) && file_exists(PUN_ROOT.'lang/'.$entry.'/common.php'))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   242
				$languages[] = $entry;
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   243
		}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   244
		$d->close();
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   245
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   246
		@natsort($languages);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   247
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   248
		while (list(, $temp) = @each($languages))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   249
		{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   250
			if ($pun_config['o_default_lang'] == $temp)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   251
				echo "\t\t\t\t\t\t\t\t\t\t\t".'<option value="'.$temp.'" selected="selected">'.$temp.'</option>'."\n";
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   252
			else
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   253
				echo "\t\t\t\t\t\t\t\t\t\t\t".'<option value="'.$temp.'">'.$temp.'</option>'."\n";
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   254
		}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   255
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   256
?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   257
										</select>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   258
										<span>This is the default language style used if the visitor is a guest or a user that hasn't changed from the default in his/her profile. If you remove a language pack, this must be updated.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   259
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   260
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   261
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   262
									<th scope="row">Default style</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   263
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   264
										<select name="form[default_style]">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   265
<?php
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   266
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   267
		$styles = array();
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   268
		$d = dir(PUN_ROOT.'style');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   269
		while (($entry = $d->read()) !== false)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   270
		{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   271
			if (substr($entry, strlen($entry)-4) == '.css')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   272
				$styles[] = substr($entry, 0, strlen($entry)-4);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   273
		}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   274
		$d->close();
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   275
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   276
		@natsort($styles);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   277
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   278
		while (list(, $temp) = @each($styles))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   279
		{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   280
			if ($pun_config['o_default_style'] == $temp)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   281
				echo "\t\t\t\t\t\t\t\t\t".'<option value="'.$temp.'" selected="selected">'.str_replace('_', ' ', $temp).'</option>'."\n";
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   282
			else
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   283
				echo "\t\t\t\t\t\t\t\t\t".'<option value="'.$temp.'">'.str_replace('_', ' ', $temp).'</option>'."\n";
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   284
		}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   285
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   286
?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   287
										</select>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   288
										<span>This is the default style used for guests and users who haven't changed from the default in their profile.</span></td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   289
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   290
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   291
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   292
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   293
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   294
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   295
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   296
						<legend>Time and timeouts</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   297
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   298
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   299
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   300
									<th scope="row">Time format</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   301
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   302
										<input type="text" name="form[time_format]" size="25" maxlength="25" value="<?php echo pun_htmlspecialchars($pun_config['o_time_format']) ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   303
										<span>[Current format: <?php echo date($pun_config['o_time_format']) ?>]&nbsp;See <a href="http://www.php.net/manual/en/function.date.php">here</a> for formatting options.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   304
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   305
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   306
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   307
									<th scope="row">Date format</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   308
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   309
										<input type="text" name="form[date_format]" size="25" maxlength="25" value="<?php echo pun_htmlspecialchars($pun_config['o_date_format']) ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   310
										<span>[Current format: <?php echo date($pun_config['o_date_format']) ?>]&nbsp;See <a href="http://www.php.net/manual/en/function.date.php">here</a> for formatting options.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   311
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   312
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   313
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   314
									<th scope="row">Visit timeout</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   315
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   316
										<input type="text" name="form[timeout_visit]" size="5" maxlength="5" value="<?php echo $pun_config['o_timeout_visit'] ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   317
										<span>Number of seconds a user must be idle before his/hers last visit data is updated (primarily affects new message indicators).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   318
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   319
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   320
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   321
									<th scope="row">Online timeout</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   322
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   323
										<input type="text" name="form[timeout_online]" size="5" maxlength="5" value="<?php echo $pun_config['o_timeout_online'] ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   324
										<span>Number of seconds a user must be idle before being removed from the online users list.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   325
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   326
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   327
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   328
									<th scope="row">Redirect time</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   329
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   330
										<input type="text" name="form[redirect_delay]" size="3" maxlength="3" value="<?php echo $pun_config['o_redirect_delay'] ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   331
										<span>Number of seconds to wait when redirecting. If set to 0, no redirect page will be displayed (not recommended).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   332
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   333
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   334
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   335
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   336
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   337
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   338
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   339
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   340
						<legend>Display</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   341
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   342
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   343
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   344
									<th scope="row">Version number</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   345
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   346
										<input type="radio" name="form[show_version]" value="1"<?php if ($pun_config['o_show_version'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[show_version]" value="0"<?php if ($pun_config['o_show_version'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   347
										<span>Show version number in footer.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   348
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   349
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   350
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   351
									<th scope="row">User info in posts</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   352
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   353
										<input type="radio" name="form[show_user_info]" value="1"<?php if ($pun_config['o_show_user_info'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[show_user_info]" value="0"<?php if ($pun_config['o_show_user_info'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   354
										<span>Show information about the poster under the username in topic view. The information affected is location, register date, post count and the contact links (e-mail and URL).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   355
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   356
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   357
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   358
									<th scope="row">User post count</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   359
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   360
										<input type="radio" name="form[show_post_count]" value="1"<?php if ($pun_config['o_show_post_count'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[show_post_count]" value="0"<?php if ($pun_config['o_show_post_count'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   361
										<span>Show the number of posts a user has made (affects topic view, profile and userlist).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   362
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   363
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   364
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   365
									<th scope="row">Smilies</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   366
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   367
										<input type="radio" name="form[smilies]" value="1"<?php if ($pun_config['o_smilies'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[smilies]" value="0"<?php if ($pun_config['o_smilies'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   368
										<span>Convert smilies to small icons.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   369
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   370
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   371
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   372
									<th scope="row">Smilies in signatures</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   373
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   374
										<input type="radio" name="form[smilies_sig]" value="1"<?php if ($pun_config['o_smilies_sig'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[smilies_sig]" value="0"<?php if ($pun_config['o_smilies_sig'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   375
										<span>Convert smilies to small icons in user signatures.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   376
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   377
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   378
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   379
									<th scope="row">Make clickable links</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   380
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   381
										<input type="radio" name="form[make_links]" value="1"<?php if ($pun_config['o_make_links'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[make_links]" value="0"<?php if ($pun_config['o_make_links'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   382
										<span>When enabled, PunBB will automatically detect any URL's in posts and make them clickable hyperlinks.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   383
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   384
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   385
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   386
									<th scope="row">Topic review</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   387
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   388
										<input type="text" name="form[topic_review]" size="3" maxlength="3" value="<?php echo $pun_config['o_topic_review'] ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   389
										<span>Maximum number of posts to display when posting (newest first). 0 to disable.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   390
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   391
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   392
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   393
									<th scope="row">Topics per page default</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   394
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   395
										<input type="text" name="form[disp_topics_default]" size="3" maxlength="3" value="<?php echo $pun_config['o_disp_topics_default'] ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   396
										<span>The default number of topics to display per page in a forum. Users can personalize this setting.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   397
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   398
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   399
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   400
									<th scope="row">Posts per page default</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   401
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   402
										<input type="text" name="form[disp_posts_default]" size="3" maxlength="3" value="<?php echo $pun_config['o_disp_posts_default'] ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   403
										<span>The default number of posts to display per page in a topic. Users can personalize this setting.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   404
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   405
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   406
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   407
									<th scope="row">Indent size</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   408
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   409
										<input type="text" name="form[indent_num_spaces]" size="3" maxlength="3" value="<?php echo $pun_config['o_indent_num_spaces'] ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   410
										<span>If set to 8, a regular tab will be used when displaying text within the [code][/code] tag. Otherwise this many spaces will be used to indent the text.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   411
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   412
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   413
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   414
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   415
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   416
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   417
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   418
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   419
						<legend>Features</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   420
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   421
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   422
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   423
									<th scope="row">Quick post</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   424
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   425
										<input type="radio" name="form[quickpost]" value="1"<?php if ($pun_config['o_quickpost'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[quickpost]" value="0"<?php if ($pun_config['o_quickpost'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   426
										<span>When enabled, PunBB will add a quick post form at the bottom of topics. This way users can post directly from the topic view.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   427
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   428
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   429
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   430
									<th scope="row">Users online</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   431
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   432
										<input type="radio" name="form[users_online]" value="1"<?php if ($pun_config['o_users_online'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[users_online]" value="0"<?php if ($pun_config['o_users_online'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   433
										<span>Display info on the index page about guests and registered users currently browsing the forums.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   434
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   435
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   436
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   437
									<th scope="row"><a name="censoring">Censor words</a></th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   438
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   439
										<input type="radio" name="form[censoring]" value="1"<?php if ($pun_config['o_censoring'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[censoring]" value="0"<?php if ($pun_config['o_censoring'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   440
										<span>Enable this to censor specific words in the forum. See <a href="admin_censoring.php">Censoring</a> for more info.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   441
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   442
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   443
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   444
									<th scope="row"><a name="ranks">User ranks</a></th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   445
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   446
										<input type="radio" name="form[ranks]" value="1"<?php if ($pun_config['o_ranks'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[ranks]" value="0"<?php if ($pun_config['o_ranks'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   447
										<span>Enable this to use user ranks. See <a href="admin_ranks.php">Ranks</a> for more info.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   448
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   449
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   450
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   451
									<th scope="row">User has posted earlier</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   452
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   453
										<input type="radio" name="form[show_dot]" value="1"<?php if ($pun_config['o_show_dot'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[show_dot]" value="0"<?php if ($pun_config['o_show_dot'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   454
										<span>This feature displays a dot in front of topics in viewforum.php in case the currently logged in user has posted in that topic earlier. Disable if you are experiencing high server load.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   455
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   456
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   457
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   458
									<th scope="row">Quick jump</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   459
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   460
										<input type="radio" name="form[quickjump]" value="1"<?php if ($pun_config['o_quickjump'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[quickjump]" value="0"<?php if ($pun_config['o_quickjump'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   461
										<span>Enable the quick jump (jump to forum) drop list.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   462
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   463
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   464
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   465
									<th scope="row">GZip output</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   466
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   467
										<input type="radio" name="form[gzip]" value="1"<?php if ($pun_config['o_gzip'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[gzip]" value="0"<?php if ($pun_config['o_gzip'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   468
										<span>If enabled, PunBB will gzip the output sent to browsers. This will reduce bandwidth usage, but use a little more CPU. This feature requires that PHP is configured with zlib (--with-zlib). Note: If you already have one of the Apache modules mod_gzip or mod_deflate set up to compress PHP scripts, you should disable this feature.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   469
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   470
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   471
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   472
									<th scope="row">Search all forums</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   473
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   474
										<input type="radio" name="form[search_all_forums]" value="1"<?php if ($pun_config['o_search_all_forums'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[search_all_forums]" value="0"<?php if ($pun_config['o_search_all_forums'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   475
										<span>When disabled, searches will only be allowed in one forum at a time. Disable if server load is high due to excessive searching.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   476
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   477
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   478
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   479
									<th scope="row">Additional menu items</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   480
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   481
										<textarea name="form[additional_navlinks]" rows="3" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_additional_navlinks']) ?></textarea>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   482
										<span>By entering HTML hyperlinks into this textbox, any number of items can be added to the navigation menu at the top of all pages. The format for adding new links is X = &lt;a href="URL"&gt;LINK&lt;/a&gt; where X is the position at which the link should be inserted (e.g. 0 to insert at the beginning and 2 to insert after "User list"). Separate entries with a linebreak.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   483
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   484
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   485
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   486
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   487
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   488
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   489
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   490
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   491
						<legend>Reports</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   492
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   493
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   494
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   495
									<th scope="row">Report method</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   496
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   497
										<input type="radio" name="form[report_method]" value="0"<?php if ($pun_config['o_report_method'] == '0') echo ' checked="checked"' ?> />&nbsp;Internal&nbsp;&nbsp;&nbsp;<input type="radio" name="form[report_method]" value="1"<?php if ($pun_config['o_report_method'] == '1') echo ' checked="checked"' ?> />&nbsp;E-mail&nbsp;&nbsp;&nbsp;<input type="radio" name="form[report_method]" value="2"<?php if ($pun_config['o_report_method'] == '2') echo ' checked="checked"' ?> />&nbsp;Both
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   498
										<span>Select the method for handling topic/post reports. You can choose whether topic/post reports should be handled by the internal report system,  e-mailed to the addresses on the mailing list (see below) or both.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   499
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   500
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   501
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   502
									<th scope="row">Report new registrations</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   503
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   504
										<input type="radio" name="form[regs_report]" value="1"<?php if ($pun_config['o_regs_report'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[regs_report]" value="0"<?php if ($pun_config['o_regs_report'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   505
										<span>If enabled, PunBB will notify users on the mailing list (see below) when a new user registers in the forums.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   506
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   507
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   508
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   509
									<th scope="row">Mailing list</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   510
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   511
										<textarea name="form[mailing_list]" rows="5" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_mailing_list']) ?></textarea>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   512
										<span>A comma separated list of subscribers. The people on this list are the recipients of reports.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   513
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   514
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   515
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   516
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   517
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   518
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   519
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   520
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   521
						<legend>Avatars</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   522
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   523
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   524
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   525
									<th scope="row">Use avatars</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   526
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   527
										<input type="radio" name="form[avatars]" value="1"<?php if ($pun_config['o_avatars'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[avatars]" value="0"<?php if ($pun_config['o_avatars'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   528
										<span>When enabled, users will be able to upload an avatar which will be displayed under their title/rank.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   529
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   530
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   531
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   532
									<th scope="row">Upload directory</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   533
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   534
										<input type="text" name="form[avatars_dir]" size="35" maxlength="50" value="<?php echo pun_htmlspecialchars($pun_config['o_avatars_dir']) ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   535
										<span>The upload directory for avatars (relative to the PunBB root directory). PHP must have write permissions to this directory.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   536
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   537
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   538
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   539
									<th scope="row">Max width</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   540
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   541
										<input type="text" name="form[avatars_width]" size="5" maxlength="5" value="<?php echo $pun_config['o_avatars_width'] ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   542
										<span>The maximum allowed width of avatars in pixels (60 is recommended).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   543
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   544
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   545
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   546
									<th scope="row">Max height</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   547
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   548
										<input type="text" name="form[avatars_height]" size="5" maxlength="5" value="<?php echo $pun_config['o_avatars_height'] ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   549
										<span>The maximum allowed height of avatars in pixels (60 is recommended).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   550
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   551
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   552
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   553
									<th scope="row">Max size</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   554
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   555
										<input type="text" name="form[avatars_size]" size="6" maxlength="6" value="<?php echo $pun_config['o_avatars_size'] ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   556
										<span>The maximum allowed size of avatars in bytes (10240 is recommended).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   557
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   558
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   559
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   560
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   561
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   562
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   563
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   564
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   565
						<legend>E-mail</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   566
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   567
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   568
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   569
									<th scope="row">Admin e-mail</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   570
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   571
										<input type="text" name="form[admin_email]" size="50" maxlength="50" value="<?php echo $pun_config['o_admin_email'] ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   572
										<span>The e-mail address of the forum administrator.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   573
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   574
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   575
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   576
									<th scope="row">Webmaster e-mail</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   577
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   578
										<input type="text" name="form[webmaster_email]" size="50" maxlength="50" value="<?php echo $pun_config['o_webmaster_email'] ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   579
										<span>This is the address that all e-mails sent by the forum will be addressed from.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   580
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   581
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   582
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   583
									<th scope="row">Subscriptions</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   584
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   585
										<input type="radio" name="form[subscriptions]" value="1"<?php if ($pun_config['o_subscriptions'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[subscriptions]" value="0"<?php if ($pun_config['o_subscriptions'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   586
										<span>Enable users to subscribe to topics (recieve e-mail when someone replies).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   587
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   588
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   589
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   590
									<th scope="row">SMTP server address</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   591
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   592
										<input type="text" name="form[smtp_host]" size="30" maxlength="100" value="<?php echo pun_htmlspecialchars($pun_config['o_smtp_host']) ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   593
										<span>The address of an external SMTP server to send e-mails with. You can specify a custom port number if the SMTP server doesn't run on the default port 25 (example: mail.myhost.com:3580). Leave blank to use the local mail program.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   594
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   595
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   596
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   597
									<th scope="row">SMTP username</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   598
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   599
										<input type="text" name="form[smtp_user]" size="25" maxlength="50" value="<?php echo pun_htmlspecialchars($pun_config['o_smtp_user']) ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   600
										<span>Username for SMTP server. Only enter a username if it is required by the SMTP server (most servers <strong>do not</strong> require authentication).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   601
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   602
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   603
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   604
									<th scope="row">SMTP password</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   605
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   606
										<input type="text" name="form[smtp_pass]" size="25" maxlength="50" value="<?php echo pun_htmlspecialchars($pun_config['o_smtp_pass']) ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   607
										<span>Password for SMTP server. Only enter a password if it is required by the SMTP server (most servers <strong>do not</strong> require authentication).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   608
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   609
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   610
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   611
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   612
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   613
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   614
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   615
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   616
						<legend>Registration</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   617
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   618
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   619
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   620
									<th scope="row">Allow new registrations</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   621
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   622
										<input type="radio" name="form[regs_allow]" value="1"<?php if ($pun_config['o_regs_allow'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[regs_allow]" value="0"<?php if ($pun_config['o_regs_allow'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   623
										<span>Controls whether this forum accepts new registrations. Disable only under special circumstances.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   624
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   625
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   626
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   627
									<th scope="row">Verify registrations</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   628
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   629
										<input type="radio" name="form[regs_verify]" value="1"<?php if ($pun_config['o_regs_verify'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[regs_verify]" value="0"<?php if ($pun_config['o_regs_verify'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   630
										<span>When enabled, users are e-mailed a random password when they register. They can then log in and change the password in their profile if they see fit. This feature also requires users to verify new e-mail addresses if they choose to change from the one they registered with. This is an effective way of avoiding registration abuse and making sure that all users have "correct" e-mail addresses in their profiles.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   631
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   632
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   633
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   634
									<th scope="row">Use forum rules</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   635
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   636
										<input type="radio" name="form[rules]" value="1"<?php if ($pun_config['o_rules'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[rules]" value="0"<?php if ($pun_config['o_rules'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   637
										<span>When enabled, users must agree to a set of rules when registering (enter text below). The rules will always be available through a link in the navigation table at the top of every page.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   638
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   639
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   640
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   641
									<th scope="row">Rules</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   642
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   643
										<textarea name="form[rules_message]" rows="10" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_rules_message']) ?></textarea>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   644
										<span>Here you can enter any rules or other information that the user must review and accept when registering. If you enabled rules above you have to enter something here, otherwise it will be disabled. This text will not be parsed like regular posts and thus may contain HTML.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   645
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   646
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   647
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   648
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   649
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   650
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   651
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   652
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   653
						<legend>Announcement</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   654
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   655
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   656
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   657
									<th scope="row">Display announcement</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   658
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   659
										<input type="radio" name="form[announcement]" value="1"<?php if ($pun_config['o_announcement'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[announcement]" value="0"<?php if ($pun_config['o_announcement'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   660
										<span>Enable this to display the below message in the forums.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   661
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   662
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   663
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   664
									<th scope="row">Announcement message</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   665
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   666
										<textarea name="form[announcement_message]" rows="5" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_announcement_message']) ?></textarea>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   667
										<span>This text will not be parsed like regular posts and thus may contain HTML.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   668
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   669
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   670
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   671
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   672
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   673
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   674
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   675
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   676
						<legend>Maintenance</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   677
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   678
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   679
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   680
									<th scope="row"><a name="maintenance">Maintenance mode</a></th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   681
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   682
										<input type="radio" name="form[maintenance]" value="1"<?php if ($pun_config['o_maintenance'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[maintenance]" value="0"<?php if ($pun_config['o_maintenance'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   683
										<span>When enabled, the board will only be available to administrators. This should be used if the board needs to taken down temporarily for maintenance. WARNING! Do not log out when the board is in maintenance mode. You will not be able to login again.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   684
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   685
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   686
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   687
									<th scope="row">Maintenance message</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   688
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   689
										<textarea name="form[maintenance_message]" rows="5" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_maintenance_message']) ?></textarea>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   690
										<span>The message that will be displayed to users when the board is in maintenance mode. If left blank a default message will be used. This text will not be parsed like regular posts and thus may contain HTML.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   691
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   692
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   693
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   694
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   695
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   696
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   697
				<p class="submitend"><input type="submit" name="save" value="Save changes" /></p>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   698
			</form>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   699
		</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   700
	</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   701
	<div class="clearer"></div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   702
</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   703
<?php
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   704
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   705
require PUN_ROOT.'footer.php';