punbb/admin_permissions.php
author Dan
Thu, 12 Jul 2007 01:04:01 -0400
changeset 2 a8a21e1c7afa
parent 0 f9ffdbd96607
permissions -rw-r--r--
Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     1
<?php
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     2
/***********************************************************************
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     3
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     4
  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     5
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     6
  This file is part of PunBB.
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     7
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     8
  PunBB is free software; you can redistribute it and/or modify it
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     9
  under the terms of the GNU General Public License as published
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    10
  by the Free Software Foundation; either version 2 of the License,
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    11
  or (at your option) any later version.
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    12
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    13
  PunBB is distributed in the hope that it will be useful, but
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    14
  WITHOUT ANY WARRANTY; without even the implied warranty of
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    15
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    16
  GNU General Public License for more details.
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    17
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    18
  You should have received a copy of the GNU General Public License
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    19
  along with this program; if not, write to the Free Software
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    20
  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    21
  MA  02111-1307  USA
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    22
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    23
************************************************************************/
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    24
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    25
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    26
// Tell header.php to use the admin template
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    27
define('PUN_ADMIN_CONSOLE', 1);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    28
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    29
//define('PUN_ROOT', './');
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    30
//require PUN_ROOT.'include/common.php';
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    31
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    32
global $pun_db, $pun_user, $pun_config, $lang_common;
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    33
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    34
require PUN_ROOT.'include/common_admin.php';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    35
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    36
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    37
if ($pun_user['g_id'] < PUN_ADMIN)
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    38
	message($lang_common['No permission']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    39
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    40
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    41
if (isset($_POST['form_sent']))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    42
{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    43
	confirm_referrer('admin_permissions.php');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    44
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    45
	$form = array_map('intval', $_POST['form']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    46
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    47
	while (list($key, $input) = @each($form))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    48
	{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    49
		// Only update values that have changed
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    50
		if (array_key_exists('p_'.$key, $pun_config) && $pun_config['p_'.$key] != $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
    51
			$pun_db->query('UPDATE '.$pun_db->prefix.'config SET conf_value='.$input.' WHERE conf_name=\'p_'.$pun_db->escape($key).'\'') or error('Unable to update board config', __FILE__, __LINE__, $pun_db->error());
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    52
	}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    53
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    54
	// Regenerate the config cache
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    55
	require_once PUN_ROOT.'include/cache.php';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    56
	generate_config_cache();
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    57
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
    58
	pun_redirect('admin_permissions.php', 'Permissions updated. Redirecting &hellip;');
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    59
}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    60
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    61
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    62
$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Permissions';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    63
require PUN_ROOT.'header.php';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    64
generate_admin_menu('permissions');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    65
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    66
?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    67
	<div class="blockform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    68
		<h2><span>Permissions</span></h2>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    69
		<div class="box">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    70
			<form method="post" action="admin_permissions.php">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    71
				<p class="submittop"><input type="submit" name="save" value="Save changes" /></p>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    72
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    73
				<input type="hidden" name="form_sent" value="1" />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    74
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    75
						<legend>Posting</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    76
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    77
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    78
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    79
									<th scope="row">BBCode</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    80
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    81
										<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
    82
										<span>Allow BBCode in posts (recommended).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    83
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    84
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    85
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    86
									<th scope="row">Image tag</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    87
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    88
										<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
    89
										<span>Allow the BBCode [img][/img] tag in posts.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    90
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    91
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    92
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    93
									<th scope="row">All caps message</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    94
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    95
										<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
    96
										<span>Allow a message to contain only capital letters.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    97
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    98
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    99
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   100
									<th scope="row">All caps subject</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   101
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   102
										<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
   103
										<span>Allow a subject to contain only capital letters.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   104
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   105
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   106
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   107
									<th scope="row">Require guest e-mail</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   108
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   109
										<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
   110
										<span>Require guests to supply an e-mail address when posting.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   111
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   112
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   113
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   114
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   115
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   116
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   117
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   118
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   119
						<legend>Signatures</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   120
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   121
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   122
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   123
									<th scope="row">BBCodes in signatures</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   124
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   125
										<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
   126
										<span>Allow BBCodes in user signatures.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   127
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   128
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   129
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   130
									<th scope="row">Image tag in signatures</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   131
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   132
										<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
   133
										<span>Allow the BBCode [img][/img] tag in user signatures (not recommended).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   134
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   135
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   136
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   137
									<th scope="row">All caps signature</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   138
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   139
										<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
   140
										<span>Allow a signature to contain only capital letters.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   141
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   142
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   143
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   144
									<th scope="row">Maximum signature length</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   145
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   146
										<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
   147
										<span>The maximum number of characters a user signature may contain.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   148
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   149
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   150
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   151
									<th scope="row">Maximum signature lines</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   152
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   153
										<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
   154
										<span>The maximum number of lines a user signature may contain.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   155
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   156
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   157
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   158
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   159
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   160
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   161
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   162
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   163
						<legend>Moderators</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   164
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   165
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   166
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   167
									<th scope="row">Edit user profiles</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   168
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   169
										<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
   170
										<span>Allow moderators to edit user profiles.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   171
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   172
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   173
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   174
									<th scope="row">Rename users</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   175
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   176
										<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
   177
										<span>Allow moderators to rename users. Other moderators and administrators are excluded.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   178
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   179
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   180
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   181
									<th scope="row">Change user passwords</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   182
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   183
										<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
   184
										<span>Allow moderators to change user passwords. Other moderators and administrators are excluded.</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   185
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   186
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   187
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   188
									<th scope="row">Ban users</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   189
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   190
										<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
   191
										<span>Allow moderators to ban users (and edit/remove current bans).</span>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   192
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   193
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   194
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   195
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   196
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   197
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   198
				<div class="inform">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   199
					<fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   200
						<legend>Registration</legend>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   201
						<div class="infldset">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   202
							<table class="aligntop" cellspacing="0">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   203
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   204
									<th scope="row">Allow banned e-mail addresses</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   205
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   206
										<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
   207
										<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
   208
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   209
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   210
								<tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   211
									<th scope="row">Allow duplicate e-mail addresses</th>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   212
									<td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   213
										<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
   214
										<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
   215
									</td>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   216
								</tr>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   217
							</table>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   218
						</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   219
					</fieldset>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   220
				</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   221
				<p class="submitend"><input type="submit" name="save" value="Save changes" /></p>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   222
			</form>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   223
		</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   224
	</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   225
	<div class="clearer"></div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   226
</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   227
<?php
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   228
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   229
require PUN_ROOT.'footer.php';