글 삭제할때 첫페이지로 이동하는거 삭제한글 페이지에 머물게 하기!
admin/article.php
set_delete로 검색함
if ($mode == "set_delete") {
list($num, $is_sync) = split("_", $exenum);
$sql = "select image_file_path1, image_file_path2 from t3_".$dbid." where no = $num";
list ($image_file_path1, $image_file_path2) = mysql_fetch_array(mysql_query($sql));
if ($image_file_path1 && $image_file_path2) force_rmdirs($r_attach_path.$image_file_path1.$image_file_path2);
if (is_empty_dir($r_attach_path.$image_file_path1)) force_rmdirs($r_attach_path.$image_file_path1);
put_query ("delete from t3_".$dbid." where no = '$num'");
put_query ("delete from t3_".$dbid."_files where pno = '$num'");
put_query ("delete from t3_".$dbid."_reply where pno = '$num'");
put_query ("delete from t3_".$dbid."_trackback where pno = '$num'");
if ($is_sync) sync_retune($num, 0);
set_ct_cnt();
update_xml();
if ($am) header("Location: ../index.php?pl=$num");
// else header("Location: article.php");
else header("Location: article.php?page=$page&ct1=$ct1&ct2=$ct2");
exit;
}
RECENT COMMENT