This repository was archived by the owner on Aug 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.php
More file actions
64 lines (55 loc) · 1.78 KB
/
error.php
File metadata and controls
64 lines (55 loc) · 1.78 KB
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
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html>
<?php
include("includes.php");
?>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Oops!</title>
<meta name="author" content="name">
<meta name="description" content="Seems like we're having some issues">
<meta name="keywords" content="keywords,here">
<link rel="stylesheet" href="https://<?php echo $_SERVER['SERVER_NAME']; ?>/css/error.css" type="text/css">
</head>
<body style="height: 100vh">
<div class="panelcont" style="flex-direction: column; text-align: center;">
<div class="main">
<i class="error fas fa-exclamation-triangle"></i>
<h1>Uh oh, something's gone wrong.</h1>
<h3 style="padding-bottom: 20px;">
<?php
if(isset($_GET["error"])){
echo $_GET["error"];
}else{
echo "This could usually happen when the website is under maintenance, or an error has occured.";
}
?>
<?php
if(!isset($_GET["error"])){
?>
<br><input class="try" type="button" value="Try Again" onclick="location.reload(); " />
<?php
}
?>
</h3>
</div>
<div class="info">
<p class="einfo"><?php
date_default_timezone_set('UTC');
echo "Timestamp: " . date('m/d/Y H:m:s', time()) . " " . date_default_timezone_get() . "<br>";
echo "Requested URL: ";
if(isset($_GET["requrl"]))
{
echo $_GET["requrl"] . "<br>";
}
else{
echo "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]" . "<br>";
};
echo "Your IP: " . $_SERVER['REMOTE_ADDR'];
?>
</p>
</div>
</div>
</body>
</html>