1
0
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:
Paul S. Owen
2002-03-20 00:21:27 +00:00
parent 781fda5799
commit 0c6b287a2d
2 changed files with 74 additions and 59 deletions

View File

@@ -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 );