summaryrefslogtreecommitdiffstats
path: root/globe.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2012-07-31 22:34:08 -0700
committerPatrick Davison <snapwilliam@gmail.com>2012-07-31 22:34:08 -0700
commit2d290b23c402561ef30c1de665895c120dd79483 (patch)
tree8bde5ebd953f3dd375abe88e61e40571df313b1f /globe.php
parent628c2e712e39fe85762583fd1ddc12609746fc58 (diff)
downloadpathery-2d290b23c402561ef30c1de665895c120dd79483.tar.xz
Everything related to the scoreboard.
New feedback page. Changed the speed of the pauses on checkpoints during a path animation. Changed how notifications are recieved.
Diffstat (limited to 'globe.php')
-rw-r--r--globe.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/globe.php b/globe.php
index 3470e78..22e455f 100644
--- a/globe.php
+++ b/globe.php
@@ -1,5 +1,5 @@
<?PHP
-date_default_timezone_set('America/Los_Angeles');
+date_default_timezone_set('America/Los_Angeles');
if (!session_id())
session_start();
//session_regenerate_id();
@@ -36,6 +36,12 @@ function CookieLogin() {
return;
list($claimedid, $display, $isAdmin) = mysql_fetch_row($result);
+
+ //I last-see you now!
+ $sql = "UPDATE `users`
+ SET `dateLogin` = NOW()
+ WHERE `ID` = '$userID'";
+ mysql_query($sql);
$salt = "33qs5d4j6z98gt1a7n6b5d4x1c66f5nuh8a6d8g9j09aphgf56z5745";
$pepper = "Dear sir, have you ever heard of a wild goose chase?
@@ -146,7 +152,7 @@ Function DoRedirect($message = "Thanks", $to = "http://www.pathery.com/", $durat
";
}
-function EmailError($data) {
+function EmailError($data, $subject = "Pathery Error Report") {
$to = 'snapwilliam@gmail.com';
$mycompany = "Pathery";
@@ -157,8 +163,6 @@ function EmailError($data) {
$mime_boundary = "----$mycompany----".md5(time());
# -=-=-=- MAIL HEADERS
- $subject = "Pathery Error Report";
-
$headers = "From: $mycompany <$fromemail>\n";
$headers .= "Reply-To: $mycompany <$replyemail>\n";
$headers .= "MIME-Version: 1.0\n";
@@ -183,4 +187,4 @@ function EmailError($data) {
Return $mail_sent;
}
-?>
+?> \ No newline at end of file