more fixes for GLOBALS

This commit is contained in:
Miles Lott 2001-09-12 16:53:51 +00:00
parent 6c1eb9f114
commit d3cc0b59f3

View File

@ -12,7 +12,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_info['flags'] = array( $GLOBALS['phpgw_info']['flags'] = array(
'noheader' => True, 'noheader' => True,
'nonavbar' => True, 'nonavbar' => True,
'currentapp' => 'admin', 'currentapp' => 'admin',
@ -65,7 +65,7 @@
if ($GLOBALS['HTTP_POST_VARS']['submit']) if ($GLOBALS['HTTP_POST_VARS']['submit'])
{ {
while (list($key,$config) = each($newsettings)) while (list($key,$config) = each($GLOBALS['HTTP_POST_VARS']['newsettings']))
{ {
if ($config) if ($config)
{ {
@ -118,7 +118,7 @@
$newval = ereg_replace(' ','_',$newval); $newval = ereg_replace(' ','_',$newval);
$t->set_var($value,$current_config[$newval]); $t->set_var($value,$current_config[$newval]);
break; break;
/* case "checked": /* case 'checked':
$newval = ereg_replace(' ','_',$newval); $newval = ereg_replace(' ','_',$newval);
if ($current_config[$newval]) if ($current_config[$newval])
{ {
@ -149,7 +149,7 @@
$t->set_var($value,''); $t->set_var($value,'');
} }
break; break;
case "hook": case 'hook':
$newval = ereg_replace(' ','_',$newval); $newval = ereg_replace(' ','_',$newval);
$t->set_var($value,$newval($current_config)); $t->set_var($value,$newval($current_config));
break; break;