feat: 添加游戏账号绑定页面

- 新增了游戏账号绑定页面的 HTML 结构和样式
- 添加了页面头部的 meta 信息,优化了 SEO 和移动设备适配
- 集成了 Layer 弹窗库和自定义 JavaScript 功能
- 优化了页面布局,增加了防作弊措施(禁止右键、选择和拖拽)
This commit is contained in:
2024-12-22 11:16:35 +08:00
parent 375d5c8740
commit 0774fe1343

View File

@@ -137,8 +137,49 @@ function get_curl($url, $post = 0, $referer = 0, $cookie = 0, $header = 0, $ua =
curl_close($ch);
return $ret;
}
if (empty($row)) {
?>
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta name="applicable-device" content="mobile">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="yes"/>
<meta name="x5-fullscreen" content="true"/>
<meta name="360-fullscreen" content="true"/>
<meta name="screen-orientation" content="portrait">
<meta name="x5-orientation" content="portrait">
<meta name="x5-page-mode" content="app">
<title><?=$_CONFIG['game_name']?> <?=$_CONFIG['game_description']?></title>
<meta name="description" content="<?=$_CONFIG['game_name']?> <?=$_CONFIG['game_description']?>">
<meta name="keywords" content="<?=$_CONFIG['game_name']?>,<?=$_CONFIG['game_description']?>">
<link rel="stylesheet" href="static/css/login.css?v=1.1.6"/>
<script>
document.onkeydown = document.onkeyup = document.onkeypress = function(event) {
var e = event || window.event || arguments.callee.caller.arguments[0];
if (e && e.keyCode == 123) {
e.returnValue = false;
return false;
}
}
</script>
<script src="static/layer/layer.js"></script>
<script src="static/js/common.js?v=1"></script>
<script>
layer.config({skin: 'dialogs'});
</script>
</head>
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
<?php if (empty($row)) {?>
当前尚未有你的游戏账号,请选择<br>
<a onclick="registerDirect">Linuxdo账号绑定</a></br>
<input type="hidden" id="linuxdo" value="<?= $userInfo['user_username'] ?>">
@@ -180,3 +221,5 @@ if (empty($row)) {
<input type="password" id="password" placeholder="请输入密码">
<button type="submit" @click="linkAccount">绑定并登录</button>
<?php } ?>
</body>
</html>