close_plate.php
资源名称:Nsix.rar [点击查看]
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:2k
源码类别:
Web服务器
开发平台:
PHP
- <?php
- include("../inc/conn.php");
- session_start();
- include("check.php");
- $user=$_SESSION["user"];
- $sqlp=mysql_query("select * from ptime where sign='4'",$conn);
- $opstate=mysql_result($sqlp,0,"opstate");
- $hand=mysql_result($sqlp,0,"hand");
- if($hand==0)
- {
- $sqlop=mysql_query("select * from ptime where now_sign='1'",$conn);
- $open_time=mysql_result($sqlop,0,"open_time");
- $tnum_time=mysql_result($sqlop,0,"tnum_close_time");
- if($opstate==1)
- {
- $ltime=split(" ",$open_time);
- $ymd=split("-",$ltime[0]);
- $hms=split(":",$ltime[1]);
- $open_times=mktime($hms[0],$hms[1],$hms[2],$ymd[1],$ymd[2],$ymd[0]);
- $limit_time=$open_times-time();
- $ttime=split(" ",$tnum_time);
- $tymd=split("-",$ttime[0]);
- $thms=split(":",$ttime[1]);
- $topen_times=mktime($thms[0],$thms[1],$thms[2],$tymd[1],$tymd[2],$tymd[0]);
- $tlimit_time=time()-$topen_times;
- if($limit_time<=0&&$tlimit_time<=0)
- {
- //mysql_query("update num set bnum='0'",$conn); //更新倍数
- $sqls=mysql_query("update ptime set opstate='0',tnum='0',other='0' where sign='4'",$conn);
- if($sqls) echo "<meta http-equiv='refresh' content='20;URL=umain.php'>";
- }
- }
- }
- ?>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link href="../css/css2.CSS" rel="stylesheet" type="text/css">
- <style type="text/css">
- <!--
- body {
- margin-left: 0px;
- }
- -->
- </style></head>
- <body>
- <?php include_once("now_results2.php");?>
- <iframe name=yyes id="yyes" src="" frameBorder="0" width="0" scrolling="no" height="0" ></iframe>
- </body>