-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
53 lines (52 loc) · 1.26 KB
/
index.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
error_reporting(0);
$server="localhost";
$user="clinger610";
$pass="Caption*123";
$db="youtube";
$con=mysqli_connect($server,$user,$pass,$db);
if(isset($_GET['l']))
{
$l=mysqli_real_escape_string($con,$_GET['l']);
?>
<!DOCTYPE html>
<html>
<head>
<title>Redirecting...</title>
<style type="text/css">
span {
font-size: 45px;
}
</style>
<script type="text/javascript">
function DelayedRedirect() {
window.location = "redirect.php?l=<?php echo $l; ?>";
}
</script>
</head>
<body onload="setTimeout('DelayedRedirect()',5000)">
<div style="margin-top: 30px; text-align: center;">
<span id="countdown">5</span>   <span id="plural">seconds</span>
<h1>Please wait while we redirect you!!</h1>
</div>
<script type="text/javascript">
var seconds = document.getElementById("countdown").textContent;
var countdown = setInterval(function() {
seconds--;
(seconds==1)?document.getElementById("plural").textContent="second":document.getElementById("plural").textContent="seconds";
document.getElementById("countdown").textContent = seconds;
if(seconds<=0) clearInterval(countdown);
}, 1000);
</script>
</body>
</html>
<?php
}
else {
?>
<script type="text/javascript">
window.location = "panel/form.php";
</script>
<?php
}
?>