国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > CMS > 帝國(guó)Empire > 正文

帝國(guó)cms刪除分類信息密碼

2024-07-09 22:58:23
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友
   <?phpif($navinfor['password']){echo "<a href='/e/delnews/fwxx.php?classid=[!--self.classid--]&id=[!--id--]' target='_blank'>刪除信息</a>(需密碼)";}?>

這個(gè)文件下的內(nèi)容

<?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'];//檢查參數(shù)if(!$classid || !$id){   echo"<script>alert('Error!');history.go(-1);</script>";   exit();}if ($_POST['enews']=='DelNews'){$key=$_POST['key'];$password=$_POST['password'];//驗(yàn)證碼$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"<script>alert('此信息密碼為空或不存在,不能刪除!');history.go(-1);</script>";    exit();   }//驗(yàn)證信息密碼if ($password==$r[password]){   $r=$empire->query("update {$dbtbpre}ecms_fwxx set checked='0' where classid='$classid' and id='$id'");   echo"<script>alert('您的刪除請(qǐng)求已提交,該信息將在12小時(shí)內(nèi)刪除!');window.location='/';</script>";}else{   echo"<script>alert('信息密碼錯(cuò)誤,請(qǐng)核對(duì)密碼后再試!');window.location='fwxx.php?classid=$classid&id=$id';</script>";}}else{?><script language="javascript" type="text/javascript">function checkForm(){var frm;frm = document.getElementById("form1");if(frm.password.value == ""){   alert("密碼不能為空!");   frm.password.focus();   return false;}if(frm.key.value.length < 4){   alert("請(qǐng)?zhí)顚?xiě)驗(yàn)證碼");   frm.key.focus();   return false;}return true;}</script><?include("../data/template/cp_1.php");?><body onLoad="document.form1.password.focus()">   <form action="fwxx.php?classid=<?=$classid?>&id=<?=$id?>" method="post" name="form1" id="form1" onSubmit="return checkForm()"><input name="enews" type="hidden" value="DelNews"><table width="50%" border="0" align="center" cellpadding="0" cellspacing="0">   <tr>     <td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#A3E7AD">          <tr>            <td height="30" colspan="2" bgcolor="#EBF8E1">&nbsp;&nbsp;<img src="../../265nn_images/icon_w.gif" width="10" height="13" align="absmiddle" /> <span class="000000_s">憑密碼刪除信息</span></td>          </tr>          <tr>            <td width="46%" align="right" bgcolor="#FFFFFF">請(qǐng)輸入您發(fā)布信息時(shí)設(shè)定的管理密碼:</td>            <td width="54%" bgcolor="#FFFFFF"><input type="password" id="password" name="password" /></td>          </tr>          <tr>            <td align="right" bgcolor="#FFFFFF">請(qǐng)輸入驗(yàn)證碼:</td>            <td bgcolor="#FFFFFF"><input name="key" type="text" id="key" size="4" />            <img src="/e/ShowKey?ecms" alt="驗(yàn)證碼" align="absmiddle"> <span class="notes">請(qǐng)輸入圖中的4位數(shù)字</span></td>          </tr>          <tr>            <td height="50" colspan="2" bgcolor="#FFFFFF" align="center"><input name="Submit" type="image" id="Submit" value="確 定" src="../../265nn_images/banner_tj.gif"></td>            </tr>        </table></td>      </tr></table></form>  <?include("../data/template/cp_2.php");?><?}?>
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 南昌市| 高平市| 临沭县| 河间市| 临西县| 凭祥市| 遂宁市| 白沙| 吐鲁番市| 宝应县| 伊宁市| 卢龙县| 拜城县| 泽库县| 台中市| 蓝田县| 海伦市| 克山县| 开鲁县| 青铜峡市| 铜川市| 张家港市| 嘉义县| 顺昌县| 宜川县| 开化县| 四川省| 永昌县| 丰台区| 涡阳县| 萍乡市| 巴彦淖尔市| 广西| 巨鹿县| 黔南| 武鸣县| 峡江县| 宁南县| 凤台县| 客服| 阳东县|