mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
Changed to GLOBALS[''] for HTTP_*_VARS.
This commit is contained in:
parent
3c8fffb1e7
commit
5c06bddb84
@ -57,7 +57,7 @@
|
|||||||
$GLOBALS['current_config']['temp_dir'] = '/path/to/temp/dir';
|
$GLOBALS['current_config']['temp_dir'] = '/path/to/temp/dir';
|
||||||
}
|
}
|
||||||
|
|
||||||
if($HTTP_POST_VARS['cancel'])
|
if(@$GLOBALS['HTTP_POST_VARS']['cancel'])
|
||||||
{
|
{
|
||||||
Header('Location: index.php');
|
Header('Location: index.php');
|
||||||
exit;
|
exit;
|
||||||
@ -74,14 +74,14 @@
|
|||||||
$configtbl = 'phpgw_config';
|
$configtbl = 'phpgw_config';
|
||||||
}
|
}
|
||||||
|
|
||||||
if($HTTP_POST_VARS['submit'] && $HTTP_POST_VARS['newsettings'])
|
if(@$GLOBALS['HTTP_POST_VARS']['submit'] && @$GLOBALS['HTTP_POST_VARS']['newsettings'])
|
||||||
{
|
{
|
||||||
$GLOBALS['phpgw_setup']->db->transaction_begin();
|
$GLOBALS['phpgw_setup']->db->transaction_begin();
|
||||||
/* This is only temp: */
|
/* This is only temp: */
|
||||||
$GLOBALS['phpgw_setup']->db->query("DELETE FROM $configtbl WHERE config_name='useframes'");
|
$GLOBALS['phpgw_setup']->db->query("DELETE FROM $configtbl WHERE config_name='useframes'");
|
||||||
$GLOBALS['phpgw_setup']->db->query("INSERT INTO $configtbl (config_app,config_name, config_value) values ('phpgwapi','useframes','never')");
|
$GLOBALS['phpgw_setup']->db->query("INSERT INTO $configtbl (config_app,config_name, config_value) values ('phpgwapi','useframes','never')");
|
||||||
|
|
||||||
$newsettings = $HTTP_POST_VARS['newsettings'];
|
$newsettings = $GLOBALS['HTTP_POST_VARS']['newsettings'];
|
||||||
|
|
||||||
while(list($setting,$value) = @each($newsettings))
|
while(list($setting,$value) = @each($newsettings))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user