forked from pplulee/appleid_auto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
121 lines (119 loc) · 4.57 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
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
<?php
include "include/common.php";
?>
<!DOCTYPE HTML>
<!--
Dimension by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html lang="zh-cn">
<head>
<meta charset="utf-8"/>
<meta name="keywords" content=""/>
<meta name="description" content=""/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
<link rel="stylesheet" href="/resources/css/main.css"/>
<noscript>
<link rel="stylesheet" href="/resources/css/noscript.css"/>
</noscript>
<link href="https://cdnjs.cloudflare.com/ajax/libs/nprogress/0.2.0/nprogress.min.css" rel="stylesheet"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/nprogress/0.2.0/nprogress.min.js"></script>
<title>AppleID托管</title>
</head>
<body>
<div id="wrapper">
<header id="header">
<div class="logo">
<span class="icon fa-clipboard-check"></span>
</div>
<div class="content">
<div class="inner">
<h1>AppleID 自动化管理</h1>
<p>管理AppleID的新方式</p>
</div>
</div>
<nav>
<ul>
<li><a href="#intro">简介</a></li>
<li><a href="#login">登录</a></li>
<?php if ($Sys_config["enable_register"]) echo "<li><a href='#register'>注册</a></li>" ?>
</ul>
</nav>
</header>
<div id="main">
<article id="intro">
<h2 class="major">简介</h2>
<p>基于密保问题,自动解锁Apple ID,自动关闭双重认证,提供前端账号展示,支持多账号</p>
</article>
<article id="login">
<?php
if (isset($_SESSION['isLogin']) and $_SESSION['isLogin']) {
alert("warning","您已登录,自动跳转到用户界面!",1000, "userindex.php");
exit;
}
?>
<h2 class="major">登录</h2>
<form action="login.php" method="post">
<div class="field half first">
<label for="username">用户名</label>
<input type="text" name="username" id="username" placeholder="请输入用户名"/>
</div>
<div class="field half">
<label for="password">密码</label>
<input type="password" name="password" id="password" placeholder="请输入密码"/>
</div>
<ul class="actions">
<li><input type="submit" value="登录" class="primary special" name="login"/></li>
</ul>
</form>
</article>
<article id="register">
<?php
if (isset($_SESSION['isLogin']) and $_SESSION['isLogin']) {
alert("warning","您已登录,自动跳转到用户界面!",1000, "userindex.php");
exit;
}
?>
<h2 class="major">注册</h2>
<form action="register.php" method="post">
<div class="field half first">
<label for="username">用户名</label>
<input type="text" name="username" id="username" placeholder="请输入用户名"/>
</div>
<div class="field half">
<label for="password">密码</label>
<input type="password" name="password" id="password" placeholder="请输入密码"/>
</div>
<ul class="actions">
<li><input type="submit" value="注册" class="primary special" name="register"/></li>
</ul>
</form>
</article>
</div>
<?php include "footer.php"; ?>
</div>
<div id="bg"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/skel/3.0.1/skel.min.js"></script>
<script src="/resources/js/util.js"></script>
<script src="/resources/js/main.js"></script>
<script>
$(function () {
$(window).load(function () {
NProgress.done();
});
NProgress.set(0.0);
NProgress.configure({showSpinner: false});
NProgress.configure({minimum: 0.4});
NProgress.configure({easing: 'ease', speed: 1200});
NProgress.configure({trickleSpeed: 200});
NProgress.configure({trickleRate: 0.2, trickleSpeed: 1200});
NProgress.inc();
$(window).ready(function () {
NProgress.start();
});
});
</script>
</body>
</html>