⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 close_plate_main.php

📁 六和投注系统
💻 PHP
字号:
<?php 
include("../inc/conn.php");
session_start();
include("check.php");
$user=$_SESSION["user"];
$sqlp=mysql_query("select opstate,hand 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 open_time,tnum_close_time 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='2;URL=umain.php'>";
  }
 }
}
echo "<script language='javascript'>window.location='umanage.php';</script>";
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -