mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
switch to $_POST
This commit is contained in:
parent
05b73a96b0
commit
71a6a6b84e
@ -37,7 +37,7 @@
|
||||
//
|
||||
function in_docroot($path)
|
||||
{
|
||||
$docroots = array(PHPGW_SERVER_ROOT,$GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT']);
|
||||
$docroots = array(PHPGW_SERVER_ROOT,$_SERVER['DOCUMENT_ROOT']);
|
||||
|
||||
foreach ($docroots as $docroot)
|
||||
{
|
||||
@ -162,11 +162,11 @@
|
||||
}
|
||||
|
||||
// are we here because of an error: files-dir in docroot
|
||||
if (is_array($GLOBALS['HTTP_POST_VARS']['newsettings']) && $files_in_docroot)
|
||||
if (is_array($_POST['newsettings']) && $files_in_docroot)
|
||||
{
|
||||
echo '<p align="center"><font color="red"><b>'.lang('Path to user and group files HAS TO BE OUTSIDE of the webservers document-root!!!')."</b></font></p>\n";
|
||||
|
||||
foreach($GLOBALS['HTTP_POST_VARS']['newsettings'] as $key => $val)
|
||||
foreach($_POST['newsettings'] as $key => $val)
|
||||
{
|
||||
$GLOBALS['current_config'][$key] = $val;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user