shenyg 发表于 2017-4-1 06:35:06

gg_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;
  %获得广告的id
  $flag=$_GET;
  %获取“是否推荐”的值
  $sql=mysql_query("update tb_advertising set flag=1 where id=$id");
  %更新字符串
  if($sql){
  echo "<script>alert('该信息已被推荐!');window.location.href='find_gg.php?flag=$flag';</script>";
  %若更新成功,则提示“该信息已被推荐”
  }
  else{
  echo "<script>alert('该信息推荐操作失败!');history.back();</script>";
  %否则,提示“该信息推荐操作失败”
  }
  ?>
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
页: [1]
查看完整版本: gg_ok.php源代码分析