lib.php에서 강제로 $_POST 추출을 시행하던 부분을 세부 파일로 이동.
This commit is contained in:
@@ -24,6 +24,8 @@ $btn = Util::getReq('btn');
|
|||||||
$minute = Util::getReq('minute', 'int');
|
$minute = Util::getReq('minute', 'int');
|
||||||
$minute2 = Util::getReq('minute2', 'int');
|
$minute2 = Util::getReq('minute2', 'int');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
$connect=$db->get();
|
$connect=$db->get();
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ $maxgeneral = Util::getReq('maxgeneral', 'int', GameConst::$defaultMaxGeneral);
|
|||||||
$maxnation = Util::getReq('maxnation', 'int', GameConst::$defaultMaxNation);
|
$maxnation = Util::getReq('maxnation', 'int', GameConst::$defaultMaxNation);
|
||||||
$startyear = Util::getReq('startyear', 'int', GameConst::$defaultStartYear);
|
$startyear = Util::getReq('startyear', 'int', GameConst::$defaultStartYear);
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
$connect=$db->get();
|
$connect=$db->get();
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ include "func.php";
|
|||||||
$btn = Util::getReq('btn');
|
$btn = Util::getReq('btn');
|
||||||
$weap = Util::getReq('weap', 'int');
|
$weap = Util::getReq('weap', 'int');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireLogin()->loginGame()->setReadOnly();
|
$session = Session::requireLogin()->loginGame()->setReadOnly();
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ if($session->userGrade < 5) {
|
|||||||
$btn = Util::getReq('btn');
|
$btn = Util::getReq('btn');
|
||||||
$genlist = Util::getReq('genlist', 'int');
|
$genlist = Util::getReq('genlist', 'int');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
$connect=$db->get();
|
$connect=$db->get();
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ include "func.php";
|
|||||||
$type = Util::getReq('type', 'int', 0);
|
$type = Util::getReq('type', 'int', 0);
|
||||||
$type2 = Util::getReq('type2', 'int', 0);
|
$type2 = Util::getReq('type2', 'int', 0);
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ include "func.php";
|
|||||||
$btn = Util::getReq('btn');
|
$btn = Util::getReq('btn');
|
||||||
$nation = Util::getReq('nation', 'int');
|
$nation = Util::getReq('nation', 'int');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ include "func.php";
|
|||||||
|
|
||||||
$type = Util::getReq('type', 'int');
|
$type = Util::getReq('type', 'int');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ $btn = Util::getReq('btn');
|
|||||||
$gen = Util::getReq('gen', 'int', 0);
|
$gen = Util::getReq('gen', 'int', 0);
|
||||||
$type = Util::getReq('type', 'int');
|
$type = Util::getReq('type', 'int');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ $btn = Util::getReq('btn');
|
|||||||
$gen = Util::getReq('gen', 'int', 0);
|
$gen = Util::getReq('gen', 'int', 0);
|
||||||
$type = Util::getReq('type', 'int');
|
$type = Util::getReq('type', 'int');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ include "func.php";
|
|||||||
|
|
||||||
$btn = Util::getReq('btn');
|
$btn = Util::getReq('btn');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ include "func.php";
|
|||||||
|
|
||||||
$select = Util::getReq('select', 'int', 0);
|
$select = Util::getReq('select', 'int', 0);
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
$connect=$db->get();
|
$connect=$db->get();
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ include "func.php";
|
|||||||
|
|
||||||
$select = Util::getReq('select', 'int', 0);
|
$select = Util::getReq('select', 'int', 0);
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
$connect=$db->get();
|
$connect=$db->get();
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ include "func.php";
|
|||||||
|
|
||||||
$type = Util::getReq('type', 'int', 9);
|
$type = Util::getReq('type', 'int', 9);
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ include "func.php";
|
|||||||
$btn = Util::getReq('btn');
|
$btn = Util::getReq('btn');
|
||||||
$yearmonth = Util::getReq('yearmonth', 'int');
|
$yearmonth = Util::getReq('yearmonth', 'int');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ include "func.php";
|
|||||||
|
|
||||||
$type = Util::getReq('type', 'int', 1);
|
$type = Util::getReq('type', 'int', 1);
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
if($type <= 0 || $type > 8){
|
if($type <= 0 || $type > 8){
|
||||||
$type = 1;
|
$type = 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ include "func.php";
|
|||||||
$msg = Util::getReq('msg');
|
$msg = Util::getReq('msg');
|
||||||
$msg2 = Util::getReq('msg2');
|
$msg2 = Util::getReq('msg2');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ $btn = Util::getReq('btn');
|
|||||||
$gen = Util::getReq('gen', 'int', 0);
|
$gen = Util::getReq('gen', 'int', 0);
|
||||||
$type = Util::getReq('type', 'int', 0);
|
$type = Util::getReq('type', 'int', 0);
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ include "func.php";
|
|||||||
|
|
||||||
$citylist = Util::getReq('citylist', 'int');
|
$citylist = Util::getReq('citylist', 'int');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ include "func.php";
|
|||||||
|
|
||||||
$type = Util::getReq('type', 'int', 7);
|
$type = Util::getReq('type', 'int', 7);
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ include "func.php";
|
|||||||
|
|
||||||
$type = Util::getReq('type', 'int', 10);
|
$type = Util::getReq('type', 'int', 10);
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ include "func.php";
|
|||||||
|
|
||||||
$type = Util::getReq('type', 'int', 1);
|
$type = Util::getReq('type', 'int', 1);
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ $map = Util::getReq('map', 'int', 0);
|
|||||||
$mode = Util::getReq('mode', 'int', 2);
|
$mode = Util::getReq('mode', 'int', 2);
|
||||||
$tnmt = Util::getReq('tnmt', 'int', 1);
|
$tnmt = Util::getReq('tnmt', 'int', 1);
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
if($map < 0 && $map > 2){
|
if($map < 0 && $map > 2){
|
||||||
$map = 0;
|
$map = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ $term = Util::getReq('term', 'int');
|
|||||||
$stuff = Util::getReq('stuff', 'int');
|
$stuff = Util::getReq('stuff', 'int');
|
||||||
$sel = Util::getReq('sel', 'int');
|
$sel = Util::getReq('sel', 'int');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -22,6 +22,11 @@ for($i=0;$i<16;$i++){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($betGold == -1){
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if($betTarget < 0 || $betGold < 10 || $betGold > 1000){
|
if($betTarget < 0 || $betGold < 10 || $betGold > 1000){
|
||||||
header('Location: b_betting.php');
|
header('Location: b_betting.php');
|
||||||
exit();
|
exit();
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ $num = Util::getReq('num');
|
|||||||
$reply = Util::getReq('reply');
|
$reply = Util::getReq('reply');
|
||||||
// $title, $msg, $num
|
// $title, $msg, $num
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ $rate = Util::getReq('rate', 'int');
|
|||||||
$bill = Util::getReq('bill', 'int');
|
$bill = Util::getReq('bill', 'int');
|
||||||
$secretlimit = Util::getReq('secretlimit', 'int');
|
$secretlimit = Util::getReq('secretlimit', 'int');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ $double = Util::getReq('double', 'int', 0);
|
|||||||
$third = Util::getReq('third', 'int', 0);
|
$third = Util::getReq('third', 'int', 0);
|
||||||
$fourth = Util::getReq('fourth', 'int', 0);
|
$fourth = Util::getReq('fourth', 'int', 0);
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
if(!$turn){
|
if(!$turn){
|
||||||
$turn = [0];
|
$turn = [0];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ $genlist = Util::getReq('genlist', 'int');
|
|||||||
$outlist = Util::getReq('outlist', 'int');
|
$outlist = Util::getReq('outlist', 'int');
|
||||||
$citylist = Util::getReq('citylist', 'int');
|
$citylist = Util::getReq('citylist', 'int');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ $title = Util::getReq('title');
|
|||||||
$msg = Util::getReq('msg');
|
$msg = Util::getReq('msg');
|
||||||
$num = Util::getReq('num', 'int');
|
$num = Util::getReq('num', 'int');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ include "func.php";
|
|||||||
// $msg
|
// $msg
|
||||||
$msg = Util::getReq('msg');
|
$msg = Util::getReq('msg');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ $gen = Util::getReq('gen', 'int');
|
|||||||
$sel = Util::getReq('sel', 'int');
|
$sel = Util::getReq('sel', 'int');
|
||||||
$trig = Util::getReq('trig', 'int');
|
$trig = Util::getReq('trig', 'int');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ $btn = Util::getReq('btn');
|
|||||||
$name = Util::getReq('name');
|
$name = Util::getReq('name');
|
||||||
$troop = Util::getReq('troop', 'int');
|
$troop = Util::getReq('troop', 'int');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = $session::getUserID();
|
$userID = $session::getUserID();
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ $comment = Util::getReq('comment');
|
|||||||
$title = Util::getReq('title');
|
$title = Util::getReq('title');
|
||||||
$str = Util::getReq('str');
|
$str = Util::getReq('str');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ $ok = Util::getReq('ok');
|
|||||||
$when = Util::getReq('when', 'int');
|
$when = Util::getReq('when', 'int');
|
||||||
$gen = Util::getReq('gen', 'int'); //XXX: -_-;;;;;;;;;;;;
|
$gen = Util::getReq('gen', 'int'); //XXX: -_-;;;;;;;;;;;;
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ include "func.php";
|
|||||||
$ok = Util::getReq('ok');
|
$ok = Util::getReq('ok');
|
||||||
$gen = Util::getReq('gen', 'int'); //XXX: -_-;;;;;;;;;;;;
|
$gen = Util::getReq('gen', 'int'); //XXX: -_-;;;;;;;;;;;;
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ include "func.php";
|
|||||||
$ok = Util::getReq('ok');
|
$ok = Util::getReq('ok');
|
||||||
$gen = Util::getReq('gen', 'int'); //XXX: -_-;;;;;;;;;;;;
|
$gen = Util::getReq('gen', 'int'); //XXX: -_-;;;;;;;;;;;;
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ include "func.php";
|
|||||||
$ok = Util::getReq('ok');
|
$ok = Util::getReq('ok');
|
||||||
$gen = Util::getReq('gen', 'int'); //XXX: -_-;;;;;;;;;;;;
|
$gen = Util::getReq('gen', 'int'); //XXX: -_-;;;;;;;;;;;;
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ include "func.php";
|
|||||||
|
|
||||||
$gen = Util::getReq('gen', 'int');
|
$gen = Util::getReq('gen', 'int');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
//FIXME: 망했음. CriticalFailure. 재 구현.
|
//FIXME: 망했음. CriticalFailure. 재 구현.
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ include "func.php";
|
|||||||
$ok = Util::getReq('ok');
|
$ok = Util::getReq('ok');
|
||||||
$gen = Util::getReq('gen', 'int'); //XXX: -_-;;;;;;;;;;;;
|
$gen = Util::getReq('gen', 'int'); //XXX: -_-;;;;;;;;;;;;
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
$userID = Session::getUserID();
|
$userID = Session::getUserID();
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ $username = Util::getReq('db_id');
|
|||||||
$password = Util::getReq('db_pw');
|
$password = Util::getReq('db_pw');
|
||||||
$dbName = Util::getReq('db_name');
|
$dbName = Util::getReq('db_name');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
if(!$host || !$port || !$username || !$password || !$dbName){
|
if(!$host || !$port || !$username || !$password || !$dbName){
|
||||||
Json::die([
|
Json::die([
|
||||||
'result'=>false,
|
'result'=>false,
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ include "func.php";
|
|||||||
$year = Util::getReq('year', 'int');
|
$year = Util::getReq('year', 'int');
|
||||||
$month = Util::getReq('month', 'int');
|
$month = Util::getReq('month', 'int');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
$url = '/a_history.php';
|
$url = '/a_history.php';
|
||||||
|
|
||||||
if(!strpos($_SERVER['HTTP_REFERER'], $url)) {
|
if(!strpos($_SERVER['HTTP_REFERER'], $url)) {
|
||||||
|
|||||||
@@ -53,6 +53,8 @@ $leader = Util::getReq('leader', 'int', 50);
|
|||||||
$power = Util::getReq('power', 'int', 50);
|
$power = Util::getReq('power', 'int', 50);
|
||||||
$intel = Util::getReq('intel', 'int', 50);
|
$intel = Util::getReq('intel', 'int', 50);
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
$rootDB = RootDB::db();
|
$rootDB = RootDB::db();
|
||||||
//회원 테이블에서 정보확인
|
//회원 테이블에서 정보확인
|
||||||
$member = $rootDB->queryFirstRow('SELECT `no`, id, picture, grade, `name` FROM MEMBER WHERE no=%i', $userID);
|
$member = $rootDB->queryFirstRow('SELECT `no`, id, picture, grade, `name` FROM MEMBER WHERE no=%i', $userID);
|
||||||
|
|||||||
+10
-7
@@ -90,30 +90,33 @@ function LogText($prefix, $variable)
|
|||||||
file_put_contents(ROOT.'/d_log/dbg_logs.txt', $text, FILE_APPEND);
|
file_put_contents(ROOT.'/d_log/dbg_logs.txt', $text, FILE_APPEND);
|
||||||
}
|
}
|
||||||
|
|
||||||
function extractSuperGlobals()
|
function extractMissingPostToGlobals()
|
||||||
{
|
{
|
||||||
|
$result = [];
|
||||||
if (isset($_POST) && count($_POST) > 0) {
|
if (isset($_POST) && count($_POST) > 0) {
|
||||||
LogText($_SERVER['REQUEST_URI'], $_POST);
|
|
||||||
|
|
||||||
foreach($_POST as $key=>$val){
|
foreach($_POST as $key=>$val){
|
||||||
if(isset($GLOBALS[$key])){
|
if(isset($GLOBALS[$key])){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
$result[$key]=$val;
|
||||||
$GLOBALS[$key]=$val;
|
$GLOBALS[$key]=$val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_GET) && count($_GET) > 0) {
|
if (isset($_GET) && count($_GET) > 0) {
|
||||||
LogText($_SERVER['REQUEST_URI'], $_GET);
|
|
||||||
|
|
||||||
foreach($_GET as $key=>$val){
|
foreach($_GET as $key=>$val){
|
||||||
if(isset($GLOBALS[$key])){
|
if(isset($GLOBALS[$key])){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
$result[$key]=$val;
|
||||||
$GLOBALS[$key]=$val;
|
$GLOBALS[$key]=$val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($result){
|
||||||
|
LogText($_SERVER['REQUEST_URI'], $result);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
extractSuperGlobals();
|
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ $turn = Util::getReq('turn', 'array_int');
|
|||||||
$sel = Util::getReq('sel', 'int');
|
$sel = Util::getReq('sel', 'int');
|
||||||
$commandtype = Util::getReq('commandtype', 'int');
|
$commandtype = Util::getReq('commandtype', 'int');
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
increaseRefresh("턴입력", 1);
|
increaseRefresh("턴입력", 1);
|
||||||
|
|
||||||
if(!$turn || $commandtype === null){
|
if(!$turn || $commandtype === null){
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ include "func.php";
|
|||||||
$commandtype = Util::getReq('commandtype', 'int', 0);
|
$commandtype = Util::getReq('commandtype', 'int', 0);
|
||||||
$turn = Util::getReq('turn', 'array_int', [0]);
|
$turn = Util::getReq('turn', 'array_int', [0]);
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::requireGameLogin()->setReadOnly();
|
||||||
|
|
||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ include "func.php";
|
|||||||
$type = Util::getReq('type', 'int', 0);
|
$type = Util::getReq('type', 'int', 0);
|
||||||
$sel = Util::getReq('sel', 'int', 1);
|
$sel = Util::getReq('sel', 'int', 1);
|
||||||
|
|
||||||
|
extractMissingPostToGlobals();
|
||||||
|
|
||||||
if($sel <= 0 || $sel > 12){
|
if($sel <= 0 || $sel > 12){
|
||||||
$sel = 1;
|
$sel = 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user