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

📄 tnum_close.php

📁 六和投注系统
💻 PHP
字号:
<?php 
$tclose=0;
include_once("close_space.inc.php");
$sqlcs=mysql_query("select opstate,tnum,hand from ptime where sign='4'",$conn);
$all_close=mysql_result($sqlcs,0,"opstate");
$tnum_close=mysql_result($sqlcs,0,"tnum");
$hand=mysql_result($sqlcs,0,"hand");
if ($hand==1) $tclose=1;
$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
$tnum_closes=mysql_result($sqlop,0,"tnum_close_time");   //tnum
$ltime=split(" ",$tnum_closes);//tnum
$ymd=split("-",$ltime[0]);
$hms=split(":",$ltime[1]);
$limit_times=mktime($hms[0],$hms[1],$hms[2],$ymd[1],$ymd[2],$ymd[0]);  //设定时间
$limit_time=$limit_times-time();
$oltime=split(" ",$open_time);//open
$oymd=split("-",$oltime[0]);
$ohms=split(":",$oltime[1]);
$olimit_times=mktime($ohms[0],$ohms[1],$ohms[2],$oymd[1],$oymd[2],$oymd[0]);  //设定时间
$olimit_time=$olimit_times-time();
if($olimit_time>=0)
{
 mysql_query("update ptime set opstate='1',tnum='1',other='1' where sign='4'",$conn);
 $tclose=1;
}
if($limit_time<=0)
{
$sqlcl=mysql_query("update ptime set tnum='1',opstate='1',other='1' where sign='4'",$conn);   //tnum close
}
if($all_close==1) $tclose=1;
if($tnum_close==1) $tclose=1;

if($hand==0)
{
$tnum_time=$tnum_closes; 
if($all_close==1)
{
$limit_time=$olimit_times-time();
$tlimit_time=time()-$limit_times;
  if($limit_time<=0&&$tlimit_time<=0)
  {
   $sqls=mysql_query("update ptime set opstate='0',tnum='0',other='0' where sign='4'",$conn);
   if($sqls) $tclose=0;
  }
 }
}

$user_close=$limit_time-$close_space;
if($user_close<=0) $tclose=1;
?>


⌨️ 快捷键说明

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