From da775f2286c8d8b2003e2bd223c8bae8d7cfc1dc Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Fri, 11 Apr 2003 16:18:58 +0000 Subject: [PATCH] hehehe hoho git-svn-id: file:///svn/phpbb/trunk@3815 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/adm/admin_permissions.php | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/phpBB/adm/admin_permissions.php b/phpBB/adm/admin_permissions.php index e4750c4a0f..4f5187c406 100644 --- a/phpBB/adm/admin_permissions.php +++ b/phpBB/adm/admin_permissions.php @@ -62,22 +62,17 @@ $auth_setting = (isset($_REQUEST['setting'])) ? intval($_REQUEST['setting']) : ' // // 'ug_type' is either user or groups used mainly for forum/admin/mod permissions // 'ug_data' contains the list of usernames, user_id's or group_ids for the 'ug_type' +// 'forum_id' contains the list of forums, 0 is used for "All forums", must be an array $ug_type = (isset($_REQUEST['ug_type'])) ? htmlspecialchars($_REQUEST['ug_type']) : ''; $ug_data = (isset($_POST['ug_data'])) ? $_POST['ug_data'] : ''; +$forum_id = (isset($_REQUEST['f'])) ? ((!is_array($_REQUEST['f'])) ? array(intval($_REQUEST['f'])) : array_filter($_REQUEST['f'], 'int')) : array(0); + -// Define some vars -$forum_id = 0; -$forum_sql = ''; -if (isset($_REQUEST['f'])) -{ - $forum_id = intval($_REQUEST['f']); - $forum_sql = " WHERE forum_id = $forum_id"; -} $username = (isset($_REQUEST['username'])) ? $_REQUEST['username'] : ''; @@ -461,16 +456,16 @@ page_header($l_title); Will set options in:
- - +
  - /> + /> - /> + /> - /> + />