diff options
-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'];
|