Skip to content

Commit

Permalink
php8.0 버전에서 경고메시지 나오는 코드 추가 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Jan 4, 2021
1 parent 5f05e5c commit 77b5316
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bbs/delete.php
Expand Up @@ -9,6 +9,8 @@

//$wr = sql_fetch(" select * from $write_table where wr_id = '$wr_id' ");

$count_write = $count_comment = 0;

@include_once($board_skin_path.'/delete.head.skin.php');

if ($is_admin == 'super') // 최고관리자 통과
Expand Down
3 changes: 2 additions & 1 deletion bbs/qadelete.php
Expand Up @@ -4,7 +4,8 @@
if($is_guest)
alert('회원이시라면 로그인 후 이용해 주십시오.', G5_URL);

$token = isset($_REQUEST['token']) ? $_REQUEST['token'] : '';
$token = isset($_REQUEST['token']) ? clean_xss_tags($_REQUEST['token'], 1, 1) : '';
$qa_id = isset($_REQUEST['qa_id']) ? (int) $_REQUEST['qa_id'] : 0;

$delete_token = get_session('ss_qa_delete_token');
set_session('ss_qa_delete_token', '');
Expand Down

0 comments on commit 77b5316

Please sign in to comment.