punbb/admin_permissions.php
author Dan
Wed, 11 Jul 2007 21:01:48 -0400
changeset 0 f9ffdbd96607
child 2 a8a21e1c7afa
permissions -rw-r--r--
Initial population
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
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    29
define('PUN_ROOT', './');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    30
require PUN_ROOT.'include/common.php';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    31
require PUN_ROOT.'include/common_admin.php';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    32
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    33
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    34
if ($pun_user['g_id'] > PUN_ADMIN)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    35
	message($lang_common['No permission']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    36
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    37
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    38
if (isset($_POST['form_sent']))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    39
{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    40
	confirm_referrer('admin_permissions.php');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    41
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    42
	$form = array_map('intval', $_POST['form']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    43
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    44
	while (list($key, $input) = @each($form))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    45
	{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    46
		// Only update values that have changed
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    47
		if (array_key_exists('p_'.$key, $pun_config) && $pun_config['p_'.$key] != $input)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    48
			$db->query('UPDATE '.$db->prefix.'config SET conf_value='.$input.' WHERE conf_name=\'p_'.$db->escape($key).'\'') or error('Unable to update board config', __FILE__, __LINE__, $db->error());
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    49
	}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    50
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    51
	// Regenerate the config cache
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    52
	require_once PUN_ROOT.'include/cache.php';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    53
	generate_config_cache();
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    54
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    55
	redirect('admin_permissions.php', 'Permissions updated. Redirecting &hellip;');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    56
}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    57
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    58
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    59
$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Permissions';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    60
require PUN_ROOT.'header.php';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    61
generate_admin_menu('permissions');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    62
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    63
?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    64
	<div class="blockform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    65
		<h2><span>Permissions</span></h2>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    66
		<div class="box">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    67
			<form method="post" action="admin_permissions.php">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    68
				<p class="submittop"><input type="submit" name="save" value="Save changes" /></p>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    69
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    70
				<input type="hidden" name="form_sent" value="1" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    71
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    72
						<legend>Posting</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    73
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    74
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    75
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    76
									<th scope="row">BBCode</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    77
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    78
										<input type="radio" name="form[message_bbcode]" value="1"<?php if ($pun_config['p_message_bbcode'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[message_bbcode]" value="0"<?php if ($pun_config['p_message_bbcode'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    79
										<span>Allow BBCode in posts (recommended).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    80
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    81
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    82
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    83
									<th scope="row">Image tag</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    84
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    85
										<input type="radio" name="form[message_img_tag]" value="1"<?php if ($pun_config['p_message_img_tag'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[message_img_tag]" value="0"<?php if ($pun_config['p_message_img_tag'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    86
										<span>Allow the BBCode [img][/img] tag in posts.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    87
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    88
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    89
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    90
									<th scope="row">All caps message</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    91
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    92
										<input type="radio" name="form[message_all_caps]" value="1"<?php if ($pun_config['p_message_all_caps'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[message_all_caps]" value="0"<?php if ($pun_config['p_message_all_caps'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    93
										<span>Allow a message to contain only capital letters.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    94
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    95
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    96
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    97
									<th scope="row">All caps subject</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    98
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    99
										<input type="radio" name="form[subject_all_caps]" value="1"<?php if ($pun_config['p_subject_all_caps'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[subject_all_caps]" value="0"<?php if ($pun_config['p_subject_all_caps'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   100
										<span>Allow a subject to contain only capital letters.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   101
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   102
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   103
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   104
									<th scope="row">Require guest e-mail</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   105
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   106
										<input type="radio" name="form[force_guest_email]" value="1"<?php if ($pun_config['p_force_guest_email'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[force_guest_email]" value="0"<?php if ($pun_config['p_force_guest_email'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   107
										<span>Require guests to supply an e-mail address when posting.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   108
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   109
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   110
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   111
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   112
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   113
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   114
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   115
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   116
						<legend>Signatures</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   117
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   118
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   119
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   120
									<th scope="row">BBCodes in signatures</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   121
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   122
										<input type="radio" name="form[sig_bbcode]" value="1"<?php if ($pun_config['p_sig_bbcode'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[sig_bbcode]" value="0"<?php if ($pun_config['p_sig_bbcode'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   123
										<span>Allow BBCodes in user signatures.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   124
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   125
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   126
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   127
									<th scope="row">Image tag in signatures</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   128
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   129
										<input type="radio" name="form[sig_img_tag]" value="1"<?php if ($pun_config['p_sig_img_tag'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[sig_img_tag]" value="0"<?php if ($pun_config['p_sig_img_tag'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   130
										<span>Allow the BBCode [img][/img] tag in user signatures (not recommended).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   131
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   132
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   133
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   134
									<th scope="row">All caps signature</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   135
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   136
										<input type="radio" name="form[sig_all_caps]" value="1"<?php if ($pun_config['p_sig_all_caps'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[sig_all_caps]" value="0"<?php if ($pun_config['p_sig_all_caps'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   137
										<span>Allow a signature to contain only capital letters.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   138
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   139
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   140
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   141
									<th scope="row">Maximum signature length</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   142
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   143
										<input type="text" name="form[sig_length]" size="5" maxlength="5" value="<?php echo $pun_config['p_sig_length'] ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   144
										<span>The maximum number of characters a user signature may contain.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   145
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   146
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   147
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   148
									<th scope="row">Maximum signature lines</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   149
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   150
										<input type="text" name="form[sig_lines]" size="3" maxlength="3" value="<?php echo $pun_config['p_sig_lines'] ?>" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   151
										<span>The maximum number of lines a user signature may contain.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   152
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   153
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   154
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   155
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   156
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   157
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   158
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   159
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   160
						<legend>Moderators</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   161
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   162
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   163
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   164
									<th scope="row">Edit user profiles</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   165
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   166
										<input type="radio" name="form[mod_edit_users]" value="1"<?php if ($pun_config['p_mod_edit_users'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[mod_edit_users]" value="0"<?php if ($pun_config['p_mod_edit_users'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   167
										<span>Allow moderators to edit user profiles.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   168
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   169
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   170
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   171
									<th scope="row">Rename users</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   172
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   173
										<input type="radio" name="form[mod_rename_users]" value="1"<?php if ($pun_config['p_mod_rename_users'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[mod_rename_users]" value="0"<?php if ($pun_config['p_mod_rename_users'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   174
										<span>Allow moderators to rename users. Other moderators and administrators are excluded.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   175
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   176
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   177
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   178
									<th scope="row">Change user passwords</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   179
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   180
										<input type="radio" name="form[mod_change_passwords]" value="1"<?php if ($pun_config['p_mod_change_passwords'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[mod_change_passwords]" value="0"<?php if ($pun_config['p_mod_change_passwords'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   181
										<span>Allow moderators to change user passwords. Other moderators and administrators are excluded.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   182
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   183
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   184
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   185
									<th scope="row">Ban users</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   186
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   187
										<input type="radio" name="form[mod_ban_users]" value="1"<?php if ($pun_config['p_mod_ban_users'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[mod_ban_users]" value="0"<?php if ($pun_config['p_mod_ban_users'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   188
										<span>Allow moderators to ban users (and edit/remove current bans).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   189
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   190
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   191
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   192
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   193
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   194
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   195
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   196
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   197
						<legend>Registration</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   198
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   199
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   200
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   201
									<th scope="row">Allow banned e-mail addresses</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   202
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   203
										<input type="radio" name="form[allow_banned_email]" value="1"<?php if ($pun_config['p_allow_banned_email'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[allow_banned_email]" value="0"<?php if ($pun_config['p_allow_banned_email'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   204
										<span>Allow users to register with or change to a banned e-mail address/domain. If left at it's default setting (yes) this action will be allowed, but an alert e-mail will be sent to the mailing list (an effective way of detecting multiple registrations).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   205
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   206
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   207
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   208
									<th scope="row">Allow duplicate e-mail addresses</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   209
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   210
										<input type="radio" name="form[allow_dupe_email]" value="1"<?php if ($pun_config['p_allow_dupe_email'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Yes</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[allow_dupe_email]" value="0"<?php if ($pun_config['p_allow_dupe_email'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>No</strong>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   211
										<span>Controls whether users should be allowed to register with an e-mail address that another user already has. If allowed, an alert e-mail will be sent to the mailing list if a duplicate is detected.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   212
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   213
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   214
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   215
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   216
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   217
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   218
				<p class="submitend"><input type="submit" name="save" value="Save changes" /></p>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   219
			</form>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   220
		</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   221
	</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   222
	<div class="clearer"></div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   223
</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   224
<?php
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   225
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   226
require PUN_ROOT.'footer.php';