summaryrefslogtreecommitdiffstats
path: root/redirect.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-05-16 17:19:15 -0700
committerPatrick Davison <snapwilliam@gmail.com>2013-05-16 17:19:15 -0700
commit329cc1f9b6657ce580b3a297e39a7cd259a62537 (patch)
treedca09b3a78fcdb9a39646f8968312bf0c722b455 /redirect.php
parentc6e4239a672d2456c67e219da480a63f77056723 (diff)
downloadpathery-329cc1f9b6657ce580b3a297e39a7cd259a62537.tar.xz
More PHP warning and notice fixes.
Diffstat (limited to 'redirect.php')
-rw-r--r--redirect.php10
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>