add globals to naked php_self in function redirect, comment out some broken code in template linux-at-work

This commit is contained in:
angles 2001-12-12 19:34:29 +00:00
parent ae720586a4
commit 111a88617b
2 changed files with 9 additions and 3 deletions

View File

@ -122,7 +122,7 @@
if ( !$url )
{
$url = $PHP_SELF;
$url = $GLOBALS['PHP_SELF'];
}
if ( $iis )
{

View File

@ -143,8 +143,13 @@
{
$tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
$tpl->set_unknowns('remove');
$tpl->set_file(array('footer' => 'footer.tpl'));
// as of Dec 10, 2001 this powered by code is somewhat broken
// can cause a loop of error message about power bottom being invalid
// needs repair (ed: Angles)
/*
$tpl->set_block('footer','B_powered_bottom','V_powered_bottom');
if ($GLOBALS['phpgw_info']['server']['showpoweredbyon'] == 'bottom')
@ -163,7 +168,8 @@
{
$tpl->set_var('V_powered_bottom','');
}
*/
$GLOBALS['phpgw']->common->hook('navbar_end');
$tpl->pfp('out','footer');
}