CheckLoginWithGeneralID()
를 직접 Session 클래스를 접근하는 방식으로 변경.
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
if(Session::getUserGrade() < 5) {
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
$admin = getAdmin($connect);
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
if(Session::getUserGrade() < 5) {
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
if(Session::getUserGrade() < 5) {
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
if(Session::getUserGrade() < 5) {
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
if(Session::getUserGrade() < 5) {
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
if(Session::getUserGrade() < 5) {
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
if(Session::getUserGrade() < 5) {
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
if(Session::getUserGrade() < 5) {
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
if(Session::getUserGrade() < 5) {
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ $tch2 = array_fill(0,11, '');
|
||||
$dec = 0;
|
||||
$rice = 0;
|
||||
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("시뮬", 2);
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("명장일람", 2);
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("장수일람", 2);
|
||||
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ include "lib.php";
|
||||
include "func.php";
|
||||
$yearmonth = $_POST['yearmonth'];
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("연감", 5);
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("세력일람", 2);
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("세력도", 2);
|
||||
checkTurn($connect);
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("거래장", 2);
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("감찰부", 2);
|
||||
//전투 추진을 위해 갱신
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("베팅장", 1);
|
||||
checkTurn($connect);
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("기밀실", 1);
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("사령부", 1);
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("현재도시", 1);
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("내무부", 1);
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("중원정보", 1);
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("암행부", 2);
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("인사부", 1);
|
||||
//훼섭 추방을 위해 갱신
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("세력도시", 1);
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("세력장수", 1);
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("세력정보", 1);
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("내정보", 1);
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("회의실", 1);
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("국법", 1);
|
||||
?>
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("토너먼트", 1);
|
||||
checkTurn($connect);
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("부대편성", 1);
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("입찰", 1);
|
||||
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ include "func.php";
|
||||
|
||||
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("베팅", 1);
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ include "func.php";
|
||||
// $title, $msg, $num
|
||||
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
if(getBlockLevel() != 1 && getBlockLevel() != 3) {
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ include "func.php";
|
||||
// $btn, $msg, $scoutmsg, $rate, $bill, $secretlimit
|
||||
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
$query = "select no,nation,level from general where owner='{$_SESSION['userID']}'";
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ include "func.php";
|
||||
// $turn, $command, $cost, $name, $nationname, $note, $double, $third, $fourth
|
||||
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
if($command < 0) { $command = 0; }
|
||||
|
||||
@@ -6,7 +6,7 @@ include "func.php";
|
||||
// $btn, $level, $genlist, $outlist
|
||||
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
$query = "select startyear,year,month from game limit 1";
|
||||
|
||||
@@ -6,7 +6,7 @@ include "func.php";
|
||||
// $title, $msg, $num
|
||||
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
if(getBlockLevel() != 1 && getBlockLevel() != 3) {
|
||||
|
||||
@@ -6,7 +6,7 @@ include "func.php";
|
||||
// $msg
|
||||
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
$query = "select no,nation from general where owner='{$_SESSION['userID']}'";
|
||||
|
||||
@@ -6,7 +6,7 @@ include "func.php";
|
||||
// $btn, $msg
|
||||
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
$query = "select tournament,phase,tnmt_type,develcost from game limit 1";
|
||||
|
||||
+1
-5
@@ -6,12 +6,8 @@ include "func.php";
|
||||
// $btn, $name, $troop
|
||||
|
||||
//로그인 검사
|
||||
$session = Session::requireLogin()->loginGame()->setReadOnly();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$generalID = $session->$generalID;
|
||||
if(!$generalID){
|
||||
header('Location:..');
|
||||
die();
|
||||
}
|
||||
|
||||
$db = DB::db();
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
$query = "select killturn from game limit 1";
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
$query = "select develcost,vote,votecomment from game limit 1";
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
$session = Session::Instance()->loginGame()->setReadOnly();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
|
||||
$connect = dbConn();
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
//$when = ($when + 1) * 2;
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
$query = "select year,month from game limit 1";
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
$query = "select year,month from game limit 1";
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
$query = "select year,month from game limit 1";
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
$query = "select startyear,year,month,killturn from game limit 1";
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
$query = "select year,month from game limit 1";
|
||||
|
||||
+3
-7
@@ -1208,12 +1208,9 @@ function cutDay($date, int $turnterm) {
|
||||
}
|
||||
|
||||
function increaseRefresh($type="", $cnt=1) {
|
||||
$session = Session::Instance();
|
||||
$generalID = $session->generalID;
|
||||
if(!$generalID){
|
||||
$session->loginGame();
|
||||
}
|
||||
$session = Session::requireGameLogin();
|
||||
$generalID = $session->generalID;
|
||||
|
||||
$date = date('Y-m-d H:i:s');
|
||||
|
||||
DB::db()->query('UPDATE game set refresh=refresh+%i where `no`=1', $cnt);
|
||||
@@ -1222,7 +1219,7 @@ function increaseRefresh($type="", $cnt=1) {
|
||||
DB::db()->query('UPDATE general set `lastrefresh`=%s_date, `con`=`con`+%i_cnt, `connect`=`connect`+%i_cnt, refcnt=refcnt+%i_cnt, refresh=refresh+%i_cnt where `no`=%i_no',[
|
||||
'date'=>$date,
|
||||
'cnt'=>$cnt,
|
||||
'owner'->Session::Instance()->generalID
|
||||
'owner'->$session->generalID
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -1266,7 +1263,6 @@ function increaseRefresh($type="", $cnt=1) {
|
||||
if(isset($_SERVER[$x])) $str .= "//{$x}:{$_SERVER[$x]}";
|
||||
}
|
||||
if($str != "") {
|
||||
$session = Session::Instance();
|
||||
file_put_contents(
|
||||
"logs/_{$date2}_ipcheck.txt",
|
||||
sprintf(
|
||||
|
||||
@@ -1,18 +1,6 @@
|
||||
<?php
|
||||
namespace sammo;
|
||||
|
||||
|
||||
function CheckLoginWithGeneralID() {
|
||||
$session = Session::requireLogin()->loginGame()->setReadOnly();
|
||||
$generalID = $session->generalID;
|
||||
if($generalID){
|
||||
return $generalID;
|
||||
}
|
||||
header('Locatoin:..');
|
||||
die();
|
||||
}
|
||||
|
||||
|
||||
function printLimitMsg($turntime) {
|
||||
echo "
|
||||
<!DOCTYPE html>
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ if(!$year || !$month) {
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
$query = "select map from history where year='$year' and month='$month'";
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("턴입력", 1);
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
$count = sizeof($turn);
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ include "func.php";
|
||||
//로그인 검사
|
||||
|
||||
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
increaseRefresh("턴반복", 1);
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
$query = "select no from general where owner='{$_SESSION['userID']}'";
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLoginWithGeneralID();
|
||||
$session = Session::requireGameLogin()->setReadOnly();
|
||||
$connect = dbConn();
|
||||
|
||||
$query = "select no from general where owner='{$_SESSION['userID']}'";
|
||||
|
||||
@@ -187,7 +187,6 @@ class Session {
|
||||
}
|
||||
|
||||
$serverID = UniqueConst::$serverID;
|
||||
$db = DB::db();
|
||||
|
||||
$loginDate = $this->get($serverID.static::GAME_KEY_DATE);
|
||||
$generalID = $this->get($serverID.static::GAME_KEY_GENERAL_ID);
|
||||
@@ -197,9 +196,9 @@ class Session {
|
||||
$now = time();
|
||||
if(
|
||||
$generalID && $generalName && $loginDate && $deadTime
|
||||
&& $loginDate + 600 > $now && $deadTime > $now
|
||||
&& $loginDate + 1800 > $now && $deadTime > $now
|
||||
){
|
||||
//로그인 정보는 10분간 유지한다.
|
||||
//로그인 정보는 30분간 유지한다.
|
||||
if($result !== null){
|
||||
$result = true;
|
||||
}
|
||||
@@ -210,6 +209,8 @@ class Session {
|
||||
$this->logoutGame();
|
||||
}
|
||||
|
||||
$db = DB::db();
|
||||
|
||||
$general = $db->queryFirstRow(
|
||||
'SELECT `no`, `name`, `killturn`, `turntime` from general where `owner` = %i',
|
||||
$userID
|
||||
|
||||
Reference in New Issue
Block a user