summaryrefslogtreecommitdiffstats
path: root/globe.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-01-31 04:10:59 -0800
committerPatrick Davison <snapwilliam@gmail.com>2013-01-31 04:10:59 -0800
commit27f1a758f0f312e6dedb18f47ce86a6fd1d05d12 (patch)
tree05dce0efa9ccede3b84437ce067152ac7cf313f5 /globe.php
parent2fb5da215a7b286b71f8c4d0126c72a06e41935e (diff)
downloadpathery-27f1a758f0f312e6dedb18f47ce86a6fd1d05d12.tar.xz
Error logging. .htaccess cacheing. Modified doredirect to use $mydomain
Diffstat (limited to 'globe.php')
-rw-r--r--globe.php18
1 files changed, 11 insertions, 7 deletions
diff --git a/globe.php b/globe.php
index 45fd051..2e75a9a 100644
--- a/globe.php
+++ b/globe.php
@@ -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");