-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathholdingpage.php
34 lines (31 loc) · 1.19 KB
/
holdingpage.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
<!DOCTYPE html>
<html lang="en">
<?php session_start(); ?>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel= "stylesheet" href="style.css">
<title>Status page</title>
</head>
<style>.central-ctnr {display: inline;}</style>
<body>
<div class="central-ctnr">
<?php
//spits out sessVar 'message' set in various random functions, making this single line reusable from everywhere
echo $_SESSION["message"];
header("refresh: 2; url={$_GET['redirect']}");
?>
<br>You will be automatically redirected in 2 seconds.
</div>
</body>
</html>
<!--scrapped- scriptless solution found.
<script>
//somewhat aided by https://stackoverflow.com/questions/12049620/how-to-get-get-variables-value-in-javascript
//parses GET headers in URL
var $_GET=[];
window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(a,name,value){$_GET[name]=value;});
//executes a redirect in 2000ms.
setTimeout(function () {window.location.href = $_GET['redirect'];}, 2000);
</script>-->