mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 02:36:38 +02:00
Add inclusion of validates functions + other minor updates
git-svn-id: file:///svn/phpbb/trunk@2364 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
Reference in New Issue
Block a user