Changed to GLOBALS[''] for HTTP_*_VARS.

This commit is contained in:
skeeter 2002-04-08 02:33:56 +00:00
parent 3c8fffb1e7
commit 5c06bddb84

View File

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