forked from extern/egroupware
Spellcheck
This commit is contained in:
parent
e5af8693af
commit
05a7acf450
16
redirect.php
16
redirect.php
@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
/**************************************************************************\
|
/**************************************************************************\
|
||||||
* eGroupWare - 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.egroupware.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 *
|
||||||
@ -15,20 +15,20 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
Use this script when you want to link to a external url.
|
Use this script when you want to link to a external url.
|
||||||
This way you don't send sonething like sessionid's as referer
|
This way you don't send something like sessionid as referer
|
||||||
|
|
||||||
Use this in your app:
|
Use this in your app:
|
||||||
|
|
||||||
"<a href=\"$webserverURL/redirect.php?go=".htmlentities(urlencode('http://www.egroupware.org')).'">'
|
"<a href=\"$webserverURL/redirect.php?go=".htmlentities(urlencode('http://www.egroupware.org')).'">'
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ($_GET['go'])
|
if($_GET['go'])
|
||||||
{
|
{
|
||||||
Header('Location: ' . html_entity_decode(urldecode($_GET['go'])));
|
Header('Location: ' . html_entity_decode(urldecode($_GET['go'])));
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print "this want work!!";
|
echo "this won't work!!";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user