<?phpif($navinfor['password']){echo "删除信息(需密码)";}?>
这个文件下的内容
<?phprequire("../class/connect.php");include("../class/db_sql.php");include("../class/config.php");$link=db_connect();$empire=new mysqlquery();$id=(int)$_GET['id'];$classid=(int)$_GET['classid'];//检查参数if(!$classid || !$id){ echo""; exit();}if ($_POST['enews']=='DelNews'){$key=$_POST['key'];$password=$_POST['password'];//验证码$checkplkey = getcvar ('checkplkey'); if (($key != $checkplkey OR empty ($checkplkey))) { printerror ('FailKey', 'history.go(-1)', 1); }$query="select password,id,title from {$dbtbpre}ecms_fwxx where id='$id' and classid='$classid'";$r=$empire->fetch1($query);if(!$r[id] or !$r[password]) { echo""; exit(); }//验证信息密码if ($password==$r[password]){ $r=$empire->query("update {$dbtbpre}ecms_fwxx set checked='0' where classid='$classid' and id='$id'"); echo"";}else{ echo"";}}else{?><?include("../data/template/cp_1.php");?> <?include("../data/template/cp_2.php");?><?}?>
新闻热点
疑难解答