首页 > CMS > 帝国Empire > 正文

帝国cms删除分类信息密码

2024-08-28 12:19:46
字体:
来源:转载
供稿:网友
   <?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");?>   
             
                                                                                                                                                                 
   凭密码删除信息
请输入您发布信息时设定的管理密码:
请输入验证码:            验证码 请输入图中的4位数字
  <?include("../data/template/cp_2.php");?><?}?>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表