summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--db updates.sql6
-rw-r--r--globe.php7
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
diff --git a/globe.php b/globe.php
index 87218a5..22d34c5 100644
--- a/globe.php
+++ b/globe.php
@@ -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'];