index.php에서 checkTurn 위치 조정

This commit is contained in:
2018-04-04 03:06:23 +09:00
parent 36dd7fef19
commit b507d3c844
+5 -2
View File
@@ -4,11 +4,10 @@ namespace sammo;
include "lib.php"; include "lib.php";
include "func.php"; include "func.php";
$session = Session::Instance()->loginGame()->setReadOnly(); $session = Session::requireGameLogin();
$connect = dbConn(); $connect = dbConn();
increaseRefresh("메인", 1); increaseRefresh("메인", 1);
checkTurn($connect);
$db = DB::db(); $db = DB::db();
@@ -28,6 +27,10 @@ if($me === null) {
header('Location: ../'); header('Location: ../');
die(); die();
} }
$session->setReadOnly();
//턴 실행.
checkTurn($connect);
if($me['newmsg'] == 1 && $me['newvote'] == 1) { if($me['newmsg'] == 1 && $me['newvote'] == 1) {
$query = "update general set newmsg=0,newvote=0 where owner='{$_SESSION['userID']}'"; $query = "update general set newmsg=0,newvote=0 where owner='{$_SESSION['userID']}'";