mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-19 17:38:06 +02:00
updated documentation and make it working correctly
This commit is contained in:
parent
aa9a35f4d3
commit
6550ed8594
17
redirect.php
17
redirect.php
@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
/**************************************************************************\
|
/**************************************************************************\
|
||||||
* phpGroupWare - save redirect script *
|
* eGroupWare - save redirect script *
|
||||||
* idea by: Jason Wies <jason@xc.net> *
|
* idea by: Jason Wies <jason@xc.net> *
|
||||||
* doing and adding to cvs: Lars Kneschke <lkneschke@linux-at-work.de> *
|
* doing and adding to cvs: Lars Kneschke <lkneschke@linux-at-work.de> *
|
||||||
* http://www.phpgroupware.org *
|
* http://www.egroupware.org *
|
||||||
* -------------------------------------------- *
|
* -------------------------------------------- *
|
||||||
* This program is free software; you can redistribute it and/or modify it *
|
* This program is free software; you can redistribute it and/or modify it *
|
||||||
* under the terms of the GNU General Public License as published by the *
|
* under the terms of the GNU General Public License as published by the *
|
||||||
@ -13,9 +13,18 @@
|
|||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
if ($GLOBALS['go'])
|
/*
|
||||||
|
Use this script when you want to link to a external url.
|
||||||
|
This way you don't send sonething like sessionid's as referer
|
||||||
|
|
||||||
|
Use this in your app:
|
||||||
|
|
||||||
|
"<a href=\"$webserverURL/redirect.php?go=".htmlentities(urlencode('http://www.egroupware.org')).'">'
|
||||||
|
*/
|
||||||
|
|
||||||
|
if ($_GET['go'])
|
||||||
{
|
{
|
||||||
Header('Location: ' . $GLOBALS['go']);
|
Header('Location: ' . html_entity_decode(urldecode($_GET['go'])));
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user