Changed a few things over to GLOBALS and using get_var().

This commit is contained in:
skeeter 2002-04-13 01:56:57 +00:00
parent 8c2abdfccf
commit 3b4a9f0d89

View File

@ -11,10 +11,10 @@
/* $Id$ */ /* $Id$ */
$phpgw_info = array(); $GLOBALS['phpgw_info'] = array();
if (!@$GLOBALS['included']) if (!@$GLOBALS['included'])
{ {
$GLOBALS['phpgw_info']['flags'] = array( $GLOBALS['phpgw_info']['flags'] = Array(
'noheader' => True, 'noheader' => True,
'nonavbar' => True, 'nonavbar' => True,
'currentapp' => 'home', 'currentapp' => 'home',
@ -29,7 +29,6 @@
exit; exit;
} }
$GLOBALS['phpgw_setup']->loaddb(); $GLOBALS['phpgw_setup']->loaddb();
include(PHPGW_API_INC.'/class.common.inc.php'); include(PHPGW_API_INC.'/class.common.inc.php');
$common = new common; $common = new common;
@ -59,7 +58,7 @@
$langstbl = 'phpgw_languages'; $langstbl = 'phpgw_languages';
} }
if (@$HTTP_POST_VARS['submit']) if (@$GLOBALS['HTTP_POST_VARS']['submit'])
{ {
$lang_selected = $HTTP_POST_VARS['lang_selected']; $lang_selected = $HTTP_POST_VARS['lang_selected'];
$upgrademethod = $HTTP_POST_VARS['upgrademethod']; $upgrademethod = $HTTP_POST_VARS['upgrademethod'];
@ -154,7 +153,7 @@
} }
else else
{ {
if (@$HTTP_POST_VARS['cancel']) if (@$GLOBALS['HTTP_POST_VARS']['cancel'])
{ {
Header('Location: index.php'); Header('Location: index.php');
exit; exit;
@ -227,7 +226,7 @@
$setup_tpl->set_var('lang_install',lang('install')); $setup_tpl->set_var('lang_install',lang('install'));
$setup_tpl->set_var('lang_cancel',lang('cancel')); $setup_tpl->set_var('lang_cancel',lang('cancel'));
$ConfigDomain = $HTTP_COOKIE_VARS['ConfigDomain'] ? $HTTP_COOKIE_VARS['ConfigDomain'] : $HTTP_POST_VARS['ConfigDomain']; $ConfigDomain = get_var('ConfigDomain',Array('POST','COOKIE'));
$GLOBALS['phpgw_setup']->html->show_header("$stage_title",False,'config',$ConfigDomain . '(' . $phpgw_domain[$ConfigDomain]['db_type'] . ')'); $GLOBALS['phpgw_setup']->html->show_header("$stage_title",False,'config',$ConfigDomain . '(' . $phpgw_domain[$ConfigDomain]['db_type'] . ')');
$setup_tpl->pparse('out','T_lang_main'); $setup_tpl->pparse('out','T_lang_main');
$GLOBALS['phpgw_setup']->html->show_footer(); $GLOBALS['phpgw_setup']->html->show_footer();