-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenter.php
More file actions
50 lines (47 loc) · 2.26 KB
/
enter.php
File metadata and controls
50 lines (47 loc) · 2.26 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="styles/reset.css">
<link rel="stylesheet" href="styles/enter_style.css">
<link href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet">
<title>Enter</title>
</head>
<body>
<header class="header">
<center><a href="#" class="header_txt">Le cipher</a></center>
</header>
<section>
<center><div class="form"><br>
<div class="regist_header_text"><span id="form_txt" class="form_txt">Вход</span></div>
<form class="enter" action="index.php" method="post"><br>
<div class="form_item"><input class="edit password" required pattern="[\w]{0,32}" type="text" name="Login" title="Ваш лоигн не должен содержать пробелов и русских букв..." placeholder=" Логин" value="">
<input class="edit password_repeat" required type="password" name="Password" placeholder=" Пароль" value=""></div>
<div class="item_button"><a href="login.php" class="button_text_regist">Регистрация</a><button type="submit" name="button" class="regist">Вход</button></div>
</form>
</div></center>
</section>
<!-- <div class="container">
<div class="line"></div>
<center><a class="split">Lecipher | Программа</a><br>
<a class="split">© 2017 | Россия, г. Москва</a></center>
</div> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.isotope/2.2.2/isotope.pkgd.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script text="javascript">
var url = window.location.search;
if (url == "?error"){
document.getElementById("form_txt").innerHTML="Неверный Логин или Пароль";
}
else if (url == "?login_empty") {
document.getElementById("form_txt").innerHTML='Поле "Логин" не заполнино';
}
else if (url == "?password_empty") {
document.getElementById("form_txt").innerHTML='Поле "Пароль" не заполнино';
}
else{
document.getElementById("form_txt").innerHTML="Вход";
}
</script>
</body>
</html>