lib.php에서 강제로 $_POST 추출을 시행하던 부분을 세부 파일로 이동.

This commit is contained in:
2018-04-14 00:28:24 +09:00
parent 67fef4b73d
commit a03d2cee63
46 changed files with 103 additions and 7 deletions
+10 -7
View File
@@ -90,30 +90,33 @@ function LogText($prefix, $variable)
file_put_contents(ROOT.'/d_log/dbg_logs.txt', $text, FILE_APPEND);
}
function extractSuperGlobals()
function extractMissingPostToGlobals()
{
$result = [];
if (isset($_POST) && count($_POST) > 0) {
LogText($_SERVER['REQUEST_URI'], $_POST);
foreach($_POST as $key=>$val){
if(isset($GLOBALS[$key])){
continue;
}
$result[$key]=$val;
$GLOBALS[$key]=$val;
}
}
if (isset($_GET) && count($_GET) > 0) {
LogText($_SERVER['REQUEST_URI'], $_GET);
foreach($_GET as $key=>$val){
if(isset($GLOBALS[$key])){
continue;
}
$result[$key]=$val;
$GLOBALS[$key]=$val;
}
}
if($result){
LogText($_SERVER['REQUEST_URI'], $result);
}
}
extractSuperGlobals();