📄 umain_check.php
字号:
<?php
session_start();
include_once("../inc/conn.php");
include_once($_SESSION["inclanguage"]);
include_once("check.php");
include_once("../inc/for_test.class.php");
include_once("configs.inc.php");
include_once("tnum_close.php");
include("../inc/now_dates.php");
if($tclose==1) echo "<script>window.location='uleft.php';</script>";
$user=$_SESSION["user"];
$downdate=$_SESSION["downdate"];
$drop_date=$_SESSION["downdate"];
$open_date=$_SESSION["opendate"];
$open_date=str_replace("-","",$open_date);
$plate=$_SESSION["plate"];
$agent=$_SESSION["agent"];
$all_agent=$_SESSION["all_agent"];
$super_agent=$_SESSION["super_agent"];
include_once("../inc/cut.inc.php");
$agent_profit=$_SESSION["agent_profit"];
$all_agent_profit=$_SESSION["all_agent_profit"];
$super_agent_profit=$_SESSION["super_agent_profit"];
?>
<link href="../styles/css_g/css2.CSS" rel="stylesheet" type="text/css">
<meta http-equiv="refresh" content="10; URL=uleft.php">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
background-image: url(../images/order_ph31.gif);
background-color: #C0C0C0;
}
.style1 {font-weight: bold}
-->
</style>
<?php
include_once("../inc/cut.inc.php");
if(isset($_GET["act"]))
{
$rcount=$_POST["rcount"];
$leave=$_SESSION["credit"]-$_SESSION["used"];
if($leave<$rcount)
{
echo "<script language='javascript'> alert('".$pn_creditmsg."!');window.location.href='uleft.php'</script>";
}else
{
$ys=0;
if(isset($_POST["drop_number_t"])) //t
{
$number_type=$_POST["number_type"];
$drop_number_t=$_POST["drop_number_t"];
$drop_type_t=$_POST["drop_type_t"];
$drop_rate_t=$_POST["drop_rate_t"];
$drop_money_t=$_POST["drop_money_t"];
if($number_type=="a")
{
$number_type="特码A"; //>>>>>>>>>>>>>>>>>>>>
$drop_tm="A";
$cut_sign=1;
}else
{
$number_type="特码B";
$drop_tm="B";
$cut_sign=0;
}
$a_t=split(",",$drop_number_t);
$c_t=split(",",$drop_rate_t);
$d_t=split(",",$drop_money_t);
$cut = cut( $cut_sign );
$drop_agent_cut=cut_num($agent,$cut_sign,$plate);
$drop_all_agent_cut=cut_num($all_agent,$cut_sign,$plate);
$drop_super_agent_cut=cut_num($super_agent,$cut_sign,$plate);
//if($drop_tm=="B") $cut=0;
for($i=0;$i<count($a_t)-1;$i++)
{ $sqlyz=mysql_query("select rate from num where num='$a_t[$i]' and sign='1' and user_account='$guser'",$conn); //赔率变动check
$prate=mysql_result($sqlyz,0,"rate");
if($drop_tm=="B") $prate+=$abrate;
$prate-=$_SESSION["tpnum"];
if($prate<>$c_t[$i])
{ $c_t[$i]=$prate;
$yesrate=1;
$ys=1;
$_SESSION["yesrate"]=1;
}else $yesrate=0;
$pcheck=$vp->profit_test($a_t[$i],'',$d_t[$i],$c_t[$i],$cut,1);
$sqltt=mysql_query("insert into drop_bill(agent,all_agent,super_agent,user_name,drop_date,
open_date,drop_type,drop_tm,drop_content,drop_rate,drop_cut,cut_sign,drop_money,sign,num_sign,
drop_plate,drop_agent_cut,drop_all_agent_cut,drop_super_agent_cut,yesrate,pcheck,agent_profit,all_agent_profit,super_agent_profit)values('$agent','$all_agent',
'$super_agent','$user','$downdate','$open_date','$number_type','$drop_tm','$a_t[$i]','$c_t[$i]',
'$cut','$cut_sign','$d_t[$i]','1','1','$plate','$drop_agent_cut','$drop_all_agent_cut','$drop_super_agent_cut','$yesrate','$pcheck','$agent_profit','$all_agent_profit','$super_agent_profit')",$conn);
//bs
if($sqltt) $money+=$d_t[$i];
}
}
if(isset($_POST["drop_number_d"])) //d
{
$drop_number_d=$_POST["drop_number_d"];
$drop_type_d=$_POST["drop_type_d"];
$number_type="特码";
$drop_rate_d=$_POST["drop_rate_d"];
$drop_cut_d=$_POST["drop_cut_d"];
$cut_sign_d=$_POST["cut_sign_d"];
$drop_money_d=$_POST["drop_money_d"];
$a_d=split(",",$drop_number_d);
$c_d=split(",",$drop_rate_d);
$cut_d=split(",",$drop_cut_d);
$sign_d=split(",",$cut_sign_d);
$d_d=split(",",$drop_money_d);
for($i=0;$i<count($a_d)-1;$i++)
{
$drop_agent_cut=cut_num($agent,$sign_d[$i],$plate);
$drop_all_agent_cut=cut_num($all_agent,$sign_d[$i],$plate);
$drop_super_agent_cut=cut_num($super_agent,$sign_d[$i],$plate);
$sqlyz=mysql_query("select rate from num where tp='$a_d[$i]' and sign='2' and user_account='$guser'",$conn); //赔率变动check
$prate=@mysql_result($sqlyz,0,"rate");
$prate-=$_SESSION["tdnum"];
if(trim($prate)<>trim($c_d[$i])):
$c_d[$i]=$prate;
$yesrate=1;
$ys=1;
$_SESSION["yesrate"]=1;
else:
$yesrate=0;
endif;
$pcheck=$vp->profit_test($a_d[$i],'',$d_d[$i],$c_d[$i],$cut_d[$i],2);
$sqldd=mysql_query("insert into drop_bill(agent,all_agent,super_agent,user_name,drop_date,open_date,drop_type,
drop_content,drop_rate,drop_cut,cut_sign,drop_money,sign,num_sign,drop_plate,drop_agent_cut,
drop_all_agent_cut,drop_super_agent_cut,yesrate,pcheck,agent_profit,all_agent_profit,super_agent_profit)values('$agent','$all_agent','$super_agent',
'$user','$downdate','$open_date','$number_type','$a_d[$i]','$c_d[$i]','$cut_d[$i]','$sign_d[$i]','$d_d[$i]','1','2','$plate',
'$drop_agent_cut','$drop_all_agent_cut','$drop_super_agent_cut','$yesrate','$pcheck','$agent_profit','$all_agent_profit','$super_agent_profit')",$conn);
//bs
if($sqldd) $money+=$d_d[$i];
}
}
if(isset($_POST["drop_number_d"])) //c
{
$drop_number_c=$_POST["drop_number_c"];
$drop_type_c=$_POST["drop_type_c"];
$number_type="特码";
$drop_rate_c=$_POST["drop_rate_c"];
$drop_cut_c=$_POST["drop_cut_c"];
$cut_sign_c=$_POST["cut_sign_c"];
$drop_money_c=$_POST["drop_money_c"];
$a_c=split(",",$drop_number_c);
$c_c=split(",",$drop_rate_c);
$cut_c=split(",",$drop_cut_c);
$sign_c=split(",",$cut_sign_c);
$d_c=split(",",$drop_money_c);
for($i=0;$i<count($a_c)-1;$i++)
{
$drop_agent_cut=cut_num($agent,$sign_c[$i],$plate);
$drop_all_agent_cut=cut_num($all_agent,$sign_c[$i],$plate);
$drop_super_agent_cut=cut_num($super_agent,$sign_c[$i],$plate);
$sqlyz=mysql_query("select rate from num where tp='$a_c[$i]' and sign='7' and user_account='$guser'",$conn); //赔率变动check
$prate=mysql_result($sqlyz,0,"rate");
$prate-=$_SESSION["tcnum"];
if(trim($prate)<>trim($c_c[$i]))
{ $c_c[$i]=$prate;
$yesrate=1;
$ys=1;
$_SESSION["yesrate"]=1;
}else $yesrate=0;
$pcheck=$vp->profit_test($a_c[$i],'',$d_c[$i],$c_c[$i],$cut_c[$i],7);
$sqlcc=mysql_query("insert into drop_bill(agent,all_agent,super_agent,user_name,
drop_date,open_date,drop_type,drop_content,drop_rate,drop_cut,cut_sign,drop_money,
sign,num_sign,drop_plate,drop_agent_cut,drop_all_agent_cut,drop_super_agent_cut,yesrate,pcheck,agent_profit,all_agent_profit,super_agent_profit)values('$agent',
'$all_agent','$super_agent','$user','$downdate','$open_date','$number_type','$a_c[$i]','$c_c[$i]',
'$cut_c[$i]','$sign_c[$i]','$d_c[$i]','1','7','$plate','$drop_agent_cut','$drop_all_agent_cut','$drop_super_agent_cut','$yesrate','$pcheck','$agent_profit','$all_agent_profit','$super_agent_profit')",$conn);
//bs
if($sqlcc) $money+=$d_c[$i];
}
}
if(isset($_POST["drop_number_d"])) //a
{
$drop_number_a=$_POST["drop_number_a"];
$drop_type_a=$_POST["drop_type_a"];
$number_type="特码";
$drop_rate_a=$_POST["drop_rate_a"];
$drop_cut_a=$_POST["drop_cut_a"];
$cut_sign_a=$_POST["cut_sign_a"];
$drop_money_a=$_POST["drop_money_a"];
$a_a=split(",",$drop_number_a);
$c_a=split(",",$drop_rate_a);
$cut_a=split(",",$drop_cut_a);
$sign_a=split(",",$cut_sign_a);
$d_a=split(",",$drop_money_a);
for($i=0;$i<count($a_a)-1;$i++)
{$drop_agent_cut=cut_num($agent,$sign_a[$i],$plate);
$drop_all_agent_cut=cut_num($all_agent,$sign_a[$i],$plate);
$drop_super_agent_cut=cut_num($super_agent,$sign_a[$i],$plate);
$sqlyz=mysql_query("select rate from num where tp='$a_a[$i]' and sign='6' and user_account='$guser'",$conn); //赔率变动check
$prate=mysql_result($sqlyz,0,"rate");
$prate-=$_SESSION["tanum"];
if(trim($prate)<>trim($c_a[$i]))
{ $c_a[$i]=$prate;
$yesrate=1;
$ys=1;
$_SESSION["yesrate"]=1;
}else $yesrate=0;
$sqlaa=mysql_query("insert into drop_bill(agent,all_agent,super_agent,user_name,drop_date,
open_date,drop_type,drop_content,drop_rate,drop_cut,cut_sign,drop_money,sign,num_sign,
drop_plate,drop_agent_cut,drop_all_agent_cut,drop_super_agent_cut,yesrate,agent_profit,all_agent_profit,super_agent_profit)values('$agent','$all_agent',
'$super_agent','$user','$downdate','$open_date','$number_type','$a_a[$i]','$c_a[$i]','$cut_a[$i]',
'$sign_a[$i]','$d_a[$i]','1','6','$palte','$drop_agent_cut','$drop_all_agent_cut','$drop_super_agent_cut','$yesrate','$agent_profit','$all_agent_profit','$super_agent_profit')",$conn);
//bs
if($sqlaa) $money+=$d_a[$i];
}
}$moneys=$money+$_SESSION["used"];
$ys=mysql_query("update member set used_credit='$moneys' where user_account='$user'",$conn);
if($ys) $_SESSION["used"]+=$money;
$sqlr=mysql_query("select * from drop_bill where sign='1' and user_name='$user' order by id desc",$conn);
?>
<table width="220" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="23" background="../images/order_ph11.gif">
</td></tr>
<tr>
<td height="36" background="../images/order_ph21.jpg"><div align="center" class="fw12"><?=$pn_pourstate?>
</div></td>
</tr>
<tr>
<td><table width="220" height="74" border="0" align="left" cellpadding="2" cellspacing="1" class="t12">
<tr align="center" class="t11">
<td><div align="center" class="fw12"><?=$pn_pourtype?></div></td>
<td><div align="center" class="fw12"><?=$pn_pourcontent?></div></td>
<td><div align="center" class="fw12"><?=$pn_rate?></div></td>
<td height="26">
<div align="center" class="fw12"><?=$pn_pourmoney?></div></td>
<td class="fw12"><?=$pn_state?></td>
<?php if($rowr["yesrate"]=="1") echo '<td class="fw12"> </td>';?>
</tr>
<?php
$psp=0;
while($rowr=mysql_fetch_array($sqlr))
{
if($rowr["yesrate"]=="1")
{ $ts="class='t13'";
$psp=1;
}else
{
$ts="class='t15'";
}?>
<tr align="center" class="t20" <?=$ts?>>
<td height="22"><?=$rowr["drop_type"]?></td>
<td height="22"><?=$rowr["drop_content"]?></td>
<td height="22">
<div align="right">
<?
$ratets=$rowr["drop_rate"];
echo $ratets;
?>
</div></td>
<td height="22">
<div align="center">
<?=$rowr["drop_money"]?>
</div></td>
<td><div align="center" class="fgreng">
<? if($rowr["yesrate"]=="1")
{ echo "<font color='red'>".$pn_loser."</font>";
}else echo $pn_success;?></div></td>
</tr>
<?
$all_money+=$rowr["drop_money"];
}
mysql_query("update drop_bill set sign='0' where user_name='$user'",$conn);
?> <tr class="t11">
<td height="22" colspan="3" nowrap><div align="right" class="fw12"><?=$pn_count?>:</div></td>
<td height="22" nowrap><div align="right" class="fw12"><?=$all_money?></div></td>
<td align="center" nowrap></td>
</tr>
</table></td>
</tr>
<tr>
<td></td>
</tr>
</table>
<div align="center"><?php
if($psp==1)
{ $us="'umain_check_yes.php'";
$up="'umain_check_yes.php?act=yes'";
echo '<div align="center"><input type="button" name="Submit3" value="'.$pn_cancelpour.'" onClick="javascript:window.location.href='.$up.'" class="buttonrmin"> ';
echo '<input type="button" name="Submit3" value="'.$pn_againpour.'" onClick="javascript:window.location.href='.$us.'" class="buttongmin"></div>';
}else echo '<a href="uleft.php">['.$pn_back.']</a> <meta http-equiv="refresh" content="20;URL=uleft.php">';
}
}else
{
?></div>
<script language="javascript">
function fs()
{
myform.fsubmit.value="<?=$pn_waitting?>..";
myform.fsubmit.disabled=true;
parent.MainFrame.myform.reset();
myform.submit();
}
</script>
<table width="220" border="0" align="center" cellpadding="0" cellspacing="0">
<form name="myform" method="post" action="umain_check.php?act=yes"><tr>
<td height="23" background="../images/order_ph11.gif">
</td></tr>
<tr>
<td height="36" background="../images/order_ph21.jpg"><div align="center" class="fw12"><?=$pn_pourdetails?></div></td>
</tr>
<tr>
<td><table width="220" height="74" border="0" align="left" cellpadding="0" cellspacing="1" class="t12">
<tr class="t11">
<td><div align="center" class="fw12"><?=$pn_pourtype?></div></td>
<td><div align="center" class="fw12"><?=$pn_pourcontent?></div></td>
<td><div align="center" class="fw12"><?=$pn_rate?></div></td>
<td height="22">
<div align="center" class="fw12"><?=$pn_pourmoney?></div></td>
</tr>
<?
$minrmb=$drop_lows;
$check=null;
for($i=1;$i<=49;$i++)
{
if(strlen($i)==1)
{ $n="0".$i;
}else $n=$i;
$sp="t".$n;
$totxt=$_POST[$sp];
if($totxt<>"") $check.=$n.",";
}
//$check=@$_POST["check"];
$znumber=@$_POST["tnumber"];
$rs=$znumber;
if($znumber=="a")
{
$znumber="特码A";
$drop_tm="A";
}else
{
$znumber="特码B";
$drop_tm="B";
}
$list=split(",",$check);
function unit($arr) //td单项
{ global $user,$conn;
$sql_limit=mysql_query("select unit_limit from member_cut where user_account='$user' and sign='$arr'",$conn);
return mysql_result($sql_limit,0,"unit_limit");
}
function pour($arr) //td单注
{ global $user,$conn;
$sqlp_limit=mysql_query("select pour_limit from member_cut where user_account='$user' and sign='$arr'",$conn);
$units=mysql_result($sqlp_limit,0,"pour_limit");
return $units;
}
function unit_alert($drop_text,$cuts,$unites,$dropmsd)
{ global $conn,$user,$drop_date;
$sqltms=mysql_query("select sum(drop_money) from drop_bill where drop_date='$drop_date' and user_name='$user' and drop_content='$drop_text' and cut_sign='$cuts' ",$conn);
$myrowd=mysql_fetch_array($sqltms);
$tmcountd=$myrowd[0];
$laddd=$dropmsd+$tmcountd;
if($laddd>$unites) echo "<script language='javascript'> alert('".$drop_text." ".$pn_unitlimitnomax." ".$unites."!');history.back(-1);</script>";
}
$units=unit(1);
$pours=pour(1);
function outscript($arr)
{
echo "<script language='javascript'>".$arr."</script>";
}
$x=0;
for($i=0;$i<count($list)-1;$i++)
{
$p="t".$list[$i];
$txt=@$_POST[$p];
if($txt<>"")
{
$msg=1;
if($txt<$minrmb)
{
outscript("alert('".$pn_pourlimitlow." ".$minrmb."');history.back(1);");
}else
{
if(substr($txt,0,1)=="0") $txt=substr($txt,1,strlen($txt));
if($txt<>"") $checks.=$list[$i].",";
$rmb_count+=$txt;
$dropms=$txt;
$x+=1;
$t+=$p.",";
?>
<tr class="t20">
<td><div align="center">
<?=$znumber?>
</div></td>
<td><div align="center">
<?=$list[$i]?>
</div></td>
<td><div align="center">
<?php
$sql=mysql_query("select rate from num where sign='1' and num='$list[$i]' and user_account='$guser' order by id asc",$conn);
$rate=mysql_result($sql,0,"rate");
//单项限额
$sqltm=mysql_query("select sum(drop_money) from drop_bill where drop_date='$drop_date' and user_name='$user' and drop_content='$list[$i]' and num_sign='1'",$conn);
$myrow=mysql_fetch_array($sqltm);
$tmcount=$myrow[0];
$ladd=$dropms+$tmcount;
if($dropms>$pours) echo "<script language='javascript'> alert('".$znumber." ".$list[$i]." ".$pn_pourlimitnomax." ".$pours."!');history.back(-1);</script>";
if($ladd>$units) echo "<script language='javascript'> alert('".$znumber." ".$list[$i]." ".$pn_numunitlimitnomax." ".$units."!');history.back(-1);</script>";
if($rs=="a"):
// echo $rs.$plate;
$ratets=$rate;
if($plate=="A")
{ $rateds=$ratets;
$_SESSION["tpnum"]=0;
}
if($plate=="B")
{ $rateds=$ratets-0.5;
$_SESSION["tpnum"]=0.5;
}
if($plate=="C")
{ $rateds=$ratets-1;
$_SESSION["tpnum"]=1;
}
$droprate_t.=$rateds.",";
echo $rateds;
else:
$ratets=$rate+$abrate;
if($plate=="A")
{ $rateds=$ratets;
$_SESSION["tpnum"]=0;
}
if($plate=="B")
{ $rateds=$ratets-0.5;
$_SESSION["tpnum"]=0.5;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -