close_plate.php
来自「一套鼎盛六合彩网上投注系统,投注系统运行于php+mysql.」· PHP 代码 · 共 49 行
PHP
49 行
<?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>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?