게시글 댓글 삭제 때 토큰 체크 추가

This commit is contained in:
chicpro committed 2016-06-24 17:17:02 +09:00
1 parent e724ef7291
commit 2a9e72da41
5 files changed
+20 -24

No files matched your search

+5 -5
View File
@@ -1,11 +1,11 @@
<?php
include_once('./_common.php');
if ($is_admin)
{
if (!($token && get_session('ss_delete_token') == $token))
alert('토큰 에러로 삭제 불가합니다.');
}
$delete_token = get_session('ss_delete_token');
set_session('ss_delete_token', '');
if (!($token && $delete_token == $token))
alert('토큰 에러로 삭제 불가합니다.');
//$wr = sql_fetch(" select * from $write_table where wr_id = '$wr_id' ");