diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-01-31 04:10:59 -0800 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-01-31 04:10:59 -0800 |
commit | 27f1a758f0f312e6dedb18f47ce86a6fd1d05d12 (patch) | |
tree | 05dce0efa9ccede3b84437ce067152ac7cf313f5 /errors.php | |
parent | 2fb5da215a7b286b71f8c4d0126c72a06e41935e (diff) | |
download | pathery-27f1a758f0f312e6dedb18f47ce86a6fd1d05d12.tar.xz |
Error logging. .htaccess cacheing. Modified doredirect to use $mydomain
Diffstat (limited to 'errors.php')
-rw-r--r-- | errors.php | 81 |
1 files changed, 75 insertions, 6 deletions
@@ -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 |