정적 분석 결과 반영. 베팅 코드는 새로 작성

This commit is contained in:
2018-04-08 20:18:18 +09:00
parent ba4ff29e4a
commit b78fe22633
5 changed files with 66 additions and 31 deletions
+20
View File
@@ -3,6 +3,26 @@ namespace sammo;
include "lib.php";
include "func.php";
$v = new Validator($_POST + $_GET);
$v->rule('integer', [
'amount',
'cost',
'topv',
'value',
'term',
'stuff',
'sel'
]);
$amount = Util::getReq('amount', 'int');
$cost = Util::getReq('cost', 'int');
$topv = Util::getReq('topv', 'int');
$value = Util::getReq('value', 'int');
$term = Util::getReq('term', 'int');
$stuff = Util::getReq('stuff', 'int');
$sel = Util::getReq('sel', 'int');
//로그인 검사
$session = Session::requireGameLogin()->setReadOnly();
$userID = Session::getUserID();