X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Fnewgame.php;h=eb0dbdb5b2585477a746c1a10c81743d7edbfc9c;hp=bce755e66ee5ab47fc5c19513b52ae845f6c7003;hb=e2db7fab7569c20afa4f7915edb70842ae1aed8e;hpb=46140faa11b97252647178a811da22509256d6c4 diff --git a/include/newgame.php b/include/newgame.php index bce755e..eb0dbdb 100644 --- a/include/newgame.php +++ b/include/newgame.php @@ -1,5 +1,5 @@ +/* Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Arun Persaud * * This file is part of e-DoKo. * @@ -128,7 +128,7 @@ else } if($session) - DB_query("INSERT INTO Game VALUES (NULL, NULL, '$randomNRstring', 'normal', NULL,NULL,'1',NULL,'pre',". + DB_query("INSERT INTO Game VALUES (CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, '$randomNRstring', 'normal', NULL,NULL,'1',NULL,'pre',". "'$ruleset','$session' ,NULL)"); else { @@ -136,7 +136,7 @@ else $max = DB_get_max_session(); $max++; DB_query("UPDATE Game SET session='".$max."' WHERE id=".DB_quote_smart($followup)); - DB_query("INSERT INTO Game VALUES (NULL, NULL, '$randomNRstring', 'normal', NULL,NULL,'1',NULL,'pre',". + DB_query("INSERT INTO Game VALUES (CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, '$randomNRstring', 'normal', NULL,NULL,'1',NULL,'pre',". "'$ruleset','$max' ,NULL)"); } } @@ -153,7 +153,7 @@ else $max = DB_get_max_session(); $max++; - DB_query("INSERT INTO Game VALUES (NULL, NULL, '$randomNRstring', 'normal', NULL,NULL,'1',NULL,'pre', ". + DB_query("INSERT INTO Game VALUES (CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, '$randomNRstring', 'normal', NULL,NULL,'1',NULL,'pre', ". "'$ruleset','$max' ,NULL)"); } $gameid = DB_insert_id();