diff options
Diffstat (limited to 'redirect.php')
-rw-r--r-- | redirect.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/redirect.php b/redirect.php index 4732002..4161e7d 100644 --- a/redirect.php +++ b/redirect.php @@ -1,7 +1,11 @@ <?
$to = $_GET['to'];
-include('globe.php');
+include_once('globe.php');
if ($to == '') $to = $mydomain;
+
+$time = 3;
+
+
?>
<html>
@@ -51,7 +55,7 @@ a:hover { <script>
-var timeLeft = 5;
+var timeLeft = "<? echo $time; ?>";
var countdownRedirectInt = self.setInterval(countdownRedirect, 1000);
function countdownRedirect() {
@@ -72,7 +76,7 @@ function countdownRedirect() { <body>
<div class='update'>
-<h3 id='redirectTitle'>You are being redirected in 5 seconds</h3>
+<h3 id='redirectTitle'>You are being redirected in <? echo $time; ?>" seconds</h3>
<p>Let's go!: <a href='<? echo $to; ?>'><? echo $to; ?></a></p>
<p>Back to: <a href='<? echo $mydomain; ?>' title='Go back'><? echo $mydomain; ?></a>
|