ref_left.php
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:2k
源码类别:

Web服务器

开发平台:

PHP

  1. <?php
  2. session_start();
  3. include("../inc/conn.php");
  4. include("../inc/drop_date.inc.php");
  5. $sqlp=mysql_query("select * from ptime where sign='4'",$conn); 
  6. $opstate=mysql_result($sqlp,0,"opstate"); 
  7. $user=$_SESSION["user"];
  8. if($opstate==0) 
  9. $_SESSION["downdate"]=$drop_date;
  10. $dates=$drop_date;
  11. }else
  12. {
  13. $dates=$_SESSION["downdate"];
  14. }
  15. include("auto_rate.php");
  16. include("online_check.inc.php");
  17. $sqlr=mysql_query("select * from drop_bill where user_name='$user' and drop_date='$drop_date' and yesrate='0' order by id desc",$conn);
  18. $sqlps=mysql_query("select * from online where user_account='$user' and vmsg='1'",$conn);//既时消息
  19. if(mysql_num_rows($sqlps)<>0)
  20. {
  21.   mysql_query("update online set vmsg='0' where user_account='$user'",$conn);
  22.   echo "<script language='javascript'>alert('".mysql_result($sqlps,0,"content")."')</script>";
  23.  }
  24.  $sqlpt=mysql_query("select * from member where user_account='$user'",$conn);//踢出
  25.   if(mysql_result($sqlpt,0,"deleted")==1) echo "<script language='javascript'>alert('对不起,您的账号已被停用!');window.location.href='exit.php';</script>";
  26. //资料更新
  27. $sqlu=mysql_query("select * from member where user_account='$user'",$conn);  //更新用户资料
  28. $type=mysql_result($sqlu,0,"user_plate");
  29. $credit=mysql_result($sqlu,0,"user_credit");
  30. $used=mysql_result($sqlu,0,"used_credit");
  31. $_SESSION["credit"]=$credit;
  32. $_SESSION["used"]=$used;
  33. ?>
  34. <script language="javascript">
  35. parent.vplate.innerText="<?=$type?>盘";
  36. parent.vcredit.innerText="<?=$credit?>";
  37. parent.vused.innerText="<?=$used?>";
  38. parent.vdate.innerText="<?=$dates?>期";
  39. </script>
  40. <meta http-equiv="refresh" content="20;URL=">