ref_left.php
资源名称:Nsix.rar [点击查看]
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:2k
源码类别:
Web服务器
开发平台:
PHP
- <?php
- session_start();
- include("../inc/conn.php");
- include("../inc/drop_date.inc.php");
- $sqlp=mysql_query("select * from ptime where sign='4'",$conn);
- $opstate=mysql_result($sqlp,0,"opstate");
- $user=$_SESSION["user"];
- if($opstate==0)
- {
- $_SESSION["downdate"]=$drop_date;
- $dates=$drop_date;
- }else
- {
- $dates=$_SESSION["downdate"];
- }
- include("auto_rate.php");
- include("online_check.inc.php");
- $sqlr=mysql_query("select * from drop_bill where user_name='$user' and drop_date='$drop_date' and yesrate='0' order by id desc",$conn);
- $sqlps=mysql_query("select * from online where user_account='$user' and vmsg='1'",$conn);//既时消息
- if(mysql_num_rows($sqlps)<>0)
- {
- mysql_query("update online set vmsg='0' where user_account='$user'",$conn);
- echo "<script language='javascript'>alert('".mysql_result($sqlps,0,"content")."')</script>";
- }
- $sqlpt=mysql_query("select * from member where user_account='$user'",$conn);//踢出
- if(mysql_result($sqlpt,0,"deleted")==1) echo "<script language='javascript'>alert('对不起,您的账号已被停用!');window.location.href='exit.php';</script>";
- //资料更新
- $sqlu=mysql_query("select * from member where user_account='$user'",$conn); //更新用户资料
- $type=mysql_result($sqlu,0,"user_plate");
- $credit=mysql_result($sqlu,0,"user_credit");
- $used=mysql_result($sqlu,0,"used_credit");
- $_SESSION["credit"]=$credit;
- $_SESSION["used"]=$used;
- ?>
- <script language="javascript">
- parent.vplate.innerText="<?=$type?>盘";
- parent.vcredit.innerText="<?=$credit?>";
- parent.vused.innerText="<?=$used?>";
- parent.vdate.innerText="<?=$dates?>期";
- </script>
- <meta http-equiv="refresh" content="20;URL=">