Files
zlibproxy/.history/app/view/login_20230101183630.html
T
2023-01-02 19:56:44 +08:00

118 lines
4.4 KiB
HTML

<!--
Copyright (C) 2023 admin@pmnet.gq
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href='zlibproxy/normalize.css' rel='stylesheet' type='text/css'>
<link href="https://fonts.laysense.com/css/5000/zh-cn/douyufont/douyufont.css" rel="preload" as="style" onload="this.rel='stylesheet'">
<link href="https://fonts.laysense.com/css/5000/zh-cn/harmonyossans/harmonyossans.css" rel="preload" as="style" onload="this.rel='stylesheet'">
<link id="theme_css" rel="stylesheet" href="zlibproxy/sakura.css">
<style>.pmnet { font-family: DOUYUFont;} html {font-family: HarmonyOSSans;}</style>
<title>镜像站增加申请-Mirrors.pw</title>
</head>
<body>
<script>
//切换深色模式
if(window.matchMedia('(prefers-color-scheme: dark)').matches){
document.getElementById('theme_css').href = 'zlibproxy/sakura-dark.css';
}
</script>
<main>
<h1>Z-library Proxy</h1><hr />
<p>这是一个Zlibrary的代理镜像</p>
<a href="https://www.pmnet.gq/" target="_blank_pmnet">由[<span class="pmnet">PublicMirrorsNetwork</span>]维护</a>
<blockquote>
本代理利用广大的Tor代理和中继节点,基于<a href="" target="_blank_tor">TOR</a>技术提供服务
<br />
本代理使用Laysense提供的强大内部SD-WAN技术
<br />
使用前请确保您的行为符合当地法律
<br />
<span style="color: coral;">本代理不会保存您的密码(仅保存到您本地的cookies)</span>
</blockquote>
<section>
<h4>登录到Z-Library</h4>
<hr />
<form action="new_apply.php" method="POST">
<p>
<label for="name">*Zlibrary账号</label>
<input required="required" name="name" id="name" placeholder="Your Zlib Username" type="text" style="width:50%">
</p>
<p>
<label for="password">*Zlibrary密码</label>
<input required="required" name="password" id="password" placeholder="Your Zilb Password" type="password" style="width:50%">
</p>
<p>
<label for="password"><img src="login/code" /></label>
<input required="required" name="password" id="password" placeholder="Your Zilb Password" type="text" style="width:50%">
</p>
<p style="color: blueviolet;" id="notice"></p>
</form>
<p>
<button onclick="login()" value="登录" style="width:30%">登录</button>
</p>
</section>
</main>
<footer>
<hr/>
©PMNET.GQ 2023 Made with <a href="https://oxal.org/projects/sakura">sakura.css</a>
</footer>
<script src="zlibproxy/jquery-3.6.3.min.js"></script>
<script>
function login(){
var name = $("#name").val();
var password = $("#password").val();
if(name=="" || password==""){
$('#notice').html('不能为空');
return false;
}
$.ajax({
type: "POST",
url: '/login/check',
data: {'name':name,'password':password},
async: false,
dataType: 'json',
cache: false,
beforeSubmit: function () {
$('#notice').html('正在登录');
},
success: function (data) {
if (data.code == 200) {
$('#notice').html('操作成功,即将前往Zlibrary');
$(location).attr('href',goto);
} else {
$('#notice').html(data.msg);
}
},
clearForm: false,
resetForm: false
});
}
</script>
</body>
</html>