You've already forked OpenShorte.old
Ran the formatter on all PHP files, added userbar.css
This commit is contained in:
@@ -21,30 +21,37 @@
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link href="<?=$GLOBALS['config']['installation_path']?>/favicon.ico" rel="icon" type="image/x-icon">
|
||||
<title id="title">Redirect in 5 seconds | <?=$GLOBALS['config']['website_name']?></title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<center>
|
||||
<h1>You will be redirected to <?=$row['URL']?> in <span id="body-timeout">5</span></h1>
|
||||
</center>
|
||||
<script>
|
||||
window.onload = function() {
|
||||
var seconds = 5;
|
||||
function update_timeout (interval) {
|
||||
document.getElementById("title").innerHTML = "Redirect in " + seconds +" seconds | <?=$GLOBALS['config']['website_name']?>";
|
||||
document.getElementById("body-timeout").innerHTML = seconds;
|
||||
if (seconds == 0) {
|
||||
window.location.href = "<?=$row['URL']?>";
|
||||
clearInterval (interval);
|
||||
}
|
||||
window.onload = function() {
|
||||
var seconds = 5;
|
||||
|
||||
function update_timeout(interval) {
|
||||
document.getElementById("title").innerHTML = "Redirect in " + seconds + " seconds | <?=$GLOBALS['config']['website_name']?>";
|
||||
document.getElementById("body-timeout").innerHTML = seconds;
|
||||
if (seconds == 0) {
|
||||
window.location.href = "<?=$row['URL']?>";
|
||||
clearInterval(interval);
|
||||
}
|
||||
interval = setInterval (function() {update_timeout(interval); seconds = seconds - 1;}, 1000);
|
||||
}
|
||||
interval = setInterval(function() {
|
||||
update_timeout(interval);
|
||||
seconds = seconds - 1;
|
||||
}, 1000);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<?php
|
||||
}
|
||||
|
Reference in New Issue
Block a user