艾辉 发表于 2017-4-1 06:35:55

fudel_ok.php源代码分析

<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</script>  <?php
  include("../conn/conn.php");
  %包含数据库连接文件
  $id=$_GET;
  %获得付费信息号
  $type=$_GET;
  %获得付费信息的类别
  $state=$_GET;
  %获得付费信息的状态
  $sql=mysql_query("delete from tb_leaguerinfo where id=$id");
  %查询字符串
  if($sql){
  echo "<script>alert('该信息已经删除!');window.location.href='find_fufei.php?type=$type&state=$state';</script>";
  %若删除成功,则用JavaScript提示用户“该信息已经删除”
  }
  else{
  echo "<script>alert('该信息删除操作失败!');history.back();</script>";
  %否则,提示用户“该信息删除失败”
  }
  ?>
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
页: [1]
查看完整版本: fudel_ok.php源代码分析