-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathredirect.php
48 lines (41 loc) · 1.41 KB
/
redirect.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/******************************************************************************
*
* Copyright © Tobias Kühne
*
* You may use and distribute this software free of charge for non-commercial
* purposes. The software must be distributed in its entirety, i.e. containing
* ALL binary and source files without modification.
* Publication of modified versions of the source code provided herein,
* is permitted only with the author's written consent. In this case the
* copyright notice must not be removed or altered, all modifications to the
* source code must be clearly marked as such.
*
******************************************************************************/
$_get = '';
if (isset($_GET))
{
foreach ($_GET as $key => $value)
{
if (0 == strlen($_get))
$_get .= '?';
else
$_get .= '&';
$_get .= urlencode($key);
if (strlen($value) > 0)
$_get .= '='.urlencode($value);
}
}
header("Location: https://www.fra-flugplan.de$_get"); /* Redirect browser */
?>
<!DOCTYPE html>
<html dir="ltr" lang="de-DE" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>Expected – Live Schedule | Frankfurt Aviation Friends</title>
</head>
<body>
If you are not being redirected properly, please use the following link to go to the
<a href="http://www.fra-flugplan.de/fra-flugplan">Live Schedule</a>
</body>