From 8c31649706cf4d01c82f1e1b72d806f37359d670 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 21 Jan 2003 14:15:48 +0000 Subject: require_once updates git-svn-id: file:///svn/phpbb/trunk@3340 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_users.php | 53 +++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 28 deletions(-) (limited to 'phpBB/admin/admin_users.php') diff --git a/phpBB/admin/admin_users.php b/phpBB/admin/admin_users.php index 772b98f04d..5ab1309493 100644 --- a/phpBB/admin/admin_users.php +++ b/phpBB/admin/admin_users.php @@ -36,7 +36,7 @@ define('IN_PHPBB', 1); $phpbb_root_path = '../'; require($phpbb_root_path . 'extension.inc'); require('pagestart.' . $phpEx); -require($phpbb_root_path . 'includes/functions_admin.'.$phpEx); +require_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx); // Set mode $mode = (isset($_REQUEST['mode'])) ? $_REQUEST['mode'] : 'main'; @@ -117,18 +117,15 @@ if (isset($_POST['username']) || isset($_GET['u']) || isset($_POST['u'])) Main | Profile | Preferences | Avatar | Permissions - - - - +?> + +
lang[$mode]; ?> -
@@ -212,37 +209,37 @@ if (isset($_POST['username']) || isset($_GET['u']) || isset($_POST['u'])) ?>
Username:
Click profile to edit
[ Ban ]
+ + + 'Forum', - 'a' => 'Administrator', - 'm' => 'Moderator', - 'u' => 'User', - ); foreach ($global as $type => $auth_ary) { -?> - - - - $allow) - { - if ($option != $type .'_') + foreach ($auth_ary as $option => $allow) { - $row_class = ($row_class == 'row1') ? 'row2' : 'row1'; + if ($option != $type .'_') + { + $row_class = ($row_class == 'row1') ? 'row2' : 'row1'; - $l_can_cell = (!empty($user->lang['acl_' . $option])) ? $user->lang['acl_' . $option] : ucfirst(preg_replace('#.*?_#', '', $option)); + $l_can_cell = (!empty($user->lang['acl_' . $option])) ? $user->lang['acl_' . $option] : ucfirst(preg_replace('#.*?_#', '', $option)); - $allow_type = ($allow == ACL_ALLOW) ? ' checked="checked"' : ''; - $deny_type = ($allow == ACL_DENY) ? ' checked="checked"' : ''; + $allow_type = ($allow == ACL_ALLOW) ? ' checked="checked"' : ''; + $deny_type = ($allow == ACL_DENY) ? ' checked="checked"' : ''; ?> @@ -250,8 +247,8 @@ if (isset($_POST['username']) || isset($_GET['u']) || isset($_POST['u'])) -- cgit v1.2.1
Select permission set:  
 lang['Option']; ?>   lang['Allow']; ?>   lang['Deny']; ?> 
/>