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

@ -2,15 +2,17 @@
$sub_menu = "900500";
include_once("./_common.php");
auth_check($auth[$sub_menu], "w");
auth_check_menu($auth, $sub_menu, "w");
$post_cnk = (isset($_POST['chk']) && is_array($_POST['chk'])) ? $_POST['chk'] : array();
if ($w == 'u') // 업데이트
{
for ($i=0; $i<count($_POST['chk']); $i++)
for ($i=0; $i<count($post_cnk); $i++)
{
// 실제 번호를 넘김
$k = $_POST['chk'][$i];
$fg_no = (int) $_POST['fg_no'][$k];
$k = $post_cnk[$i];
$fg_no = isset($_POST['fg_no'][$k]) ? (int) $_POST['fg_no'][$k] : 0;
$fg_name = isset($_POST['fg_name'][$k]) ? addslashes(strip_tags($_POST['fg_name'][$k])) : '';
$fg_member = isset($_POST['fg_member'][$k]) ? addslashes(strip_tags($_POST['fg_member'][$k])) : '';
@ -34,11 +36,11 @@ if ($w == 'u') // 업데이트
}
else if ($w == 'de') // 그룹삭제
{
for ($i=0; $i<count($_POST['chk']); $i++)
for ($i=0; $i<count($post_cnk); $i++)
{
// 실제 번호를 넘김
$k = $_POST['chk'][$i];
$fg_no = (int) $_POST['fg_no'][$k];
$k = $post_cnk[$i];
$fg_no = isset($_POST['fg_no'][$k]) ? (int) $_POST['fg_no'][$k] : 0;
if (!is_numeric($fg_no))
alert('그룹 고유번호가 없습니다.');
@ -53,11 +55,11 @@ else if ($w == 'de') // 그룹삭제
}
else if ($w == 'em')
{
for ($i=0; $i<count($_POST['chk']); $i++)
for ($i=0; $i<count($post_cnk); $i++)
{
// 실제 번호를 넘김
$k = $_POST['chk'][$i];
$fg_no = (int) $_POST['fg_no'][$k];
$k = $post_cnk[$i];
$fg_no = isset($_POST['fg_no'][$k]) ? (int) $_POST['fg_no'][$k] : 0;
if ($fg_no == 'no') $fg_no = 0;
@ -92,5 +94,4 @@ else // 등록
sql_query("insert into {$g5['sms5_form_group_table']} set fg_name = '$fg_name'");
}
goto_url('./form_group.php');
?>
goto_url('./form_group.php');