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

📄 umainzt_check.php

📁 六和投注系统
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<?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( "other_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'];
echo "<link href=\"../styles/css_g/css2.CSS\" rel=\"stylesheet\" type=\"text/css\">\r\n<meta http-equiv=\"refresh\" content=\"10; URL=uleft.php\">\r\n";
echo "<s";
echo "tyle type=\"text/css\">\r\n<!--\r\nbody {\r\n\tmargin-left: 0px;\r\n\tmargin-top: 0px;\r\n\tbackground-image: url(../images/order_ph31.gif);\r\n\tbackground-color: #C0C0C0;\r\n}\r\n.style1 {font-weight: bold}\r\n-->\r\n</style>\r\n";
include_once("../inc/cut.inc.php");
$sign_=1;

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'] ) )
		{
			$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 == "zt1" ){
				$number_type = "正1特";
				$sign_=20;
				$cut_sign = 20;
			}else if ($number_type == "zt2"){
				$sign_=21;
				$number_type = "正2特";
				$cut_sign = 21;
			}else if ($number_type == "zt3"){
				$sign_=22;
				$cut_sign = 22;
				$number_type = "正3特";
			}else if ($number_type == "zt4"){
				$cut_sign = 23;
				$sign_=23;
				$number_type = "正4特";
			}else if ($number_type == "zt5"){
				$cut_sign = 24;
				$sign_=24;
				$number_type = "正5特";
			}else if ($number_type == "zt6"){
				$cut_sign = 25;
				$sign_=25;
				$number_type = "正6特";
			}else{
				$cut_sign = 20;
				$sign_=20;
				$number_type = "正1特";
			}
			$drop_tm = "";
			$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;
			}
			$i = 0;
			for ( ;	$i <count($a_t)-1;$i++)
			{
				$sqlyz = mysql_query( "select rate from  num where num='{$a_t[$i]}' and sign='$cut_sign' and user_account='{$guser}'", $conn );
				$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,\r\n\topen_date,drop_type,drop_tm,drop_content,drop_rate,drop_cut,cut_sign,drop_money,sign,num_sign,\r\n\tdrop_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}',\r\n\t'{$super_agent}','{$user}','{$downdate}','{$open_date}','{$number_type}','{$drop_tm}','{$a_t[$i]}','{$c_t[$i]}',\r\n\t'{$cut}','{$cut_sign}','{$d_t[$i]}','$cut_sign','$cut_sign','{$plate}','{$drop_agent_cut}','{$drop_all_agent_cut}','{$drop_super_agent_cut}','{$yesrate}','{$pcheck}','{$agent_profit}','{$all_agent_profit}','{$super_agent_profit}')", $conn );
				
				if ( $sqltt )
				{
					$money += $d_t[$i];
				}
			}

		//	continue;
			
		}
		if ( isset( $_POST['drop_number_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 );
			$i = 0;
			
			for ( ;	$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 );
				$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;
				}
				$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,\r\n\t drop_content,drop_rate,drop_cut,cut_sign,drop_money,sign,num_sign,drop_plate,drop_agent_cut,\r\n\t drop_all_agent_cut,drop_super_agent_cut,yesrate,pcheck,agent_profit,all_agent_profit,super_agent_profit)values('{$agent}','{$all_agent}','{$super_agent}',\r\n\t'{$user}','{$downdate}','{$open_date}','{$number_type}','{$a_d[$i]}','{$c_d[$i]}','{$cut_d[$i]}','{$sign_d[$i]}','{$d_d[$i]}','1','2','{$plate}',\r\n\t'{$drop_agent_cut}','{$drop_all_agent_cut}','{$drop_super_agent_cut}','{$yesrate}','{$pcheck}','{$agent_profit}','{$all_agent_profit}','{$super_agent_profit}')", $conn );
				
				if ( $sqldd )
				{
					$money += $d_d[$i];
				}
			}
			//continue;
		}
		if ( isset( $_POST['drop_number_d'] ) )
		{
			$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 );
			$i = 0;
			for ( ;	$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 );
				$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,\r\n\tdrop_date,open_date,drop_type,drop_content,drop_rate,drop_cut,cut_sign,drop_money,\r\n\tsign,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}',\r\n\t'{$all_agent}','{$super_agent}','{$user}','{$downdate}','{$open_date}','{$number_type}','{$a_c[$i]}','{$c_c[$i]}',\r\n\t'{$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 );
				if ( $sqlcc )
				{
					$money += $d_c[$i];
				}
			}
			//continue;
		}
		if ( isset( $_POST['drop_number_d'] ) )
		{
			$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 );
			$i = 0;
			for ( ;	$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 );
				$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,\r\n\topen_date,drop_type,drop_content,drop_rate,drop_cut,cut_sign,drop_money,sign,num_sign,\r\n\tdrop_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}',\r\n\t'{$super_agent}','{$user}','{$downdate}','{$open_date}','{$number_type}','{$a_a[$i]}','{$c_a[$i]}','{$cut_a[$i]}',\r\n\t'{$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 );
				if ( $sqlaa )
				{
					$money += $d_a[$i];
				}
			}
			//continue;
		}
		$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='$sign_' and user_name='{$user}' order by id desc", $conn );
		echo "    <table width=\"220\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n      <tr>\r\n        <td height=\"34\" background=\"../images/left_up.jpg\"><div align=\"center\" class=\"fw12\">";
		echo $pn_pourstate;
		echo "        </div></td>\r\n      </tr>\r\n      <tr>\r\n        <td><table width=\"220\" height=\"74\"  border=\"0\" align=\"left\" cellpadding=\"2\" cellspacing=\"1\" class=\"t12\">\r\n          <tr align=\"center\" class=\"t11\">\r\n            <td><div align=\"center\" class=\"fw12\">";
		echo $pn_pourtype;
		echo "</div></td>\r\n            <td><div align=\"center\" class=\"fw12\">";
		echo $pn_pourcontent;
		echo "</div></td>\r\n            <td><div align=\"center\" class=\"fw12\">";
		echo $pn_rate;
		echo "</div></td>\r\n            <td height=\"26\">\r\n              <div align=\"center\" class=\"fw12\">";
		echo $pn_pourmoney;
		echo "</div></td>\r\n            <td class=\"fw12\">";
		echo $pn_state;
		echo "</td>\r\n            ";
		if ( $rowr['yesrate'] == "1" )
		{
			echo "<td class=\"fw12\">&nbsp;</td>";
		}
		echo "          </tr>\r\n          ";
		$psp = 0;
		while ( $rowr = mysql_fetch_array( $sqlr ) )
		{
			if ( $rowr['yesrate'] == "1" )
			{
				$ts = "class='t13'";
				$psp = 1;
			}
			else
			{
				$ts = "class='t15'";
			}
			echo "          <tr align=\"center\" class=\"t20\" ";
			echo $ts;
			echo ">\r\n            <td height=\"22\">";
			echo $rowr['drop_type'];
			echo "</td>\r\n            <td height=\"22\">";
			echo $rowr['drop_content'];
			echo "</td>\r\n            <td height=\"22\">\r\n              <div align=\"right\">\r\n                ";
			$ratets = $rowr['drop_rate'];
			echo $ratets;
			echo "            </div></td>\r\n            <td height=\"22\">\r\n              <div align=\"center\">\r\n                ";
			echo $rowr['drop_money'];
			echo "            </div></td>\r\n            <td><div align=\"center\" class=\"fgreng\">\r\n\t\t\t";
			if ( $rowr['yesrate'] == "1" )
			{
				echo "<font color='red'>".$pn_loser."</font>";
			}
			else
			{
				echo $pn_success;
			}
			echo "</div></td>\r\n          </tr>\r\n          ";
			$all_money += $rowr['drop_money'];
		}
		mysql_query( "update drop_bill set sign='0' where user_name='{$user}'", $conn );
		echo " <tr class=\"t11\">\r\n            <td height=\"22\" colspan=\"3\" nowrap><div align=\"right\" class=\"fw12\">";
		echo $pn_count;
		echo ":</div></td>\r\n            <td height=\"22\" nowrap><div align=\"right\" class=\"fw12\">";
		echo $all_money;

⌨️ 快捷键说明

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