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 /globe.php | |
parent | 2fb5da215a7b286b71f8c4d0126c72a06e41935e (diff) | |
download | pathery-27f1a758f0f312e6dedb18f47ce86a6fd1d05d12.tar.xz |
Error logging. .htaccess cacheing. Modified doredirect to use $mydomain
Diffstat (limited to 'globe.php')
-rw-r--r-- | globe.php | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -11,11 +11,17 @@ if (!session_id()) //$mydomain = "http://www.mazetd.4xg.net/";
$mydomain = "http://www.pathery.com/";
-//include_once("./includes/header.php");
+function LogError($error) {
+
+ $today = date("Y-m-d H:i:s");
+ $fd = fopen("includes/errorlogs.txt", "a");
+ fwrite($fd, "$today:$error\n");
+ fclose($fd);
+}
function soundManager1() {
-return '
+ return '
<div>
<script src="sounds/script/soundmanager.js"></script>
<script type="text/javascript">soundManagerInit();</script>
@@ -24,7 +30,7 @@ return ' }
function soundManager2() {
-return "
+ return "
<script src='sounds/script/soundmanager2-nodebug-jsmin.js'></script>
<script>
soundManager.setup({
@@ -50,8 +56,6 @@ soundManager.setup({ }
-
-
function sql_clean($string) {
if (get_magic_quotes_gpc()) {
$string = stripslashes($string);
@@ -159,8 +163,8 @@ Function CheckAuth($page) { }
//TODO: Contains domain !!
-Function DoRedirect($message = "Thanks", $to = "http://www.pathery.com/", $duration = "3") {
- $to=(is_null($to)?'http://www.pathery.com/':$to);
+Function DoRedirect($message = "Thanks", $to = NULL, $duration = "3") {
+ $to=(is_null($to)?$mydomain:$to);
if ($duration == 0) {
header("Location: $to");
|