0
0

Ran the formatter on all PHP files, added userbar.css

This commit is contained in:
Bryan Pedini
2019-07-17 10:37:44 +02:00
parent 923184ab68
commit f2a56c2abc
8 changed files with 159 additions and 119 deletions

View File

@@ -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
}