Util::array_get($_POST 류를 Util::getReq로 통합.

array_merge를 이상하게 처리하는 부분 수정
This commit is contained in:
Hide_D committed 2018-04-07 15:16:46 +09:00
1 parent 183efd073b
commit 0cc7ba368a
21 files changed
+125 -88

No files matched your search

+6 -6
View File
@@ -3,12 +3,12 @@ namespace sammo;
require(__dir__.'/../vendor/autoload.php');
$host = Util::array_get($_POST['db_host']);
$port = Util::array_get($_POST['db_port']);
$username = Util::array_get($_POST['db_id']);
$password = Util::array_get($_POST['db_pw']);
$dbName = Util::array_get($_POST['db_name']);
$servHost = Util::array_get($_POST['serv_host']);
$host = Util::getReq('db_host');
$port = Util::getReq('db_port', 'int');
$username = Util::getReq('db_id');
$password = Util::getReq('db_pw');
$dbName = Util::getReq('db_name');
$servHost = Util::getReq('serv_host');
if(!$host || !$port || !$username || !$password || !$dbName || !$servHost){
Json::die([