2001-12-31 13:44:47 +01:00
|
|
|
<?php
|
|
|
|
/**************************************************************************\
|
2003-09-11 07:35:51 +02:00
|
|
|
* eGroupWare - save redirect script *
|
2001-12-31 13:44:47 +01:00
|
|
|
* idea by: Jason Wies <jason@xc.net> *
|
|
|
|
* doing and adding to cvs: Lars Kneschke <lkneschke@linux-at-work.de> *
|
2003-09-11 07:35:51 +02:00
|
|
|
* http://www.egroupware.org *
|
2001-12-31 13:44:47 +01:00
|
|
|
* -------------------------------------------- *
|
|
|
|
* 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 *
|
|
|
|
* Free Software Foundation; either version 2 of the License, or (at your *
|
|
|
|
* option) any later version. *
|
|
|
|
\**************************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
2003-09-11 07:35:51 +02:00
|
|
|
/*
|
|
|
|
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'])
|
2001-12-31 13:44:47 +01:00
|
|
|
{
|
2003-09-11 07:35:51 +02:00
|
|
|
Header('Location: ' . html_entity_decode(urldecode($_GET['go'])));
|
2001-12-31 13:44:47 +01:00
|
|
|
exit;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
print "this want work!!";
|
|
|
|
}
|
|
|
|
?>
|