Revize 1430
Přidáno uživatelem Michal Kliment před více než 12 roky(ů)
freenetis/branches/testing/redirection/cancel.php | ||
---|---|---|
|
||
$redirect_to = "";
|
||
if (isset($_GET['redirect_to']))
|
||
{
|
||
$redirect_to = $_GET['redirect_to'];
|
||
|
||
// split url to segments
|
||
$url_segments = explode("://", $redirect_to);
|
||
|
||
// test if first segment is protocol
|
||
if ($url_segments[0] != 'http' &&
|
||
$url_segments[0] != 'https' &&
|
||
$url_segments[0] != 'ftp')
|
||
{
|
||
// add http to url
|
||
$redirect_to = 'http://'.$redirect_to;
|
||
}
|
||
}
|
||
|
||
// content of redirection message
|
||
$message_query = "
|
||
... | ... | |
<meta http-equiv="Expires" content="0" />
|
||
<meta http-equiv="Cache-Control" content="No-Cache" />
|
||
<?php if (!empty($redirect_to)): ?>
|
||
<meta http-equiv="Refresh" content="5; url=http://<?php echo $redirect_to ?>" />
|
||
<meta http-equiv="Refresh" content="5; url=<?php echo $redirect_to ?>" />
|
||
<?php endif; ?>
|
||
<title>Freenetis</title>
|
||
<?php // echo str_replace('https', 'http', html::stylesheet('media/css/style.css', 'screen')) ?>
|
Také k dispozici: Unified diff
Vylepseni presmerovani - lepsi osetreni presmerovani na puvodne zadanou adresu po skonceni presmerovani.