forked from guwensen/ssc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfn4.php
136 lines (133 loc) · 6.87 KB
/
fn4.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?php
define('Copyright', '作者QQ:1834219632');
define('ROOT_PATH', $_SERVER["DOCUMENT_ROOT"].'/');
include_once ROOT_PATH.'function/cheCookie.php';
global $user, $UserOut, $stratGamegx, $endGamegx;
if ($_SERVER["REQUEST_METHOD"] != "GET") exit("GetError");
if ($user[0]['g_look'] == 2 || $user[0]['g_out'] != 1)
exit(back($UserOut));
$dateTime = date('Y-m-d H:i:s');
if ( $dateTime < $stratGamegx || $dateTime > $endGamegx){
back('開盤時間為:'.$stratGamegx.'--'.$endGamegx);exit;
}
if (!Matchs::isNumber($_GET['v'],9,9)||!Matchs::isString($_GET['n'], 2, 3)||!Matchs::isStringChi($_GET['t']))
exit(back('Error'));
$n = $_GET['n']; //號碼
$v = $_GET['v']; //期數
$t = $_GET['t']; //遊戲玩法
$t = gameTypeFormatgx($t);
$odds = GetOddsgx ($t, $n); //獲取賠率
$ConfigModel= configModel("`g_max_money`,`g_mix_money`, `g_odds_ratio_gx_b1`,`g_odds_ratio_gx_b2`,`g_odds_ratio_gx_b3`,`g_odds_ratio_gx_b4`,`g_odds_ratio_gx_b5`,`g_odds_ratio_gx_c1`,`g_odds_ratio_gx_c2`,`g_odds_ratio_gx_c3`,`g_odds_ratio_gx_c4`,`g_odds_ratio_gx_c5`");
if ($t=='總和、龍虎'){
$odds = setoddsgx($n, $odds, $ConfigModel, $user, 1);
} else {
$odds = setoddsgx($n, $odds, $ConfigModel, $user, 0);
}
$n = trim(strtr($n, "h"," "));
$n = GetBallByString_gx ($t, $n);
$result = GetUserXianErgx ($t, $n, $user[0]['g_name']);
$max = GetUser_s_gx ($result, $user,$t,$n);
$max1 = $max['DanZhu_XianEr']; //單注限額
$max2 = $max['DanHao_XianE']; //單號限額
$max3 = $max['DanHao_YiXia']; //單號已下
$max4 = $max['DanQi_XianEr']; //單期限額
$max5 = $max['DanQi_YiXia']; //單期已下
$gMoney = $max['KeYongEr']; //可用額
$_n = base64_encode($n);
$_v = base64_encode($v);
$_t = base64_encode($t);
$guid = sha1(uniqid(time(),TRUE));
$_SESSION['guid_code'] = $guid;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" oncontextmenu="return false">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="css/left.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="./js/sc.js"></script>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="./js/sGetgx.js"></script>
<style type="text/css">
body {background-color:#FFEFE2}
</style>
</head>
<body>
<form id="dp" action="" method="post">
<input type="hidden" name="number_1" value="<?php echo $v?>" />
<input type="hidden" name="number_2" value="<?php echo $_n?>" />
<input type="hidden" name="actions" value="fn" />
<input type="hidden" name="gtypes" value="1" />
<input type="hidden" name="types" value="<?php echo $_t?>" />
<input type="hidden" name="hid" value="<?php echo $_GET['n']?>" />
<table border="0" cellpadding="0" cellspacing="1" class="t_list" width="230">
<tr>
<td class="t_list_caption" colspan="2"><span id="tys"><?php echo $t?></span> - 下註</td>
</tr>
<tr>
<td class="t_td_caption_1" width="64">會員帳戶</td>
<td class="t_td_text" width="137"> <?php echo $user[0]['g_name']?>(<?php echo $user[0]['g_panlu']?>盤)</td>
</tr>
<tr>
<td class="t_td_caption_1">可用金額</td>
<td class="t_td_text"> <?php echo is_Number($gMoney)?></td>
</tr>
<tr>
<td class="t_td_text" colspan="2" align="center">
<span style="color:#009933; font-weight:bold"><?php echo $v?>期</span><br />
<?php
if($t == '總和、龍虎') {
echo $nn = '<span style="color:#0000FF"><span>'.$n.'</span></span>@';
} else {
echo $nn = '<span style="color:#0000FF">'.$t.'『<span>'.$n.'</span> 』</span>@';
}
?>
<span style="color:red; font-weight:bold" id="odds"><?php echo $odds?></span>
</td>
</tr>
<tr>
<td class="t_td_caption_1" width="64">下註金額</td>
<td class="t_td_text" width="137"> <input type="text" class="inp1" name="money" id="money" onkeyup="only(this)" onfocus="this.className='inp1m'" onblur="this.className='inp1';" maxlength="9" /></td>
</tr>
<tr>
<td class="t_td_caption_1" width="64">可贏金額</td>
<td class="t_td_text" width="137" id="countOdds"> 0</td>
</tr>
<tr>
<td class="t_td_caption_1" width="64">最高派彩</td>
<td class="t_td_text" width="137" id="pc"><?php echo $ConfigModel['g_max_money']?></td>
</tr>
<tr>
<td class="t_td_caption_1" width="64">最低額度</td>
<td class="t_td_text" width="137" id="mix"><?php echo $ConfigModel['g_mix_money']?></td>
</tr>
<tr>
<td class="t_td_caption_1" width="64">單注限額</td>
<td class="t_td_text" width="137" id="max1"><?php echo $max1?></td>
</tr>
<tr>
<td class="t_td_caption_1" width="64">單號限額</td>
<td class="t_td_text" width="137" id="max2"><?php echo $max2?></td>
</tr>
<tr>
<td class="t_td_caption_1" width="64">單號已下</td>
<td class="t_td_text" width="137" id="max3"><?php echo $max3?></td>
</tr>
<tr>
<td class="t_td_caption_1" width="64">單期限額</td>
<td class="t_td_text" width="137" id="max4"><?php echo $max4?></td>
</tr>
<tr>
<td class="t_td_caption_1" width="64">單期已下</td>
<td class="t_td_text" width="137" id="max5"><?php echo $max5?></td>
</tr>
<tr>
<td class="t_td_but" colspan="2" align="center">
<input type="button" value="取消" onclick="location.href='left.php'" class="inputq" />
<input type="submit" value="下註" id="submitv" class="inputq" />
</td>
</tr>
</table>
</form>
</body>
</html>