forked from extern/egroupware
added function redirect_link and added nodisplay before exit
This commit is contained in:
parent
ec8ba8cab3
commit
ea968b1cd6
@ -103,6 +103,11 @@
|
||||
return $this->session->link($url, $extravars);
|
||||
}
|
||||
|
||||
function redirect_link($url = '',$extravars='')
|
||||
{
|
||||
$this->redirect($this->session->link($url, $extravars));
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles redirects under iis and apache
|
||||
*
|
||||
@ -110,7 +115,7 @@
|
||||
*
|
||||
* @access public
|
||||
* @param string The url ro redirect to
|
||||
* @syntax redirect(key as string)
|
||||
* @syntax redirect($string)
|
||||
* @example None yet
|
||||
*/
|
||||
function redirect($url = '')
|
||||
@ -140,14 +145,14 @@
|
||||
echo "\n</HEAD><BODY>";
|
||||
echo "<H3>Please continue to <a href=\"$url\">this page</a></H3>";
|
||||
echo "\n</BODY></HTML>";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
Header("Location: $url");
|
||||
print("\n\n");
|
||||
exit;
|
||||
}
|
||||
$GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -315,7 +315,7 @@
|
||||
\**************************************************************************/
|
||||
if (! $GLOBALS['phpgw']->session->verify())
|
||||
{
|
||||
$GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->session->link('/login.php','code=10'));
|
||||
$GLOBALS['phpgw']->redirect_link('/login.php','code=10');
|
||||
}
|
||||
|
||||
/***************************************************************************\
|
||||
|
Loading…
Reference in New Issue
Block a user