summaryrefslogtreecommitdiffstats
path: root/errors.php
diff options
context:
space:
mode:
Diffstat (limited to 'errors.php')
-rw-r--r--errors.php81
1 files changed, 75 insertions, 6 deletions
diff --git a/errors.php b/errors.php
index 7b91633..e1621c9 100644
--- a/errors.php
+++ b/errors.php
@@ -1,11 +1,80 @@
<?PHP
+include("globe.php");
-echo "You're here because of error: $_GET[error] ";
+// echo "You're here because of error: $_GET[error] ";
+// echo "<br />Directed from: $_SERVER[HTTP_REFERER]";
+// echo "<br />Requested: $_SERVER[REQUEST_URI]";
+// echo "<br />Loaded: $_SERVER[PHP_SELF]";
-echo "<br />Directed from: $_SERVER[HTTP_REFERER]";
-echo "<br />Requested: $_SERVER[REQUEST_URI]";
-echo "<br />Loaded: $_SERVER[PHP_SELF]";
-
-echo "<br /><a href='http://www.pathery.com'>Go back to Home</a>";
+//echo "<br /><a href='$mydomain'>Go back to Home</a>";
+LogError("Request Error: $_GET[error]
+ REQUEST_URI:$_SERVER[REQUEST_URI]
+ HTTP_REFERER: $_SERVER[HTTP_REFERER]
+ REDIRECT_URL: $_SERVER[REDIRECT_URL]
+ REMOTE_ADDR: $_SERVER[REMOTE_ADDR]
+");
?>
+<html>
+
+<head>
+<title>Pathery.com - Error</title>
+
+<style>
+body {
+background-color: #121212;
+color:#ddd
+}
+
+.update {
+ background-color: #222229;
+ margin:0 auto;
+ margin-top: 200px;
+ width:400px;
+ border: 0px outset #aaa;
+ padding: 10px;
+ border-radius: 25px;
+}
+h3 {
+ text-align: center;
+}
+
+.buttons a {
+ margin: 10px;
+ opacity: 0.7;
+ filter: alpha(opacity=70);
+}
+.buttons a:hover {
+ opacity: 1;
+ filter: alpha(opacity=100);
+}
+
+a {
+ text-decoration: underline;
+ color: #aaaa99;
+}
+a:hover {
+ text-decoration: underline;
+ color: #FFFFFF;
+}
+</style>
+
+</head>
+<body>
+
+<div class='update'>
+<h3>Oh bother. An Error occured.</h3>
+<p>Something happened.. Not sure what...
+<br />Well I know some things, but I just don't think you care about the details.
+<br />I logged the error and i'll look at it later. - But if this keeps happening please email me.
+<br /><a href='mailto:snap@pathery.com' target='top'>Snap@pathery.com</a>
+<br />
+</p>
+
+<p>
+<a href='<? echo $mydomain; ?>'>Back to <? echo $mydomain; ?></a>?
+</p>
+</div>
+
+</body>
+</html> \ No newline at end of file