aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/admin/admin_disallow.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/admin/admin_disallow.php')
-rw-r--r--phpBB/admin/admin_disallow.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/admin/admin_disallow.php b/phpBB/admin/admin_disallow.php
index d9e86ffd2f..78dfbd3f7b 100644
--- a/phpBB/admin/admin_disallow.php
+++ b/phpBB/admin/admin_disallow.php
@@ -33,11 +33,13 @@ if( !empty($setmodules) )
//
// Include required files, get $phpEx and check permissions
//
-$phpbb_root_dir = "./../";
+$phpbb_root_dir = './../';
require('pagestart.inc');
if( isset($HTTP_POST_VARS['add_name']) )
{
+ include($phpbb_root_path . 'includes/functions_validate.'.$phpEx);
+
$disallowed_user = ( isset($HTTP_POST_VARS['disallowed_user']) ) ? $HTTP_POST_VARS['disallowed_user'] : $HTTP_GET_VARS['disallowed_user'];
$disallowed_user = preg_replace( '/\*/', '%', $disallowed_user );