$tt=$result*222; //echo $tt; if (!checkpass($tt,$action,$db_name,$table_name_control,$id_link)) { if ($action=="delete") echo "对不起,你没有删除留言的权限!!!<br>"; else if ($action="huifu") echo "对不起,你暂时还不能恢复,现在只有版主有这权限!!!<br>"; else echo "对不起,你没有管理留言本的权限!!!"; exit; }
}
if ($action=="delete") { //PRintf("delete"); //echo $key_liuyan; $str_sql="delete from $table_name where key_liuyan=$key_liuyan"; $re=MySQL_db_query($db_name,$str_sql,$id_link);
if (!$re) { echo "删除出错"; } else
{ echo "成功删除"; echo "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">"; echo "<HTML><HEAD><TITLE>发表文章</TITLE>"; echo "<META content="text/html; charset=gb2312" http-equiv=Content-Type>"; echo "<meta HTTP-EQUIV="REFRESH" CONTENT="2;URL=display.php">"; echo "</head><body topmargin="0"><br>"; echo "<ul>回复成功,将自动显示留言内容"; echo " <br>"; echo "<a href=display.php>如果你的浏览器没有自动的返回到留言簿首页,请点击这里"; echo "</a></ul>"; } } else if ($action=="huifu")