-
Notifications
You must be signed in to change notification settings - Fork 11
/
login.php
226 lines (190 loc) · 10.8 KB
/
login.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
<?php
//? |-----------------------------------------------------------------------------------------------|
//? | login.php |
//? | |
//? | Copyright (c) 2018-2021 Belikhun. All right reserved |
//? | Licensed under the MIT License. See LICENSE in the project root for license information. |
//? |-----------------------------------------------------------------------------------------------|
// SET PAGE TYPE
define("PAGE_TYPE", "NORMAL");
require_once $_SERVER["DOCUMENT_ROOT"] ."/libs/belibrary.php";
require_once $_SERVER["DOCUMENT_ROOT"] ."/modules/config.php";
header("Cache-Control: max-age=0, must-revalidate", true);
?>
<!DOCTYPE html>
<html lang="vi-VN">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Đăng nhập</title>
<link rel="stylesheet" type="text/css" media="screen" href="/assets/css/default.css?v=<?php print VERSION; ?>" />
<link rel="stylesheet" type="text/css" media="screen" href="/assets/css/button.css?v=<?php print VERSION; ?>" />
<link rel="stylesheet" type="text/css" media="screen" href="/assets/css/input.css?v=<?php print VERSION; ?>" />
<link rel="stylesheet" type="text/css" media="screen" href="/assets/css/progressBar.css?v=<?php print VERSION; ?>" />
<link rel="stylesheet" type="text/css" media="screen" href="/assets/css/scrollbar.css?v=<?php print VERSION; ?>" />
<link rel="stylesheet" type="text/css" media="screen" href="/assets/css/spinner.css?v=<?php print VERSION; ?>" />
<link rel="stylesheet" type="text/css" media="screen" href="/assets/css/loginPage.css?v=<?php print VERSION; ?>" />
<!-- Fonts -->
<link rel="stylesheet" type="text/css" media="screen" href="/assets/fonts/calibri/calibri.css?v=<?php print VERSION; ?>" />
<link rel="stylesheet" type="text/css" media="screen" href="/assets/fonts/nunito/nunito.css?v=<?php print VERSION; ?>" />
<link rel="stylesheet" type="text/css" media="screen" href="/assets/fonts/opensans/opensans.css?v=<?php print VERSION; ?>" />
<link rel="stylesheet" type="text/css" media="screen" href="/assets/fonts/consolas/consolas.css?v=<?php print VERSION; ?>" />
<link rel="stylesheet" type="text/css" media="screen" href="/assets/fonts/fontawesome/fontawesome.css?v=<?php print VERSION; ?>" />
</head>
<body>
<div class="leftPanel">
<div class="lazyload wallpaper">
<img onload="this.parentNode.dataset.loaded = 1" src="/api/images/landing"/>
<div class="simpleSpinner"></div>
</div>
<ul class="footer">
<li class="title text-overflow">Chương trình chấm điểm <a href="https://dsapblog.wordpress.com/" target="_blank" rel="noopener">Themis</a></li>
<li class="sub text-overflow">Được viết bởi Lê Minh Hoàng & Đỗ Đức Đông</li>
<li class="sub2 text-overflow">background image by Belikhun.</li>
</ul>
</div>
<div class="rightPanel">
<div class="header">
<div class="lazyload icon">
<img onload="this.parentNode.dataset.loaded = 1" src="/api/images/icon"/>
<div class="simpleSpinner"></div>
</div>
<ul class="info">
<li class="name text-overflow">
<?php print getConfig("contest.name"); ?>
</li>
</ul>
</div>
<div id="formContainer" class="center">
<t id="formTitle" class="title">Đang tải...</t>
<t id="formMessage" class="message"></t>
<div class="formBox">
<form class="inputForm" id="loginFormContainer" action="javascript:void(0);">
<div class="progress">
<div class="progressBar"><div class="bar" data-color="blue" data-blink="grow"></div></div>
<div class="indicator">
<span class="item">Tên đăng nhập</span>
<span class="item">Mật Khẩu</span>
<span class="item">Hoàn Thành</span>
</div>
</div>
<div class="username" id="loginUsername">
<div class="formGroup sound" data-color="blue" data-soundselectsoft>
<input id="loginUsernameInput" type="text" autocomplete="username" class="formField" autocomplete="off" placeholder="Tên đăng nhập" required disabled>
<label for="loginUsernameInput">Tên đăng nhập</label>
</div>
<div class="button">
<button id="loginUsernameSubmit" type="button" class="sq-btn sound" data-soundhover data-soundselect disabled>Tiếp</button>
<button id="registerToggler" type="button" class="text-btn register" disabled>Đăng Kí</button>
</div>
</div>
<div class="password" id="loginPassword">
<div id="loginFormProfile">
<div class="lazyload avatar">
<img id="loginFormAvatar" src=""/>
<div class="simpleSpinner"></div>
</div>
<t id="loginFormUser"></t>
</div>
<div class="formGroup sound" data-color="blue" data-soundselectsoft>
<input id="loginPasswordInput" type="password" autocomplete="current-password" class="formField" autocomplete="off" placeholder="Mật khẩu" required disabled>
<label for="loginPasswordInput">Mật khẩu</label>
</div>
<div class="button">
<button id="loginPasswordSubmit" type="submit" class="sq-btn pink sound" data-soundhover data-soundselect disabled>Đăng Nhập</button>
</div>
</div>
<div class="complete">
<div class="icon"></div>
<t class="title">Đăng nhập thành công</t>
<t id="loginCompleteMessage" class="message"></t>
</div>
</form>
<form class="inputForm" id="registerFormContainer" action="javascript:void(0);">
<div class="progress">
<div class="progressBar"><div class="bar" data-color="blue" data-blink="grow"></div></div>
<div class="indicator">
<span class="item">Tên đăng nhập</span>
<span class="item">Mật Khẩu</span>
<span class="item">Hoàn Thành</span>
</div>
</div>
<div class="username" id="registerUsername">
<div class="note warning" style="margin-top: 10px;">
<span class="inner">Tên đăng nhập chỉ được phép chứa các kí tự từ <b>a-z, A-Z và 0-9</b></span>
</div>
<div class="formGroup sound" data-color="blue" data-soundselectsoft>
<input id="registerUsernameInput" type="text" autocomplete="username" class="formField" autocomplete="off" placeholder="Tên đăng nhập" required disabled>
<label for="registerUsernameInput">Tên đăng nhập</label>
</div>
<div class="button">
<button id="registerUsernameSubmit" type="button" class="sq-btn green sound" data-soundhover data-soundselect disabled>Tiếp</button>
<button id="loginToggler" type="button" class="text-btn register" disabled>< Quay Lại</button>
</div>
</div>
<div class="password" id="registerPassword">
<div class="formGroup sound" data-color="blue" data-soundselectsoft>
<input id="registerPasswordInput" type="password" autocomplete="new-password" class="formField" autocomplete="off" placeholder="Mật khẩu" required disabled>
<label for="registerPasswordInput">Mật khẩu</label>
</div>
<div class="formGroup sound" data-color="blue" data-soundselectsoft>
<input id="registerPasswordInputRetype" type="password" autocomplete="new-password" class="formField" autocomplete="off" placeholder="Nhập Lại Mật khẩu" required disabled>
<label for="registerPasswordInputRetype">Nhập Lại Mật khẩu</label>
</div>
<div class="captchaContainer">
<t class="info">Vui lòng điền captcha bên dưới</t>
<div class="row">
<div class="lazyload captcha">
<img id="registerCaptcha" src=""/>
<div class="simpleSpinner"></div>
</div>
<span id="registerCaptchaRenew" class="renew sound" data-soundhoversoft data-soundselectsoft></span>
</div>
<div class="formGroup sound" data-color="blue" data-soundselectsoft>
<input id="registerCaptchaInput" type="text" autocomplete="off" class="formField" autocomplete="off" placeholder="Captcha" required disabled>
<label for="registerCaptchaInput">Captcha</label>
</div>
</div>
<div class="button">
<button id="registerPasswordSubmit" type="submit" class="sq-btn pink sound" data-soundhover data-soundselect disabled>Đăng Kí</button>
</div>
</div>
<div class="complete">
<div class="icon"></div>
<t class="title">Đăng kí thành công</t>
<t class="message">Tài khoản của bạn đã được tạo thành công!</t>
<div class="userEdit">
<input type="file" class="avatarInput" id="userAvatarInput" accept="image/*">
<label for="userAvatarInput" class="lazyload avatar sound" data-soundhover data-soundselect>
<img id="userAvatar" src=""/>
<div class="simpleSpinner"></div>
</label>
<div class="formGroup sound nameInput" data-color="purple" data-soundhover data-soundselectsoft>
<input id="userNameInput" type="text" autocomplete="nickname" class="formField" autocomplete="off" placeholder="Tên">
<label for="userNameInput">Tên</label>
</div>
</div>
<button id="editUserConfirm" type="button" class="sq-btn rainbow sound" data-soundhover data-soundselect>HOÀN THÀNH!</button>
</div>
</form>
</div>
</div>
<div class="footer">
Copyright © 2018-2021 <a href="https://github.com/belivipro9x99" target="_blank" rel="noopener">Belikhun</a>. This project is licensed under the MIT License. See <a href="/LICENSE" target="_blank" rel="noopener">LICENSE</a> for more information.
</div>
</div>
<script src="/assets/js/belibrary.js?v=<?php print VERSION; ?>" type="text/javascript"></script>
<script src="/assets/js/sounds.js?v=<?php print VERSION; ?>" type="text/javascript"></script>
<script src="/assets/js/errorHandler.js?v=<?php print VERSION; ?>" type="text/javascript"></script>
<script src="/assets/js/login.js?v=<?php print VERSION; ?>" type="text/javascript"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=<?php print TRACK_ID; ?>"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments) }
gtag("js", new Date());
gtag("config", `<?php print TRACK_ID; ?>`);
</script>
</body>
</html>