diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-05-28 00:01:06 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-05-28 00:01:06 -0700 |
commit | 9f2aa0767634648e4813c8e6d10fc6b8dbeff293 (patch) | |
tree | 7bedb03cf3d23ae81804c655ba613a7c40232d28 | |
parent | 048138970237ac1a0784ac779bc74b73b04d49be (diff) | |
parent | 77b0bd5e51aeefb0d09e7a5bcab633657f299d22 (diff) | |
download | pathery-9f2aa0767634648e4813c8e6d10fc6b8dbeff293.tar.xz |
Merge branch 'HEAD' of ssh://git@git.raylu.net/pathery
-rw-r--r-- | db updates.sql | 6 | ||||
-rw-r--r-- | globe.php | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/db updates.sql b/db updates.sql index d248ef2..9a20ade 100644 --- a/db updates.sql +++ b/db updates.sql @@ -3,4 +3,8 @@ --Dialog to challenges: ALTER TABLE `challenges` ADD `dialogStart` VARCHAR( 200 ) DEFAULT NULL , ADD `dialogFail` VARCHAR( 200 ) DEFAULT NULL , -ADD `dialogSuccess` VARCHAR( 200 ) DEFAULT NULL ;
\ No newline at end of file +ADD `dialogSuccess` VARCHAR( 200 ) DEFAULT NULL ; + +-- Add index necessary for stats updates +ALTER TABLE `bluePathery`.`solutions` +ADD INDEX `mapIDMoves` ( `mapID` , `moves` )
\ No newline at end of file @@ -1,6 +1,10 @@ <?PHP
date_default_timezone_set('America/New_York');
-include_once('includes/db.inc.php');
+if (!session_id())
+ session_start();
+//session_regenerate_id();
+
+include_once "includes/sqlEmbedded.php";
function LogError($error) {
@@ -65,7 +69,6 @@ function sql_clean($string) { function CookieLogin() {
global $accepted, $mydomain;
- include_once "includes/sqlEmbedded.php";
$userID = $_COOKIE['userID'];
$auth = $_COOKIE['auth'];
|