aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_disallow.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-02-18 13:54:12 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-02-18 13:54:12 +0000
commit26a6d215d0897afa82eea9b0cc0fca79d4544da5 (patch)
tree50645d56ce20cb6fa5e18a2eb1036deba65a1068 /phpBB/includes/acp/acp_disallow.php
parentf2f0dc78929228619f8644d6553a02a8d1572242 (diff)
downloadforums-26a6d215d0897afa82eea9b0cc0fca79d4544da5.tar
forums-26a6d215d0897afa82eea9b0cc0fca79d4544da5.tar.gz
forums-26a6d215d0897afa82eea9b0cc0fca79d4544da5.tar.bz2
forums-26a6d215d0897afa82eea9b0cc0fca79d4544da5.tar.xz
forums-26a6d215d0897afa82eea9b0cc0fca79d4544da5.zip
- fix some tiny bugs
- fix module system (sometimes the layout is broken due to falsly deactivated categories) - auth updates (setting permissions) - fix "category jumping" bug in acp - u_action is defined by the module itself git-svn-id: file:///svn/phpbb/trunk@5558 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_disallow.php')
-rw-r--r--phpBB/includes/acp/acp_disallow.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/phpBB/includes/acp/acp_disallow.php b/phpBB/includes/acp/acp_disallow.php
index 5d0e3fd787..2e02fb4e83 100644
--- a/phpBB/includes/acp/acp_disallow.php
+++ b/phpBB/includes/acp/acp_disallow.php
@@ -13,6 +13,8 @@
*/
class acp_disallow
{
+ var $u_action;
+
function main($id, $mode)
{
global $db, $user, $auth, $template, $cache;
@@ -29,8 +31,6 @@ class acp_disallow
$disallow = (isset($_POST['disallow'])) ? true : false;
$allow = (isset($_POST['allow'])) ? true : false;
- $u_action = "{$phpbb_admin_path}index.$phpEx$SID&amp;i=$id&amp;mode=$mode";
-
if ($disallow)
{
$disallowed_user = str_replace('*', '%', request_var('disallowed_user', ''));
@@ -45,7 +45,7 @@ class acp_disallow
add_log('admin', 'LOG_DISALLOW_ADD', str_replace('%', '*', $disallowed_user));
}
- trigger_error($message . adm_back_link($u_action));
+ trigger_error($message . adm_back_link($this->u_action));
}
else if ($allow)
{
@@ -53,7 +53,7 @@ class acp_disallow
if (!$disallowed_id)
{
- trigger_error($user->lang['NO_USER'] . adm_back_link($u_action));
+ trigger_error($user->lang['NO_USER'] . adm_back_link($this->u_action));
}
$sql = 'DELETE FROM ' . DISALLOW_TABLE . "
@@ -62,7 +62,7 @@ class acp_disallow
add_log('admin', 'LOG_DISALLOW_DELETE');
- trigger_error($user->lang['DISALLOWED_DELETED'] . adm_back_link($u_action));
+ trigger_error($user->lang['DISALLOWED_DELETED'] . adm_back_link($this->u_action));
}
// Grab the current list of disallowed usernames...
@@ -78,7 +78,7 @@ class acp_disallow
$db->sql_freeresult($result);
$template->assign_vars(array(
- 'U_ACTION' => $u_action,
+ 'U_ACTION' => $this->u_action,
'S_DISALLOWED_NAMES' => $disallow_select)
);
}