forked from xserve98/xmweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bet.php
863 lines (822 loc) · 38.1 KB
/
bet.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
<?php
session_start();
//ini_set('display_errors','yes');
if(!isset($_SESSION["uid"]) || !isset($_SESSION["username"])){
echo "<script type=\"text/javascript\" language=\"javascript\">window.location.href='/left.php';</script>";
exit();
}
include_once("include/config.php");
include_once("include/mysqli.php");
include_once("include/mysqlis.php");
include_once("common/logintu.php");
include_once("common/function.php");
//这里要进行时间判断
$uid = $_SESSION['uid'];
$loginid = $_SESSION['user_login_id'];
//checkuserlogin($uid);
renovate($uid,$loginid); //验证是否登陆
/* 加密数据防止作弊 2014.03.12 BEGIN */
include_once("ajaxleft/postkey.php");
$sum = count($_POST["match_id"]);
for($i=0;$i<$sum;$i++){
$ball_sort = $_POST["ball_sort"][$i];
$column = $_POST["point_column"][$i];
$match_name = $_POST["match_name"][$i];
$master_guest = $_POST["master_guest"][$i];
$match_id = $_POST["match_id"][$i];
$tid = $_POST["tid"][$i];
$bet_info = $_POST["bet_info"][$i];
$touzhuxiang = $_POST["touzhuxiang"][$i];
$match_showtype = $_POST["match_showtype"][$i];
$match_rgg = $_POST["match_rgg"][$i];
$match_dxgg = $_POST["match_dxgg"][$i];
$match_nowscore = $_POST["match_nowscore"][$i];
$bet_point = $_POST["bet_point"][$i];
$match_type = $_POST["match_type"][$i];
$ben_add = $_POST["ben_add"][$i];
$match_time = $_POST["match_time"][$i];
$match_endtime = $_POST["match_endtime"][$i];
$Match_HRedCard = $_POST["Match_HRedCard"][$i];
$Match_GRedCard = $_POST["Match_GRedCard"][$i];
$orderinfo = $ball_sort.$column.$match_name.$master_guest.$match_id.$tid.$bet_info.$touzhuxiang;
$orderinfo .= $match_showtype.$match_rgg.$match_dxgg.$match_nowscore.$bet_point.$match_type;
$orderinfo .= $ben_add.$match_time.$match_endtime.$Match_HRedCard.$Match_GRedCard.$is_lose;
$orderkey = StrToHex($orderinfo,$postkey);
$postorderkey = $_POST["orderkey"][$i];
if($orderkey!=$postorderkey){
go("信息被篡改,投注失败,请返回重新投注!");
exit();
}
}
/* 加密数据防止作弊 2014.03.12 END */
/* 验证提交来路 BEGIN 2013.11.18 */
$servername=$_SERVER['SERVER_NAME'];
$sub_from=$_SERVER["HTTP_REFERER"];
$sub_len=strlen($servername);
$checkfrom=substr($sub_from,7,$sub_len);
if($checkfrom!=$servername){
//踢线,停用账户,记录本次非法操作记录!
$sql = "update k_user_login set `is_login`=0 where uid='$uid'"; //踢线
$mysqli->query($sql);
$why = "(2)会员ID:".$_SESSION["uid"].",账户名:".$_SESSION["username"]."在 ".date("Y-m-d H:i:s")." 非法访问注单下注页(bet.php)。投注信息:".$_POST["ball_sort"][0]." ".$_POST['touzhuxiang'][0].",投注金额:".$_POST["bet_money"][0];
//直接停用会员
$sql = "UPDATE k_user set is_stop=1,why=concat_ws(',',why,'$why') where uid='$uid'"; //停用账户
$mysqli->query($sql);
unset($_SESSION["uid"],$_SESSION["gid"],$_SESSION["username"]);
session_destroy();
go("错误的操作!如有疑问,请联系在线客服!(2)");
}
/* 验证提交来路 END */
if($_SESSION["check_action"] !== 'true'){ //用户用软件打水
//踢线,停用账户,记录本次非法操作记录!
$sql = "update k_user_login set `is_login`=0 where uid='$uid'"; //踢线
$mysqli->query($sql);
$why = "(3)会员ID:".$_SESSION["uid"].",账户名:".$_SESSION["username"]."在 ".date("Y-m-d H:i:s")." 非法访问注单下注页(bet.php)。投注信息:".$_POST["ball_sort"][0]." ".$_POST['touzhuxiang'][0].",投注金额:".$_POST["bet_money"][0];
//这里本来是要停用的,暂时就先不停用
$sql = "UPDATE k_user set is_stop=0,why=concat_ws(',',why,'$why') where uid='$uid'"; //停用账户
$mysqli->query($sql);
unset($_SESSION["uid"],$_SESSION["gid"],$_SESSION["username"]);
session_destroy();
go("错误的操作!如有疑问,请联系在线客服!(3)");
}
function str_leng($str){ //取字符串长度
mb_internal_encoding("UTF-8");
return mb_strlen($str)*12;
}
function check_point($ballsort,$column,$match_id,$point,$rgg,$dxgg,$tid=0,$index=0){
global $db_table;
$pk = array("Match_Ho","Match_Ao","Match_DxDpl","Match_DxXpl","Match_BHo","Match_BAo","Match_Bdpl","Match_Bxpl"); //让球大小盘口
$t = array(array("cn"=>"足球波胆","db_table"=>"bet_match"),
array("cn"=>"足球单式","db_table"=>"bet_match"),
array("cn"=>"足球上半场","db_table"=>"bet_match"),
array("cn"=>"足球早餐","db_table"=>"bet_match"),
array("cn"=>"足球滚球","db_table"=>"zqgq_match"),
array("cn"=>"篮球单式","db_table"=>"lq_match"),
array("cn"=>"篮球单节","db_table"=>"lq_match"),
array("cn"=>"篮球滚球","db_table"=>"lqgq_match"),
array("cn"=>"篮球早餐","db_table"=>"lq_match"),
array("cn"=>"排球单式","db_table"=>"volleyball_match"),
array("cn"=>"网球单式","db_table"=>"tennis_match"),
array("cn"=>"棒球单式","db_table"=>"baseball_match"),
array("cn"=>"冠军","db_table"=>"t_guanjun_team"),
array("cn"=>"金融","db_table"=>"t_guanjun_team"));
foreach ($t as $m){
if($m['cn']==$ballsort){
$db_table=$m['db_table'];
}
}
//把水位和让球与大小盘口设为字符串形式,以便下面绝对判断
$rgg = "".$rgg;
$dxgg = "".$dxgg;
$point = "".$point;
if($db_table=="zqgq_match" || $db_table=="lqgq_match"){ //足球滚球、篮球滚球不验证数据库,直接验证缓存文件
if($db_table == "zqgq_match"){
include_once("include/function_cj1.php");
if(zqgq_cj()){ //不管怎样,重新采集一次
include("cache/zqgq.php"); //重新载入
}else{
go("网络异常,交易失败2");
}
$existmatch=false;
for($i=0; $i<count($zqgq);$i++){
if(@$zqgq[$i]['Match_ID'] == $match_id)
{
$existmatch=true;
break;
}
}
if(!$existmatch)
{
go("盘口已关闭,交易失败");
}
if($zqgq[$i][$column] < 0.01){
go("盘口已关闭,交易失败");
}
if($zqgq[$i][$column] === $point){
if(in_array($column,$pk)){ //盘口
if(($column=="Match_Ho" || $column=="Match_Ao") && $zqgq[$i]["Match_RGG"] !== $rgg){ //全场让球盘口改已变
if($zqgq[$i]["Match_RGG"] == ''){
go("盘口已关闭,交易失败");
}else{
confirm('盘口',$zqgq[$i]["Match_RGG"],$point,$zqgq[$i]["Match_RGG"],$zqgq[$i]["Match_DxGG"]);
}
}elseif(($column=="Match_BHo" || $column=="Match_BAo") && $zqgq[$i]["Match_BRpk"] !== $rgg){ //上半场让球盘口改已变
if($zqgq[$i]["Match_BRpk"] == ''){
go("盘口已关闭,交易失败");
}else{
confirm('盘口',$zqgq[$i]["Match_BRpk"],$point,$zqgq[$i]["Match_BRpk"],$zqgq[$i]["Match_Bdxpk"]);
}
}elseif(($column=="Match_DxDpl" || $column=="Match_DxXpl") && $zqgq[$i]["Match_DxGG"] !== $dxgg){ //全场大小盘口改已变
if($zqgq[$i]["Match_DxGG"] == ''){
go("盘口已关闭,交易失败");
}else{
confirm('盘口',$zqgq[$i]["Match_DxGG"],$point,$zqgq[$i]["Match_RGG"],$zqgq[$i]["Match_DxGG"]);
}
}elseif(($column=="Match_Bdpl" || $column=="Match_Bxpl") && $zqgq[$i]["Match_Bdxpk"] !== $dxgg){ //上半场大小盘口改已变
if($zqgq[$i]["Match_Bdxpk"] == ''){
go("盘口已关闭,交易失败");
}else{
confirm('盘口',$zqgq[$i]["Match_Bdxpk"],$point,$zqgq[$i]["Match_BRpk"],$zqgq[$i]["Match_Bdxpk"]);
}
}
}
return true;
}else{//水位变动
confirm('水位',$zqgq[$i][$column],$zqgq[$i][$column],$rgg,$dxgg);
}
}else{
include_once("include/function_cj1.php");
if(lqgq_cj()){ //重新采集一次,保证是最新的
include("cache/lqgq.php"); //重新载入
}else{
go("网络异常,交易失败");
}
$existmatch=false;
for($i=0; $i<count($lqgq);$i++){
if(@$lqgq[$i]['Match_ID'] == $match_id)
{
$existmatch=true;
break;
}
}
if(!$existmatch)
{
go("盘口已关闭,交易失败");
}
if($lqgq[$i][$column] < 0.01){
go("盘口已关闭,交易失败");
}
if($lqgq[$i][$column] === $point){
if(in_array($column,$pk)){ //盘口
if(($column=="Match_Ho" || $column=="Match_Ao") && $lqgq[$i]["Match_RGG"] !== $rgg){ //全场让球盘口改已变
if($lqgq[$i]["Match_RGG"] == '' || $lqgq[$i]["Match_RGG"] == 0){
go("盘口已关闭,交易失败");
}else{
confirm('盘口',$lqgq[$i]["Match_RGG"],$point,$lqgq[$i]["Match_RGG"],$lqgq[$i]["Match_DxGG"]);
}
}elseif(($column=="Match_DxDpl" || $column=="Match_DxXpl") && $lqgq[$i]["Match_DxGG"] !== $dxgg){ //全场大小盘口改已变
if($lqgq[$i]["Match_DxGG"] == '' || $lqgq[$i]["Match_DxGG"] == 0){
go("盘口已关闭,交易失败");
}else{
confirm('盘口',$lqgq[$i]["Match_DxGG"],$point,$lqgq[$i]["Match_RGG"],$lqgq[$i]["Match_DxGG"]);
}
}
}
return true;
}else{//水位变动
confirm('水位',$lqgq[$i][$column],$lqgq[$i][$column],$rgg,$dxgg);
}
}
}else{
global $mysqlis;
if($db_table == "t_guanjun_team"){
if($tid){
$sql = "select t.point from t_guanjun_team t,t_guanjun g where t.tid=$tid and t.xid=g.x_id and g.Match_CoverDate>now() limit 1"; //赛事未结束
$query = $mysqlis->query($sql);
$rs = $query->fetch_array();
$newpoint = "".sprintf("%.2f",$rs["point"]);
if($newpoint===$point){
return true;
}else{ //水位变动
if($newpoint == 0){
go("盘口已关闭,交易失败");
}else{
confirm('水位',$newpoint,$newpoint);
}
}
}
}else{
global $touzhutype;
$other = "";
if($db_table == "bet_match")
$other = ",Match_BRpk,Match_Bdxpk";
$sql = "select Match_RGG,Match_DxGG,$column $other from $db_table where match_id=$match_id and Match_CoverDate>now() limit 1"; //赛事未结束
//echo $sql;
//echo $sql;echo "333<br>";exit;
$query = $mysqlis->query($sql);
$rs = $query->fetch_array();
$newpoint = "".sprintf("%.2f",$rs["$column"]);
if($newpoint===$point){
if(in_array($column,$pk)){ //盘口
if(($column=="Match_Ho" || $column=="Match_Ao") && $rs["Match_RGG"] !== $rgg){ //全场让球盘口改已变
if($touzhutype == 1){ //串关
confirm_cg('盘口',$rs["Match_RGG"],$point,$rs["Match_RGG"],$rs["Match_DxGG"],$index);
}else{ //单式
confirm('盘口',$rs["Match_RGG"],$point,$rs["Match_RGG"],$rs["Match_DxGG"]);
}
}elseif(($column=="Match_DxDpl" || $column=="Match_DxXpl") && $rs["Match_DxGG"] !== $dxgg){ //全场大小盘口改已变
if($touzhutype == 1){ //串关
confirm_cg('盘口',$rs["Match_DxGG"],$point,$rs["Match_RGG"],$rs["Match_DxGG"],$index);
}else{ //单式
confirm('盘口',$rs["Match_DxGG"],$point,$rs["Match_RGG"],$rs["Match_DxGG"]);
}
}elseif(($column=="Match_BHo" || $column=="Match_BAo") && $rs["Match_BRpk"] !== $rgg){ //上半场让球盘口改已变
if($touzhutype == 1){ //串关
confirm_cg('盘口',$rs["Match_BRpk"],$point,$rs["Match_BRpk"],$rs["Match_Bdxpk"],$index);
}else{ //单式
confirm('盘口',$rs["Match_BRpk"],$point,$rs["Match_BRpk"],$rs["Match_Bdxpk"]);
}
}elseif(($column=="Match_Bdpl" || $column=="Match_Bxpl") && $rs["Match_Bdxpk"] !== $dxgg){ //上半场大小盘口改已变
if($touzhutype == 1){ //串关
confirm_cg('盘口',$rs["Match_Bdxpk"],$point,$rs["Match_BRpk"],$rs["Match_Bdxpk"],$index);
}else{ //单式
confirm('盘口',$rs["Match_Bdxpk"],$point,$rs["Match_BRpk"],$rs["Match_Bdxpk"]);
}
}
}
return true;
}else{ //水位变动
if($newpoint == 0){
go("盘口已关闭,交易失败");
}else{
if($touzhutype == 1){ //串关
confirm_cg('水位',$newpoint,$newpoint,$rgg,$dxgg,$index);
}else{ //单式
confirm('水位',$newpoint,$newpoint,$rgg,$dxgg);
}
}
}
}
}
}
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>投注状态</title>
<style>
body{ background-color:#E6E6E6;}
</style>
</head>
<body leftmargin="4px" rightmargin="0" topmargin="0">
<?php
$uid = $_SESSION["uid"];
$touzhutype = trim($_POST["touzhutype"]);
$bet_point = $_POST["bet_point"][0]*1;
$bet_money = trim($_POST["bet_money"]);
$point_column = $_POST["point_column"][0];
$arr_add = array('Match_Ho','Match_Ao','Match_DxDpl','Match_DxXpl','Match_BHo','Match_BAo','Match_Bdpl','Match_Bxpl','Match_DFzDpl','Match_DFzXpl','Match_DFkDpl','Match_DFkXpl');
$bet_win = $bet_money*$bet_point; //可赢金额=交易金额*当前水位
if(in_array($point_column,$arr_add)){ //让球,大小,半场让球,半场大小,可赢金额要加上本金
$bet_win += $bet_money;
}
echo '<font style="display:none">'.investSZ($uid).'</font>';
if(is_numeric($bet_money) && is_int($bet_money*1)){
include_once("cache/group_".@$_SESSION["gid"].".php"); //加载权限组权限
$bet_money = $bet_money*1;
//会员余额
$balance = 0;
$assets = 0;
$sql = "SELECT money FROM k_user where uid=$uid limit 1";
$query = $mysqli->query($sql);
$rs = $query->fetch_array();
if($rs['money']){
$assets = round($rs['money'],2);
$balance= $assets-$bet_money;
}
if($balance<0){ //投注后,用户余额不能小于0
go("账户余额不足<br>交易失败");
}
$ty_zd = @$pk_db['体育最低'];
if ($ty_zd > 0) {
$ty_zd = $ty_zd;
} else {
$ty_zd = 10;
}
if($bet_money<$ty_zd){
go("交易金额不能少于 $ty_zd RMB!");
}
/*
if(investSZ($uid)>=1){
go("操作频繁<br>交易失败");
}*/
if($touzhutype == 0){ //单式
$ball_sort = $_POST["ball_sort"][0];
$column = $_POST["point_column"][0];
$match_name = $_POST["match_name"][0];
$master_guest = $_POST["master_guest"][0];
$match_id = $_POST["match_id"][0];
$tid = $_POST["tid"][0];
$bet_info = $_POST["bet_info"][0];
$touzhuxiang = $_POST['touzhuxiang'][0];
$match_showtype = $_POST["match_showtype"][0];
$match_rgg = $_POST["match_rgg"][0];
$match_dxgg = $_POST["match_dxgg"][0];
$match_nowscore = $_POST["match_nowscore"][0];
$bet_point = $_POST["bet_point"][0];
$match_type = $_POST["match_type"][0];
$ben_add = $_POST["ben_add"][0];
$match_time = $_POST["match_time"][0];
$match_endtime = $_POST["match_endtime"][0];
$Match_HRedCard = $Match_GRedCard = 0;
//限额判断
if($ball_sort == "冠军" || $ball_sort == "金融"){
$dz=@$dz_db["$ball_sort"];
$dc=@$dc_db["$ball_sort"];
}else{
$dz=@$dz_db["$ball_sort"]["$touzhuxiang"];
$dc=@$dc_db["$ball_sort"]["$touzhuxiang"];
}
if(!$dz || $dz=="") $dz=$dz_db['未定义'];
if(!$dc || $dc=="") $dc=$dc_db['未定义'];
if($bet_money>$dz){ //判断单场限额,判断原因:用软件来投注,才会有此问题
go("交易金额多于系统限额");
}
//判断当天限额,判断原因:用软件来投注,才会有此问题
$s_t = strftime("%Y-%m-%d",time())." 00:00:00";
$e_t = strftime("%Y-%m-%d",time())." 23:59:59";
$sql = "select sum(bet_money) as s from `k_bet` where match_id=$match_id and uid=$uid and bet_time>='$s_t' and bet_time<='$e_t' and `status` not in(3,8) limit 1"; //无效跟平手不当成投注
$query = $mysqli->query($sql);
$rs = $query->fetch_array(); //取出单场总下注金额
if(!$rs['s'] || $rs['s']=="null") $rs['s']=0;
if(($rs['s']+$bet_money)>$dc){
go("交易金额多于系统限额");
}
if(time()>strtotime($match_endtime) && !strpos($ball_sort,"滚球")){ //不是滚球,赛事已结束,无法投注
go("赛事已结束<br>交易失败");
}elseif(strpos($master_guest,'先開球') && time()+300>strtotime($match_endtime)){ //先開球提前 5 分钟关盘
go("盘口已关闭<br>交易失败");
}
check_point($ball_sort,$column,$match_id,$bet_point,$match_rgg,$match_dxgg,$tid); //验证水位是否变动
/* 验证比赛信息是否正确 BEGIN 2013.11.18 */
if(($db_table!="zqgq_match" && $db_table!="lqgq_match"))
{
if($db_table!='t_guanjun_team')
{
$chk_sql="select match_name,match_type,match_time,Match_CoverDate from $db_table where match_id=$match_id limit 1";
$chk_query=$mysqlis->query($chk_sql);
$chk_rs=$chk_query->fetch_array();
if($chk_rs["match_name"]!=$match_name || $chk_rs["match_type"]!=$match_type || $chk_rs["match_time"]!=$match_time || $chk_rs["Match_CoverDate"]!=$match_endtime)
{
//踢线,停用账户,记录本次非法操作记录!
$sql = "update k_user_login set `is_login`=0 where uid='$uid'"; //踢线
$mysqli->query($sql);
$why = "(4)会员ID:".$_SESSION["uid"].",账户名:".$_SESSION["username"]."在 ".date("Y-m-d H:i:s")." 非法访问注单下注页(bet.php)。投注信息:".$_POST["ball_sort"][0]." ".$_POST['touzhuxiang'][0].",投注金额:".$_POST["bet_money"][0];
//直接停用会员
$sql = "UPDATE k_user set is_stop=1,why=concat_ws(',',why,'$why') where uid='$uid'"; //停用账户
$mysqli->query($sql);
unset($_SESSION["uid"],$_SESSION["gid"],$_SESSION["username"]);
session_destroy();
go("错误的操作!如有疑问,请联系在线客服!(4)");
}
}
else
{
$chk_sql="select Match_CoverDate from t_guanjun where match_id=$match_id limit 1";
$chk_query=$mysqlis->query($chk_sql);
$chk_rs=$chk_query->fetch_array();
if($chk_rs["Match_CoverDate"]!=$match_endtime)
{
//踢线,停用账户,记录本次非法操作记录!
$sql = "update k_user_login set `is_login`=0 where uid='$uid'"; //踢线
$mysqli->query($sql);
$why = "(5)会员ID:".$_SESSION["uid"].",账户名:".$_SESSION["username"]."在 ".date("Y-m-d H:i:s")." 非法访问注单下注页(bet.php)。投注信息:".$_POST["ball_sort"][0]." ".$_POST['touzhuxiang'][0].",投注金额:".$_POST["bet_money"][0];
//直接停用会员
$sql = "UPDATE k_user set is_stop=1,why=concat_ws(',',why,'$why') where uid='$uid'"; //停用账户
$mysqli->query($sql);
unset($_SESSION["uid"],$_SESSION["gid"],$_SESSION["username"]);
session_destroy();
go("错误的操作!如有疑问,请联系在线客服!(5)");
}
}
}
/* 验证比赛信息是否正确 END */
$ksTime = $_POST["match_endtime"][0]; //赛事开赛时间
if($_POST["is_lose"]==1){ //走地需要确认
$lose_ok=0;
if($ball_sort == "足球滚球"){ //足球滚球要记录红牌(赛事自动审核需要)
$Match_HRedCard = $_POST["Match_HRedCard"][0];
$Match_GRedCard = $_POST["Match_GRedCard"][0];
}
}else{ //不是滚球不需要确认
$lose_ok=1;
}
if(!$match_type || $match_type=="") $match_type='1'; //为空统一为单式;(1:单式、2:滚球)
$bet_info = write_bet_info($ball_sort,$column,$master_guest,$bet_point,$match_showtype,$match_rgg,$match_dxgg,$match_nowscore,$tid);
include_once("class/bet_ds.php");
if(bet_ds::dx_add($uid,$ball_sort,strtolower($column),$match_name,$master_guest,$match_id,$bet_info,$bet_money,$bet_point,$ben_add,$bet_win,$match_time,$match_endtime,$lose_ok,$match_showtype,$match_rgg,$match_dxgg,$match_nowscore,$match_type,$balance,$assets,$Match_HRedCard,$Match_GRedCard,$ksTime)){
if($_POST["is_lose"]==1){
go("交易确认中");
}else{
go("交易成功");
}
}else{
go("交易失败1");
}
}else{
//限额判断
$dz = $dz_db["串关"];
$dc = $dc_db["串关"];
if(!$dz || $dz=="") $dz = $dz_db['未定义'];
if(!$dc || $dc=="") $dc = $dc_db['未定义'];
if($bet_money>$dz){ //目前只判断单场限额,判断原因:用软件来投注,才会有此问题
go("交易金额多于系统限额");
}
//判断当天限额,判断原因:用软件来投注,才会有此问题
$s_t = strftime("%Y-%m-%d",time())." 00:00:00";
$e_t = strftime("%Y-%m-%d",time())." 23:59:59";
$sql = "select sum(bet_money) as s from `k_bet_cg_group` where uid=".$_SESSION["uid"]." and bet_time>='$s_t' and bet_time<='$e_t' and `status`!=3"; //无效跟平手不当成投注
$query = $mysqli->query($sql);
$rs = $query->fetch_array(); //取出串关当天总下注金额
if(!$rs['s'] || $rs['s']=="null") $rs['s'] = 0;
if(($rs['s']+$bet_money)>$dc){
go("交易金额多于系统限额");
}
$width = 0; //宽
$name1 = ''; //保存联赛名称
$guest1 = ''; //保存队伍名称
$info1 = ''; //保存交易信息
$bet_win = 0; //可赢金额默认为0
$point = 1; //水位默认为1
$ksTime = $_POST["match_endtime"][0]; //赛事开赛时间,默认取第一个的日期时间
for($i=0;$i<count($_POST["match_id"]);$i++){
check_point($_POST["ball_sort"][$i],$_POST["point_column"][$i],$_POST["match_id"][$i],$_POST["bet_point"][$i],$_POST["match_rgg"][$i],$_POST["match_dxgg"][$i],0,$i);
$bet_point = $_POST["bet_point"][$i]*1;
$point_column = $_POST["point_column"][$i];
if(in_array($point_column,$arr_add)){ //让球,大小,半场让球,半场大小,可赢金额要加上本金
$bet_point+=1;
}
if(str_leng($name1) < str_leng($_POST["match_name"][$i])) $name1 = $_POST["match_name"][$i];
if(str_leng($guest1) < str_leng($_POST["master_guest"][$i])) $guest1 = $_POST["master_guest"][$i];
if(str_leng($info1) < str_leng($_POST["bet_info"][$i])) $info1 = $_POST["bet_info"][$i];
if(strtotime($_POST["match_endtime"][$i]) > strtotime($ksTime)) $ksTime = $_POST["match_endtime"][$i];
$point *= $bet_point; //串关水位为相乘
/* 验证比赛信息是否正确 BEGIN 2013.11.18 */
if(($db_table!="zqgq_match" && $db_table!="lqgq_match"))
{
$chk_match_id=$_POST["match_id"][$i];
$chk_match_name=$_POST["match_name"][$i];
$chk_match_endtime=$_POST["match_endtime"][$i];
if($db_table!='t_guanjun_team')
{
$chk_sql="select match_name,match_time,Match_CoverDate from $db_table where match_id=$chk_match_id limit 1";
$chk_query=$mysqlis->query($chk_sql);
$chk_rs=$chk_query->fetch_array();
if($chk_rs["match_name"]!=$chk_match_name || $chk_rs["Match_CoverDate"]!=$chk_match_endtime)
{
//踢线,停用账户,记录本次非法操作记录!
$sql = "update k_user_login set `is_login`=0 where uid='$uid'"; //踢线
$mysqli->query($sql);
$why = "(4)会员ID:".$_SESSION["uid"].",账户名:".$_SESSION["username"]."在 ".date("Y-m-d H:i:s")." 非法访问注单下注页(bet.php)。投注信息:".$_POST["ball_sort"][0]." ".$_POST['touzhuxiang'][0].",投注金额:".$_POST["bet_money"][0];
//直接停用会员
$sql = "UPDATE k_user set is_stop=1,why=concat_ws(',',why,'$why') where uid='$uid'"; //停用账户
$mysqli->query($sql);
unset($_SESSION["uid"],$_SESSION["gid"],$_SESSION["username"]);
session_destroy();
go("错误的操作!如有疑问,请联系在线客服!(4)");
}
}
else
{
$chk_sql="select Match_CoverDate from t_guanjun where match_id=$chk_match_id limit 1";
$chk_query=$mysqlis->query($chk_sql);
$chk_rs=$chk_query->fetch_array();
if($chk_rs["Match_CoverDate"]!=$chk_match_endtime)
{
//踢线,停用账户,记录本次非法操作记录!
$sql = "update k_user_login set `is_login`=0 where uid='$uid'"; //踢线
$mysqli->query($sql);
$why = "(5)会员ID:".$_SESSION["uid"].",账户名:".$_SESSION["username"]."在 ".date("Y-m-d H:i:s")." 非法访问注单下注页(bet.php)。投注信息:".$_POST["ball_sort"][0]." ".$_POST['touzhuxiang'][0].",投注金额:".$_POST["bet_money"][0];
//直接停用会员
$sql = "UPDATE k_user set is_stop=1,why=concat_ws(',',why,'$why') where uid='$uid'"; //停用账户
$mysqli->query($sql);
unset($_SESSION["uid"],$_SESSION["gid"],$_SESSION["username"]);
session_destroy();
go("错误的操作!如有疑问,请联系在线客服!(5)");
}
}
}
/* 验证比赛信息是否正确 END */
}
$width = str_leng('====='.$name1.'='.$guest1.'='.$info1.$bet_money); //宽
$height = 20*$i; //高
$im = imagecreate($width,$height);
$bkg = imagecolorallocate($im,255,255,255); //背景色
$font = imagecolorallocate($im,150,182,151); //边框色
$sort_c = imagecolorallocate($im,0,0,0); //字体色
$name_c = imagecolorallocate($im,243,118,5); //字体色
$guest_c = imagecolorallocate($im,34,93,156); //字体色
$info_c = imagecolorallocate($im,51,102,0); //字体色
$money_c = imagecolorallocate($im,255,0,0); //字体色
$fnt = "ttf/simhei.ttf";
$cg_count = count($_POST["match_name"]); //串关条数
$bet_win = $point*$bet_money; //可赢金额=交易金额*水位
$mysqli->autocommit(FALSE);
$mysqli->query("BEGIN"); //事务开始
try{
include("cache/conf.php");
$sql = "insert into k_bet_cg_group(uid,cg_count,bet_money,bet_win,balance,assets,www,match_coverdate) values('$uid','$cg_count','$bet_money','$bet_win',$balance,$assets,'$conf_www','$ksTime')"; //添加投注
$mysqli->query($sql);
$q1 = $mysqli->affected_rows;
$gid = $mysqli->insert_id;
$sql = "insert into k_bet_cg(uid,gid,ball_sort,point_column,match_name,master_guest,match_id,bet_info,bet_money,bet_point,ben_add,match_endtime,match_showtype,match_rgg,match_dxgg,match_nowscore) values";
for($i=0;$i<$cg_count;$i++){
$ball_sort = $_POST["ball_sort"][$i];
$column = $_POST["point_column"][$i];
$match_name = $_POST["match_name"][$i];
$master_guest = $_POST["master_guest"][$i];
$match_id = $_POST["match_id"][$i];
$bet_info = $_POST["bet_info"][$i];
$bet_money = $_POST["bet_money"];
$bet_point = $_POST["bet_point"][$i];
$ben_add = $_POST["ben_add"][$i];
$match_showtype = $_POST["match_showtype"][$i];
$match_rgg = $_POST["match_rgg"][$i];
$match_dxgg = $_POST["match_dxgg"][$i];
$match_nowscore = $_POST["match_nowscore"][$i];
$match_endtime = $_POST["match_endtime"][$i];
$bet_info = write_bet_info($ball_sort,$column,$master_guest,$bet_point,$match_showtype,$match_rgg,$match_dxgg,$match_nowscore,$tid);
$sql .= "('$uid','$gid','$ball_sort','".strtolower($column)."','$match_name','$master_guest','$match_id','$bet_info','$bet_money','$bet_point','$ben_add','$match_endtime','$match_showtype','$match_rgg','$match_dxgg','$match_nowscore'),";
imagettftext($im,10,0,7,18*($i+1),$sort_c,$fnt,$ball_sort); //赛事类型
imagettftext($im,10,0,str_leng('======'),18*($i+1),$name_c,$fnt,$match_name); //联赛名称
imagettftext($im,10,0,str_leng('======='.$name1),18*($i+1),$guest_c,$fnt,$master_guest); //队伍名称
imagettftext($im,10,0,str_leng('========'.$name1.$guest1),18*($i+1),$info_c,$fnt,$bet_info); //交易明细
imagettftext($im,10,0,str_leng('======='.$name1.$guest1.$info1),18*($i+1),$money_c,$fnt,$bet_money); //交易金额
}
$sql = rtrim($sql,",");
$mysqli->query($sql);
$q2 = $mysqli->affected_rows;
$sql = "update k_user set money=money-$bet_money where uid=$uid and money>=$bet_money and $balance>=0"; //扣钱
$mysqli->query($sql);
$q3 = $mysqli->affected_rows;
imagerectangle($im,0,0,$width-1,$height-1,$font); //画边框
$datereg = date('Ymd');
if(!is_dir("other/$datereg")) mkdir("other/$datereg");
$q4 = imagejpeg($im,"other/$datereg/$gid.jpg"); //生成图片
imagedestroy($im);
if($q1==1 && $q2==$i && $q3==1 && $q4){
$mysqli->commit(); //事务提交
go("交易成功");
}else{
$mysqli->rollback(); //数据回滚
go("交易失败");
}
}catch(Exception $e){
$mysqli->rollback(); //数据回滚
go("交易失败");
}
}
}else{
go("交易金额有误<br>交易失败");
}
function go($msg){
//$_SESSION["check_action"]=''; //检测用户是否用软件打水标识
// echo "<script>alert('".$msg."');location.href='left.php';</script>";
?>
<table width="100%" style="margin:0px;" cellspacing="0" border="0">
<tr>
<td> </td>
</tr>
<tr>
<td style="color:#000000; height:30px;" align="center"><font style="color:#000000; font-weight:bold"><?=$msg?></font></td>
</tr>
<tr>
<td height="24" align="center"><a style="text-decoration:none; color:#EA7B53; font-size:14px;" href="left.php">2秒后自动返回交易页</a></td>
</tr>
</table>
<meta content="2;url=left.php?<?=rand()?>" http-equiv="refresh" />
<script language="javascript">
<!--
if(self==top){
top.location='/index.php';
}
-->
</script>
<script type="text/javascript" language="javascript" src="/js/left_mouse.js"></script>
</body>
</html>
<?php
exit();
}
function confirm($msg,$type,$pl,$rgg=0,$dxgg=0){
/* 加密数据防止作弊 2014.03.12 BEGIN */
$ball_sort = $_POST["ball_sort"][0];
$column = $_POST["point_column"][0];
$match_name = $_POST["match_name"][0];
$master_guest = $_POST["master_guest"][0];
$match_id = $_POST["match_id"][0];
$tid = $_POST["tid"][0];
$bet_info = $_POST["bet_info"][0];
$touzhuxiang = $_POST["touzhuxiang"][0];
$match_showtype = $_POST["match_showtype"][0];
$match_rgg = $rgg;
$match_dxgg = $dxgg;
$match_nowscore = $_POST["match_nowscore"][0];
$bet_point = $pl;
$match_type = $_POST["match_type"][0];
$ben_add = $_POST["ben_add"][0];
$match_time = $_POST["match_time"][0];
$match_endtime = $_POST["match_endtime"][0];
$Match_HRedCard = $_POST["Match_HRedCard"][0];
$Match_GRedCard = $_POST["Match_GRedCard"][0];
$orderinfo = $ball_sort.$column.$match_name.$master_guest.$match_id.$tid.$bet_info.$touzhuxiang;
$orderinfo .= $match_showtype.$match_rgg.$match_dxgg.$match_nowscore.$bet_point.$match_type;
$orderinfo .= $ben_add.$match_time.$match_endtime.$Match_HRedCard.$Match_GRedCard.$is_lose;
global $postkey;
$orderkey = StrToHex($orderinfo,$postkey);
/* 加密数据防止作弊 2014.03.12 END */
?>
<div style="border:2px solid #8C3928; width:214px; height:113px; background:#FE9901; position:absolute; left: 6px; top: 5px; color:#fffff">
<form id="form1" name="form1" method="post" action="bet.php" style="margin:0 0 0 0;" onsubmit="javascript:document.getElementById('submit').disabled=true;"><table width="155" border="0" align="center" cellspacing="0">
<tr>
<td colspan="2" align="left" valign="middle" style="color:#fff;padding-left:10px; padding-top:10px; font-size:13px;">当前<?=$msg?>已改变</td>
</tr>
<tr>
<td colspan="2" align="left" valign="middle" style="color:red;padding-left:10px; font-size:13px">最新<?=$msg?>:<span style="color:#FF0000; font-size:14px;"><?=$type?></span></td>
</tr>
<tr>
<td colspan="2" align="left" valign="middle" style="color:#ffffff;padding-left:10px; font-size:13px">是否继续交易?</td>
</tr>
<tr>
<td height="47" align="center" valign="middle">
<input type="button" name="Submit2" style="background:#BD363A; color:#FFFFFF; border:0px; width:73px; height:23px; cursor:pointer;" value="取消交易" onclick="goleft();" /></td>
<td height="47" align="center" valign="middle"><input type="submit" name="submit" id="submit" style="background:#1E7EAC; color:#FFFFFF; border:0px; width:73px; height:23px; cursor:pointer;" value="继续交易" /></td>
</tr>
</table>
<input type="hidden" name="orderkey[]" value="<?=$orderkey?>"/>
<input type="hidden" name="bet_money" value="<?=$_POST["bet_money"]?>" />
<input type="hidden" name="touzhutype" value="0" />
<input type="hidden" name="ball_sort[]" value="<?=$_POST["ball_sort"][0]?>" />
<input type="hidden" name="point_column[]" value="<?=$_POST["point_column"][0]?>" />
<input type="hidden" name="match_id[]" value="<?=$_POST["match_id"][0]?>" />
<input type="hidden" name="match_name[]" value="<?=$_POST["match_name"][0]?>" />
<input type="hidden" name="match_showtype[]" value="<?=$_POST["match_showtype"][0]?>" />
<input type="hidden" name="match_rgg[]" value="<?=$rgg?>" />
<input type="hidden" name="match_dxgg[]" value="<?=$dxgg?>" />
<input type="hidden" name="match_nowscore[]" value="<?=$_POST["match_nowscore"][0]?>" />
<input type="hidden" name="match_type[]" value="<?=$_POST["match_type"][0]?>" />
<input type="hidden" name="touzhuxiang[]" value="<?=$_POST["touzhuxiang"][0]?>" />
<input type="hidden" name="master_guest[]" value="<?=$_POST["master_guest"][0]?>"/>
<input type="hidden" name="bet_info[]" value="<?=$_POST["bet_info"][0]?>"/>
<input type="hidden" name="bet_point[]" value="<?=$pl?>"/>
<input type="hidden" name="match_time[]" value="<?=$_POST["match_time"][0]?>"/>
<input type="hidden" name="ben_add[]" value="<?=$_POST["ben_add"][0]?>"/>
<input type="hidden" name="match_endtime[]" value="<?=$_POST["match_endtime"][0]?>"/>
<input type="hidden" name="Match_HRedCard[]" value="<?=$_POST["Match_HRedCard"][0]?>"/>
<input type="hidden" name="Match_GRedCard[]" value="<?=$_POST["Match_GRedCard"][0]?>"/>
<input type="hidden" name="is_lose" value="<?=$_POST["is_lose"][0]?>"/>
<input type="hidden" name="tid" value="<?=$_POST["tid"][0]?>"/>
</form>
</div>
<script language="javascript">
<!--
if(self==top){
top.location='/index.php';
}
function goleft(){
window.location.href="left.php";
}
window.setInterval("goleft()",5000); //5秒未点击,自动退到left.php页面
-->
</script>
<script type="text/javascript" language="javascript" src="/js/left_mouse.js"></script>
</body>
</html>
<?php
exit();
}
function confirm_cg($msg,$type,$pl,$rgg=0,$dxgg=0,$index){
$_SESSION["token"]=$_POST["token"];
$g_arr = explode('VS.',$_POST["master_guest"][$index]);
?>
<div style="border:2px solid #8C3928; width:214px; height:113px; background:#FE9901; position:absolute; left: 6px; top: 5px; color:#fffff">
<form id="form1" name="form1" method="post" action="bet.php" style="margin:0 0 0 0;" onsubmit="javascript:document.getElementById('submit').disabled=true;"><table width="155" border="0" align="center" cellspacing="0" style="color:#ffffff">
<tr>
<td colspan="2" align="center" valign="middle" style=" color:#000;padding-left:5px; padding-top:10px; font-size:13px; color:#005481; font-weight:bold;"><?=$_POST["match_name"][$index]?></td>
</tr>
<tr>
<td colspan="2" align="center" valign="middle" style="color:#000;padding-left:5px; padding-top:10px; font-size:13px; color:#007126;"><?=$g_arr[0]?> <span style="color:#FF0000;">VS.</span> <span style="color:#890209;"><?=$g_arr[1]?></span></td>
</tr>
<tr>
<td colspan="2" align="left" valign="middle" style="color:#000;padding-left:10px; padding-top:10px; font-size:13px;">当前<?=$msg?>已改变</td>
</tr>
<tr>
<td colspan="2" align="left" valign="middle" style="color:red;padding-left:10px; font-size:13px">最新<?=$msg?>:<span style="color:#FF0000; font-size:14px;"><?=$type?></span></td>
</tr>
<tr>
<td colspan="2" align="left" valign="middle" style="color:#000;padding-left:10px; font-size:13px">是否继续交易?</td>
</tr>
<tr>
<td height="47" align="center" valign="middle">
<input type="button" name="Submit2" style="background:#BD363A; color:#FFFFFF; border:0px; width:73px; height:23px; cursor:pointer;" value="取消交易" onclick="goleft();" /></td>
<td height="47" align="center" valign="middle"><input type="submit" name="submit" id="submit" style="background:#1E7EAC; color:#FFFFFF; border:0px; width:73px; height:23px; cursor:pointer;" value="继续交易" /></td>
</tr>
</table>
<input type="hidden" name="bet_money" value="<?=$_POST["bet_money"]?>" />
<input type="hidden" name="touzhutype" value="1" />
<?php
$sum = count($_POST["match_id"]);
for($i=0;$i<$sum;$i++){
if($i == $index){
$_POST["match_rgg"][$i] = $rgg;
$_POST["match_dxgg"][$i] = $dxgg;
$_POST["bet_point"][$i] = $pl;
}
/* 加密数据防止作弊 2014.03.12 BEGIN */
$ball_sort = $_POST["ball_sort"][$i];
$column = $_POST["point_column"][$i];
$match_name = $_POST["match_name"][$i];
$master_guest = $_POST["master_guest"][$i];
$match_id = $_POST["match_id"][$i];
$tid = $_POST["tid"][$i];
$bet_info = $_POST["bet_info"][$i];
$touzhuxiang = $_POST["touzhuxiang"][$i];
$match_showtype = $_POST["match_showtype"][$i];
$match_rgg = $_POST["match_rgg"][$i];
$match_dxgg = $_POST["match_dxgg"][$i];
$match_nowscore = $_POST["match_nowscore"][$i];
$bet_point = $_POST["bet_point"][$i];
$match_type = $_POST["match_type"][$i];
$ben_add = $_POST["ben_add"][$i];
$match_time = $_POST["match_time"][$i];
$match_endtime = $_POST["match_endtime"][$i];
$Match_HRedCard = $_POST["Match_HRedCard"][$i];
$Match_GRedCard = $_POST["Match_GRedCard"][$i];
$orderinfo = $ball_sort.$column.$match_name.$master_guest.$match_id.$tid.$bet_info.$touzhuxiang;
$orderinfo .= $match_showtype.$match_rgg.$match_dxgg.$match_nowscore.$bet_point.$match_type;
$orderinfo .= $ben_add.$match_time.$match_endtime.$Match_HRedCard.$Match_GRedCard.$is_lose;
global $postkey;
$orderkey = StrToHex($orderinfo,$postkey);
/* 加密数据防止作弊 2014.03.12 END */
?>
<input type="hidden" name="orderkey[]" value="<?=$orderkey?>"/>
<input type="hidden" name="ball_sort[]" value="<?=$_POST["ball_sort"][$i]?>" />
<input type="hidden" name="point_column[]" value="<?=$_POST["point_column"][$i]?>" />
<input type="hidden" name="match_id[]" value="<?=$_POST["match_id"][$i]?>" />
<input type="hidden" name="match_name[]" value="<?=$_POST["match_name"][$i]?>" />
<input type="hidden" name="match_showtype[]" value="<?=$_POST["match_showtype"][$i]?>" />
<input type="hidden" name="match_rgg[]" value="<?=$_POST["match_rgg"][$i]?>" />
<input type="hidden" name="match_dxgg[]" value="<?=$_POST["match_dxgg"][$i]?>" />
<input type="hidden" name="match_nowscore[]" value="<?=$_POST["match_nowscore"][$i]?>" />
<input type="hidden" name="match_type[]" value="<?=$_POST["match_type"][$i]?>" />
<input type="hidden" name="master_guest[]" value="<?=$_POST["master_guest"][$i]?>"/>
<input type="hidden" name="bet_info[]" value="<?=$_POST["bet_info"][$i]?>"/>
<input type="hidden" name="bet_point[]" value="<?=$_POST["bet_point"][$i]?>"/>
<input type="hidden" name="match_time[]" value="<?=$_POST["match_time"][$i]?>"/>
<input type="hidden" name="ben_add[]" value="<?=$_POST["ben_add"][$i]?>"/>
<input type="hidden" name="match_endtime[]" value="<?=$_POST["match_endtime"][$i]?>"/>
<input type="hidden" name="is_lose" value="<?=$_POST["is_lose"][$i]?>"/>
<?php
}
?>
</form>
</div>
<script language="javascript">
<!--
if(self==top){
top.location='/index.php';
}
function goleft(){
window.location.href="left.php";
}
window.setInterval("goleft()",5000); //5秒未点击,自动退到left.php页面
-->
</script>
<script type="text/javascript" language="javascript" src="/js/left_mouse.js"></script>
</body>
</html>
<?php
exit();
}
?>