From b507d3c844b92688e31cefb11499fe1254e623e4 Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 4 Apr 2018 03:06:23 +0900 Subject: [PATCH] =?UTF-8?q?index.php=EC=97=90=EC=84=9C=20checkTurn=20?= =?UTF-8?q?=EC=9C=84=EC=B9=98=20=EC=A1=B0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/index.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hwe/index.php b/hwe/index.php index 5da8e2ce..d8f28ec8 100644 --- a/hwe/index.php +++ b/hwe/index.php @@ -4,11 +4,10 @@ namespace sammo; include "lib.php"; include "func.php"; -$session = Session::Instance()->loginGame()->setReadOnly(); +$session = Session::requireGameLogin(); $connect = dbConn(); increaseRefresh("메인", 1); -checkTurn($connect); $db = DB::db(); @@ -28,6 +27,10 @@ if($me === null) { header('Location: ../'); die(); } +$session->setReadOnly(); + +//턴 실행. +checkTurn($connect); if($me['newmsg'] == 1 && $me['newvote'] == 1) { $query = "update general set newmsg=0,newvote=0 where owner='{$_SESSION['userID']}'";