/***************************************************************************
* 공통 파일 include
**************************************************************************/
include "_head.php";
if(!eregi($HTTP_HOST,$HTTP_REFERER)) Error("정상적으로 글을 삭제하여 주시기 바랍니다.");
/***************************************************************************
* 코멘트 삭제 페이지 처리
**************************************************************************/
// 원본글을 가져옴
$s_data=mysql_fetch_array(mysql_query("select * from $t_comment"."_$id where no='$c_no'"));
if($s_data[ismember]||$is_admin||$member[level]<=$setup[grant_delete]) {
if(!$is_admin&&$s_data[ismember]!=$member[no]) Error("삭제할 권한이 없습니다");
$title="글을 삭제하시겠습니까?";
} else {
$title="글을 삭제합니다. 비밀번호를 입력하여 주십시요";
$input_password="";
}
$target="del_comment_ok.php";
$a_list="";
$a_view="";
head();
include $dir."/ask_password.php";
foot();
include "_foot.php";
?>