--- fenglin/bbs/restore.php 2004/09/17 14:57:03 1.1 +++ fenglin/bbs/restore.php 2025/03/18 03:52:17 1.4 @@ -27,11 +27,11 @@ mysql_free_result($rs); if (!($_SESSION["BBS_priv"]->checkpriv($sid,S_POST) && ($_SESSION["BBS_priv"]->checkpriv($sid,S_MAN_S)))) { - error_msg("Ȩָ£",true); + error_msg("您无权恢复此文章!",true); exit(); } -mysql_query("update bbs set visible=1,m_del=0,cached=0 where AID=$id") +mysql_query("update bbs set visible=1,m_del=0 where AID=$id") or die("Delete article error!"); //Add log @@ -41,7 +41,7 @@ article_op_log($id,$_SESSION["BBS_uid"], //Set last reply date if ($tid!=0) { - mysql_query("update bbs set cached=0,reply_count=reply_count+1 where aid=$tid") + mysql_query("update bbs set reply_count=reply_count+1 where aid=$tid") or die("Update article error!"); } @@ -49,10 +49,10 @@ mysql_close($db_conn); if ($tid==0) { - header ("Location: detail.php?id=$id"); + header ("Location: view_article.php?id=$id"); } else { - header ("Location: detail.php?id=$tid#$id"); + header ("Location: view_article?id=$tid#$id"); } ?>