php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용

This commit is contained in:
thisgun
2021-01-04 15:33:29 +09:00
parent 10d377de7d
commit 582d1a01f4
852 changed files with 120617 additions and 6307 deletions

View File

@ -3,6 +3,8 @@ $sub_menu = "900200";
include_once("./_common.php");
@include_once(G5_PLUGIN_PATH."/sms5/JSON.php");
$mtype = isset($_REQUEST['mtype']) ? clean_xss_tags($_REQUEST['mtype'], 1, 1) : '';
if(empty($config['cf_sms_use'])){
if( $mtype == "json" ){
die("{\"error\":\"환경 설정의 SMS 사용에서 아이코드를 사용설정해 주셔야 실행할수 있습니다.\"}");
@ -19,9 +21,9 @@ if( !function_exists('json_encode') ) {
}
if( $mtype == "json" ){
ajax_auth_check($auth[$sub_menu], "w");
ajax_auth_check_menu($auth, $sub_menu, "w");
} else {
auth_check($auth[$sub_menu], "w");
auth_check_menu($auth, $sub_menu, "w");
}
$count = 0;
@ -126,5 +128,4 @@ if( $mtype == "json" ){
die( json_encode($json_msg) );
} else {
die( $msg );
}
?>
}