punbb/admin_options.php
author Dan
Thu, 12 Jul 2007 15:00:35 -0400
changeset 3 c0c445d4a13e
parent 2 a8a21e1c7afa
permissions -rw-r--r--
Got some basic security in there, admin panel works now, and most admin panel forms work (used regex mass search + replace)
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)
3
c0c445d4a13e Got some basic security in there, admin panel works now, and most admin panel forms work (used regex mass search + replace)
Dan
parents: 2
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'] : ''))))
c0c445d4a13e Got some basic security in there, admin panel works now, and most admin panel forms work (used regex mass search + replace)
Dan
parents: 2
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.');
c0c445d4a13e Got some basic security in there, admin panel works now, and most admin panel forms work (used regex mass search + replace)
Dan
parents: 2
diff changeset
    46
  confirm_referrer('admin_options.php');
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    47
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    48
	$form = array_map('trim', $_POST['form']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    49
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    50
	if ($form['board_title'] == '')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    51
		message('You must enter a board title.');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    52
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    53
	// Clean default_lang
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    54
	$form['default_lang'] = preg_replace('#[\.\\\/]#', '', $form['default_lang']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    55
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    56
	require PUN_ROOT.'include/email.php';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    57
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    58
	$form['admin_email'] = strtolower($form['admin_email']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    59
	if (!is_valid_email($form['admin_email']))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    60
		message('The admin e-mail address you entered is invalid.');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    61
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    62
	$form['webmaster_email'] = strtolower($form['webmaster_email']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    63
	if (!is_valid_email($form['webmaster_email']))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    64
		message('The webmaster e-mail address you entered is invalid.');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    65
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    66
	if ($form['mailing_list'] != '')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    67
		$form['mailing_list'] = strtolower(preg_replace('/[\s]/', '', $form['mailing_list']));
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    68
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    69
	// Make sure base_url doesn't end with a slash
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    70
	if (substr($form['base_url'], -1) == '/')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    71
		$form['base_url'] = substr($form['base_url'], 0, -1);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    72
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    73
	// Clean avatars_dir
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    74
	$form['avatars_dir'] = str_replace("\0", '', $form['avatars_dir']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    75
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    76
	// Make sure avatars_dir doesn't end with a slash
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    77
	if (substr($form['avatars_dir'], -1) == '/')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    78
		$form['avatars_dir'] = substr($form['avatars_dir'], 0, -1);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    79
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    80
	if ($form['additional_navlinks'] != '')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    81
		$form['additional_navlinks'] = trim(pun_linebreaks($form['additional_navlinks']));
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    82
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    83
	if ($form['announcement_message'] != '')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    84
		$form['announcement_message'] = pun_linebreaks($form['announcement_message']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    85
	else
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    86
	{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    87
		$form['announcement_message'] = 'Enter your announcement here.';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    88
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    89
		if ($form['announcement'] == '1')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    90
			$form['announcement'] = '0';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    91
	}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    92
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    93
	if ($form['rules_message'] != '')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    94
		$form['rules_message'] = pun_linebreaks($form['rules_message']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    95
	else
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    96
	{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    97
		$form['rules_message'] = 'Enter your rules here.';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    98
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    99
		if ($form['rules'] == '1')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   100
			$form['rules'] = '0';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   101
	}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   102
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   103
	if ($form['maintenance_message'] != '')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   104
		$form['maintenance_message'] = pun_linebreaks($form['maintenance_message']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   105
	else
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   106
	{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   107
		$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
   108
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   109
		if ($form['maintenance'] == '1')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   110
			$form['maintenance'] = '0';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   111
	}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   112
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   113
	$form['timeout_visit'] = intval($form['timeout_visit']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   114
	$form['timeout_online'] = intval($form['timeout_online']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   115
	$form['redirect_delay'] = intval($form['redirect_delay']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   116
	$form['topic_review'] = intval($form['topic_review']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   117
	$form['disp_topics_default'] = intval($form['disp_topics_default']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   118
	$form['disp_posts_default'] = intval($form['disp_posts_default']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   119
	$form['indent_num_spaces'] = intval($form['indent_num_spaces']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   120
	$form['avatars_width'] = intval($form['avatars_width']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   121
	$form['avatars_height'] = intval($form['avatars_height']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   122
	$form['avatars_size'] = intval($form['avatars_size']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   123
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   124
	if ($form['timeout_online'] >= $form['timeout_visit'])
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   125
		message('The value of "Timeout online" must be smaller than the value of "Timeout visit".');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   126
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   127
	while (list($key, $input) = @each($form))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   128
	{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   129
		// Only update values that have changed
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   130
		if (array_key_exists('o_'.$key, $pun_config) && $pun_config['o_'.$key] != $input)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   131
		{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   132
			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
   133
				$value = '\''.$pun_db->escape($input).'\'';
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   134
			else
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   135
				$value = 'NULL';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   136
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
   137
			$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
   138
		}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   139
	}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   140
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   141
	// Regenerate the config cache
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   142
	require_once PUN_ROOT.'include/cache.php';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   143
	generate_config_cache();
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   144
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
   145
	pun_redirect('admin_options.php', 'Options updated. Redirecting &hellip;');
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   146
}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   147
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   148
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   149
$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Options';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   150
$form_name = 'update_options';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   151
require PUN_ROOT.'header.php';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   152
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   153
generate_admin_menu('options');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   154
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   155
?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   156
	<div class="blockform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   157
		<h2><span>Options</span></h2>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   158
		<div class="box">
3
c0c445d4a13e Got some basic security in there, admin panel works now, and most admin panel forms work (used regex mass search + replace)
Dan
parents: 2
diff changeset
   159
			<form method="post" action="<?php echo makeUrlNS('Special', 'Forum/Admin_Options', 'action=foo', true); ?>">
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   160
				<p class="submittop"><input type="submit" name="save" value="Save changes" /></p>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   161
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   162
				<input type="hidden" name="form_sent" value="1" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   163
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   164
						<legend>Essentials</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   165
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   166
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   167
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   168
									<th scope="row">Board title</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   169
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   170
										<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
   171
										<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
   172
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   173
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   174
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   175
									<th scope="row">Board description</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   176
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   177
										<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
   178
										<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
   179
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   180
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   181
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   182
									<th scope="row">Base URL</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   183
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   184
										<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
   185
										<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
   186
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   187
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   188
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   189
									<th scope="row">Server timezone</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   190
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   191
										<select name="form[server_timezone]">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   192
											<option value="-12"<?php if ($pun_config['o_server_timezone'] == -12 ) echo ' selected="selected"' ?>>-12</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   193
											<option value="-11"<?php if ($pun_config['o_server_timezone'] == -11) echo ' selected="selected"' ?>>-11</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   194
											<option value="-10"<?php if ($pun_config['o_server_timezone'] == -10) echo ' selected="selected"' ?>>-10</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   195
											<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
   196
											<option value="-9"<?php if ($pun_config['o_server_timezone'] == -9 ) echo ' selected="selected"' ?>>-09</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   197
											<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
   198
											<option value="-8"<?php if ($pun_config['o_server_timezone'] == -8 ) echo ' selected="selected"' ?>>-08 PST</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   199
											<option value="-7"<?php if ($pun_config['o_server_timezone'] == -7 ) echo ' selected="selected"' ?>>-07 MST</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   200
											<option value="-6"<?php if ($pun_config['o_server_timezone'] == -6 ) echo ' selected="selected"' ?>>-06 CST</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   201
											<option value="-5"<?php if ($pun_config['o_server_timezone'] == -5 ) echo ' selected="selected"' ?>>-05 EST</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   202
											<option value="-4"<?php if ($pun_config['o_server_timezone'] == -4 ) echo ' selected="selected"' ?>>-04 AST</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   203
											<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
   204
											<option value="-3"<?php if ($pun_config['o_server_timezone'] == -3 ) echo ' selected="selected"' ?>>-03 ADT</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   205
											<option value="-2"<?php if ($pun_config['o_server_timezone'] == -2 ) echo ' selected="selected"' ?>>-02</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   206
											<option value="-1"<?php if ($pun_config['o_server_timezone'] == -1) echo ' selected="selected"' ?>>-01</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   207
											<option value="0"<?php if ($pun_config['o_server_timezone'] == 0) echo ' selected="selected"' ?>>00 GMT</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   208
											<option value="1"<?php if ($pun_config['o_server_timezone'] == 1) echo ' selected="selected"' ?>>+01 CET</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   209
											<option value="2"<?php if ($pun_config['o_server_timezone'] == 2 ) echo ' selected="selected"' ?>>+02</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   210
											<option value="3"<?php if ($pun_config['o_server_timezone'] == 3 ) echo ' selected="selected"' ?>>+03</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   211
											<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
   212
											<option value="4"<?php if ($pun_config['o_server_timezone'] == 4 ) echo ' selected="selected"' ?>>+04</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   213
											<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
   214
											<option value="5"<?php if ($pun_config['o_server_timezone'] == 5 ) echo ' selected="selected"' ?>>+05</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   215
											<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
   216
											<option value="6"<?php if ($pun_config['o_server_timezone'] == 6 ) echo ' selected="selected"' ?>>+06</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   217
											<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
   218
											<option value="7"<?php if ($pun_config['o_server_timezone'] == 7 ) echo ' selected="selected"' ?>>+07</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   219
											<option value="8"<?php if ($pun_config['o_server_timezone'] == 8 ) echo ' selected="selected"' ?>>+08</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   220
											<option value="9"<?php if ($pun_config['o_server_timezone'] == 9 ) echo ' selected="selected"' ?>>+09</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   221
											<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
   222
											<option value="10"<?php if ($pun_config['o_server_timezone'] == 10) echo ' selected="selected"' ?>>+10</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   223
											<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
   224
											<option value="11"<?php if ($pun_config['o_server_timezone'] == 11) echo ' selected="selected"' ?>>+11</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   225
											<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
   226
											<option value="12"<?php if ($pun_config['o_server_timezone'] == 12 ) echo ' selected="selected"' ?>>+12</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   227
											<option value="13"<?php if ($pun_config['o_server_timezone'] == 13 ) echo ' selected="selected"' ?>>+13</option>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   228
										</select>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   229
										<span>The timezone of the server where PunBB is installed.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   230
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   231
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   232
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   233
									<th scope="row">Default language</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   234
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   235
										<select name="form[default_lang]">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   236
<?php
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   237
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   238
		$languages = array();
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   239
		$d = dir(PUN_ROOT.'lang');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   240
		while (($entry = $d->read()) !== false)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   241
		{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   242
			if ($entry != '.' && $entry != '..' && is_dir(PUN_ROOT.'lang/'.$entry) && file_exists(PUN_ROOT.'lang/'.$entry.'/common.php'))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   243
				$languages[] = $entry;
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   244
		}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   245
		$d->close();
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   246
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   247
		@natsort($languages);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   248
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   249
		while (list(, $temp) = @each($languages))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   250
		{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   251
			if ($pun_config['o_default_lang'] == $temp)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   252
				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
   253
			else
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   254
				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
   255
		}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   256
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   257
?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   258
										</select>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   259
										<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
   260
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   261
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   262
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   263
									<th scope="row">Default style</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   264
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   265
										<select name="form[default_style]">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   266
<?php
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   267
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   268
		$styles = array();
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   269
		$d = dir(PUN_ROOT.'style');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   270
		while (($entry = $d->read()) !== false)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   271
		{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   272
			if (substr($entry, strlen($entry)-4) == '.css')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   273
				$styles[] = substr($entry, 0, strlen($entry)-4);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   274
		}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   275
		$d->close();
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   276
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   277
		@natsort($styles);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   278
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   279
		while (list(, $temp) = @each($styles))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   280
		{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   281
			if ($pun_config['o_default_style'] == $temp)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   282
				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
   283
			else
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   284
				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
   285
		}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   286
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   287
?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   288
										</select>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   289
										<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
   290
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   291
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   292
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   293
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   294
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   295
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   296
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   297
						<legend>Time and timeouts</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   298
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   299
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   300
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   301
									<th scope="row">Time format</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   302
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   303
										<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
   304
										<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
   305
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   306
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   307
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   308
									<th scope="row">Date format</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   309
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   310
										<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
   311
										<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
   312
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   313
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   314
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   315
									<th scope="row">Visit timeout</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   316
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   317
										<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
   318
										<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
   319
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   320
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   321
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   322
									<th scope="row">Online timeout</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   323
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   324
										<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
   325
										<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
   326
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   327
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   328
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   329
									<th scope="row">Redirect time</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   330
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   331
										<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
   332
										<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
   333
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   334
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   335
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   336
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   337
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   338
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   339
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   340
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   341
						<legend>Display</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   342
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   343
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   344
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   345
									<th scope="row">Version number</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   346
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   347
										<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
   348
										<span>Show version number in footer.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   349
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   350
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   351
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   352
									<th scope="row">User info in posts</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   353
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   354
										<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
   355
										<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
   356
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   357
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   358
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   359
									<th scope="row">User post count</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   360
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   361
										<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
   362
										<span>Show the number of posts a user has made (affects topic view, profile and userlist).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   363
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   364
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   365
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   366
									<th scope="row">Smilies</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   367
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   368
										<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
   369
										<span>Convert smilies to small icons.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   370
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   371
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   372
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   373
									<th scope="row">Smilies in signatures</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   374
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   375
										<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
   376
										<span>Convert smilies to small icons in user signatures.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   377
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   378
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   379
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   380
									<th scope="row">Make clickable links</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   381
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   382
										<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
   383
										<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
   384
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   385
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   386
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   387
									<th scope="row">Topic review</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   388
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   389
										<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
   390
										<span>Maximum number of posts to display when posting (newest first). 0 to disable.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   391
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   392
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   393
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   394
									<th scope="row">Topics per page default</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   395
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   396
										<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
   397
										<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
   398
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   399
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   400
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   401
									<th scope="row">Posts per page default</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   402
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   403
										<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
   404
										<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
   405
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   406
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   407
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   408
									<th scope="row">Indent size</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   409
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   410
										<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
   411
										<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
   412
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   413
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   414
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   415
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   416
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   417
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   418
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   419
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   420
						<legend>Features</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   421
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   422
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   423
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   424
									<th scope="row">Quick post</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   425
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   426
										<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
   427
										<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
   428
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   429
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   430
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   431
									<th scope="row">Users online</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   432
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   433
										<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
   434
										<span>Display info on the index page about guests and registered users currently browsing the forums.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   435
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   436
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   437
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   438
									<th scope="row"><a name="censoring">Censor words</a></th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   439
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   440
										<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
   441
										<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
   442
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   443
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   444
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   445
									<th scope="row"><a name="ranks">User ranks</a></th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   446
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   447
										<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
   448
										<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
   449
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   450
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   451
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   452
									<th scope="row">User has posted earlier</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   453
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   454
										<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
   455
										<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
   456
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   457
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   458
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   459
									<th scope="row">Quick jump</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   460
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   461
										<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
   462
										<span>Enable the quick jump (jump to forum) drop list.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   463
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   464
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   465
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   466
									<th scope="row">GZip output</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   467
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   468
										<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
   469
										<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
   470
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   471
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   472
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   473
									<th scope="row">Search all forums</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   474
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   475
										<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
   476
										<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
   477
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   478
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   479
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   480
									<th scope="row">Additional menu items</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   481
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   482
										<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
   483
										<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
   484
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   485
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   486
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   487
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   488
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   489
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   490
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   491
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   492
						<legend>Reports</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   493
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   494
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   495
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   496
									<th scope="row">Report method</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   497
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   498
										<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
   499
										<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
   500
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   501
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   502
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   503
									<th scope="row">Report new registrations</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   504
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   505
										<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
   506
										<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
   507
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   508
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   509
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   510
									<th scope="row">Mailing list</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   511
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   512
										<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
   513
										<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
   514
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   515
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   516
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   517
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   518
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   519
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   520
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   521
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   522
						<legend>Avatars</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   523
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   524
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   525
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   526
									<th scope="row">Use avatars</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   527
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   528
										<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
   529
										<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
   530
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   531
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   532
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   533
									<th scope="row">Upload directory</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   534
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   535
										<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
   536
										<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
   537
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   538
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   539
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   540
									<th scope="row">Max width</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   541
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   542
										<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
   543
										<span>The maximum allowed width of avatars in pixels (60 is recommended).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   544
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   545
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   546
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   547
									<th scope="row">Max height</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   548
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   549
										<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
   550
										<span>The maximum allowed height of avatars in pixels (60 is recommended).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   551
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   552
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   553
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   554
									<th scope="row">Max size</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   555
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   556
										<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
   557
										<span>The maximum allowed size of avatars in bytes (10240 is recommended).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   558
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   559
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   560
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   561
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   562
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   563
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   564
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   565
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   566
						<legend>E-mail</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   567
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   568
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   569
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   570
									<th scope="row">Admin e-mail</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   571
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   572
										<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
   573
										<span>The e-mail address of the forum administrator.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   574
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   575
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   576
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   577
									<th scope="row">Webmaster e-mail</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   578
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   579
										<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
   580
										<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
   581
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   582
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   583
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   584
									<th scope="row">Subscriptions</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   585
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   586
										<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
   587
										<span>Enable users to subscribe to topics (recieve e-mail when someone replies).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   588
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   589
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   590
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   591
									<th scope="row">SMTP server address</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   592
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   593
										<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
   594
										<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
   595
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   596
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   597
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   598
									<th scope="row">SMTP username</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   599
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   600
										<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
   601
										<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
   602
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   603
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   604
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   605
									<th scope="row">SMTP password</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   606
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   607
										<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
   608
										<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
   609
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   610
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   611
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   612
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   613
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   614
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   615
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   616
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   617
						<legend>Registration</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   618
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   619
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   620
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   621
									<th scope="row">Allow new registrations</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   622
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   623
										<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
   624
										<span>Controls whether this forum accepts new registrations. Disable only under special circumstances.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   625
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   626
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   627
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   628
									<th scope="row">Verify registrations</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   629
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   630
										<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
   631
										<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
   632
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   633
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   634
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   635
									<th scope="row">Use forum rules</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   636
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   637
										<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
   638
										<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
   639
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   640
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   641
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   642
									<th scope="row">Rules</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   643
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   644
										<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
   645
										<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
   646
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   647
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   648
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   649
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   650
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   651
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   652
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   653
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   654
						<legend>Announcement</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   655
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   656
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   657
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   658
									<th scope="row">Display announcement</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   659
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   660
										<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
   661
										<span>Enable this to display the below message in the forums.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   662
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   663
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   664
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   665
									<th scope="row">Announcement message</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   666
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   667
										<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
   668
										<span>This text will not be parsed like regular posts and thus may contain HTML.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   669
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   670
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   671
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   672
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   673
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   674
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   675
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   676
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   677
						<legend>Maintenance</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   678
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   679
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   680
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   681
									<th scope="row"><a name="maintenance">Maintenance mode</a></th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   682
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   683
										<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
   684
										<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
   685
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   686
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   687
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   688
									<th scope="row">Maintenance message</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   689
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   690
										<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
   691
										<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
   692
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   693
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   694
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   695
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   696
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   697
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   698
				<p class="submitend"><input type="submit" name="save" value="Save changes" /></p>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   699
			</form>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   700
		</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   701
	</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   702
	<div class="clearer"></div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   703
</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   704
<?php
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   705
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   706
require PUN_ROOT.'footer.php';