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

@ -1,21 +1,21 @@
<?php
include_once('./_common.php');
$count = count($_POST['chk_wr_id']);
$count = (isset($_POST['chk_wr_id']) && is_array($_POST['chk_wr_id'])) ? count($_POST['chk_wr_id']) : 0;
$post_btn_submit = isset($_POST['btn_submit']) ? clean_xss_tags($_POST['btn_submit'], 1, 1) : '';
if(!$count) {
alert($_POST['btn_submit'].' 하실 항목을 하나 이상 선택하세요.');
alert(addcslashes($post_btn_submit, '"\\/').' 하실 항목을 하나 이상 선택하세요.');
}
if($_POST['btn_submit'] == '선택삭제') {
if($post_btn_submit === '선택삭제') {
include './delete_all.php';
} else if($_POST['btn_submit'] == '선택복사') {
} else if($post_btn_submit === '선택복사') {
$sw = 'copy';
include './move.php';
} else if($_POST['btn_submit'] == '선택이동') {
} else if($post_btn_submit === '선택이동') {
$sw = 'move';
include './move.php';
} else {
alert('올바른 방법으로 이용해 주세요.');
}
?>
}