diff -r 000000000000 -r f9ffdbd96607 punbb/admin_permissions.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/punbb/admin_permissions.php Wed Jul 11 21:01:48 2007 -0400 @@ -0,0 +1,226 @@ + PUN_ADMIN) + message($lang_common['No permission']); + + +if (isset($_POST['form_sent'])) +{ + confirm_referrer('admin_permissions.php'); + + $form = array_map('intval', $_POST['form']); + + while (list($key, $input) = @each($form)) + { + // Only update values that have changed + if (array_key_exists('p_'.$key, $pun_config) && $pun_config['p_'.$key] != $input) + $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()); + } + + // Regenerate the config cache + require_once PUN_ROOT.'include/cache.php'; + generate_config_cache(); + + redirect('admin_permissions.php', 'Permissions updated. Redirecting …'); +} + + +$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Permissions'; +require PUN_ROOT.'header.php'; +generate_admin_menu('permissions'); + +?> +
+

Permissions

+
+
+

+
+ +
+ Posting +
+ + + + + + + + + + + + + + + + + + + + + +
BBCode + /> Yes    /> No + Allow BBCode in posts (recommended). +
Image tag + /> Yes    /> No + Allow the BBCode [img][/img] tag in posts. +
All caps message + /> Yes    /> No + Allow a message to contain only capital letters. +
All caps subject + /> Yes    /> No + Allow a subject to contain only capital letters. +
Require guest e-mail + /> Yes    /> No + Require guests to supply an e-mail address when posting. +
+
+
+
+
+
+ Signatures +
+ + + + + + + + + + + + + + + + + + + + + +
BBCodes in signatures + /> Yes    /> No + Allow BBCodes in user signatures. +
Image tag in signatures + /> Yes    /> No + Allow the BBCode [img][/img] tag in user signatures (not recommended). +
All caps signature + /> Yes    /> No + Allow a signature to contain only capital letters. +
Maximum signature length + + The maximum number of characters a user signature may contain. +
Maximum signature lines + + The maximum number of lines a user signature may contain. +
+
+
+
+
+
+ Moderators +
+ + + + + + + + + + + + + + + + + +
Edit user profiles + /> Yes    /> No + Allow moderators to edit user profiles. +
Rename users + /> Yes    /> No + Allow moderators to rename users. Other moderators and administrators are excluded. +
Change user passwords + /> Yes    /> No + Allow moderators to change user passwords. Other moderators and administrators are excluded. +
Ban users + /> Yes    /> No + Allow moderators to ban users (and edit/remove current bans). +
+
+
+
+
+
+ Registration +
+ + + + + + + + + +
Allow banned e-mail addresses + /> Yes    /> No + 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). +
Allow duplicate e-mail addresses + /> Yes    /> No + 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. +
+
+
+
+

+
+
+
+
+ +