많은 유틸리티 함수를 Util, FileUtil, WebUtil로 이동

This commit is contained in:
2018-03-24 22:03:54 +09:00
parent b5cba27df9
commit 157ecdbf2a
36 changed files with 364 additions and 517 deletions
+4 -2
View File
@@ -1,4 +1,6 @@
<?php
namespace sammo;
include 'lib.php';
include 'func.php';
@@ -17,9 +19,9 @@ if (!$generalID) {
session_write_close(); // 이제 세션 안 쓴다
$jsonPost = parseJsonPost();
$jsonPost = WebUtil::parseJsonPost();
$msgID = toInt(Util::array_get($jsonPost['msgID'], null), false);
$msgID = Util::toInt(Util::array_get($jsonPost['msgID'], null), false);
$msgResponse = Util::array_get($jsonPost['response'], null);
if ($msgID === null || !is_bool($msgResponse)) {