-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.php
66 lines (63 loc) · 1.88 KB
/
index.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>进入AG真人娱乐场</title>
<style type="text/css">
body {
background-color: #000;
color:#FFF;
}
</style>
</head>
<body>
<?php
session_start();
include_once("../include/config.php");
include_once("../common/login_check.php");
include_once("../common/logintu.php");
include_once("../include/mysqli.php");
include_once("../common/function.php");
include_once("../class/user.php");
$uid = $_SESSION['uid'];
$loginid = $_SESSION['user_login_id'];
renovate($uid,$loginid);
$userinfo = user::getinfo($uid);
include_once("include/agconfig.php");
include_once("include/curl_http.php");
include_once("include/commfunc.php");
include_once("agfunc.php");
/* 维护通知 */
include_once("../cache/website.php");
$rtnagwh = check_agwh();
if ($rtnagwh!="0") {
echo "<script>alert(\"".$rtnagwh."\");</script>";
exit;
}
if ($userinfo['ag_zr_is']=="0") {
$regok = reg_liveuser($userinfo['username'],$uid,"1");
if ($regok!="0") {
echo "<script>alert(\"".$regok."\");</script>";
exit;
} else {
$userinfo = user::getinfo($uid);
}
}
$params = ForwardGame($userinfo['ag_zr_username'],$userinfo['ag_zr_pwd'],"1");
if ($params=="" || $params=="error") {
echo "<script>alert('登陆失败,请检查网络线路!');</script>";
exit;
}
$key = md5($params.$md5key);
$loginurl = $giurl."/".$formfile;
?>
<form name="agform" id="agform" method="post" action="<?=$loginurl?>" style="display:none;">
<input name="params" type="text" value="<?=$params?>">
<input name="key" type="text" value="<?=$key?>">
</form>
<script language="javascript">
document.getElementById("agform").submit();
</script>
</body>
</html>