mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-24 23:08:53 +01:00
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);
|
return $this->session->link($url, $extravars);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function redirect_link($url = '',$extravars='')
|
||||||
|
{
|
||||||
|
$this->redirect($this->session->link($url, $extravars));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles redirects under iis and apache
|
* Handles redirects under iis and apache
|
||||||
*
|
*
|
||||||
@ -110,7 +115,7 @@
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param string The url ro redirect to
|
* @param string The url ro redirect to
|
||||||
* @syntax redirect(key as string)
|
* @syntax redirect($string)
|
||||||
* @example None yet
|
* @example None yet
|
||||||
*/
|
*/
|
||||||
function redirect($url = '')
|
function redirect($url = '')
|
||||||
@ -140,14 +145,14 @@
|
|||||||
echo "\n</HEAD><BODY>";
|
echo "\n</HEAD><BODY>";
|
||||||
echo "<H3>Please continue to <a href=\"$url\">this page</a></H3>";
|
echo "<H3>Please continue to <a href=\"$url\">this page</a></H3>";
|
||||||
echo "\n</BODY></HTML>";
|
echo "\n</BODY></HTML>";
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Header("Location: $url");
|
Header("Location: $url");
|
||||||
print("\n\n");
|
print("\n\n");
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
|
$GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -315,7 +315,7 @@
|
|||||||
\**************************************************************************/
|
\**************************************************************************/
|
||||||
if (! $GLOBALS['phpgw']->session->verify())
|
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