-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauth.php
More file actions
84 lines (74 loc) · 3.74 KB
/
auth.php
File metadata and controls
84 lines (74 loc) · 3.74 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
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
<?
include $_SERVER['DOCUMENT_ROOT'] . "/settings/loadAll.php";
if (!empty($_SESSION['login_token'])) {
header("Location: /?home");
}
?>
<!doctype html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Вход</title>
<link rel="stylesheet" href="/libs/bootstrap/css/bootstrap.min.css?<?= rand(999999, null) ?>">
<link rel="stylesheet" href="/css/auth.css?<?= rand(999999, null) ?>">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>
<body>
<?php
include $_SERVER['DOCUMENT_ROOT'] . "/static/header.php";
?>
<div class="container-fluid">
<div class="row home">
<div class="col">
<div class="toLogin">
<div class="row">
<div class="col form-wrap">
<form action="javascript:void(0)" id="form_login">
<label for="u-login">Введите логин</label>
<input type="text" name="login" id="u-login">
<label for="u-pass">Введите пароль</label>
<input type="password" name="pass" id="u-pass">
<button type="submit">Войти</button>
</form>
</div>
</div>
</div>
<div class="toRegister hide">
<div class="row">
<div class="col form-wrap">
<form action="javascript:void(0)" id="form_reg">
<label for="new-login">Придумайте логин</label>
<input type="text" name="login" id="new-login" required autocomplete="off">
<label for="new-email">Введите действительный Email</label>
<input type="email" name="new-email" id="new-email" required autocomplete="off">
<label for="new-telephone">Введите действительный номер телефона</label>
<input type="tel" name="new-telephone" id="new-telephone" required autocomplete="off">
<label for="level">Кто вы?</label>
<select name="level" id="level" required>
<option value="manager">Менеджер Вконтакте</option>
<option value="manager_fa">Менеджер ФА</option>
<option value="other">Другое (С вами свяжутся)</option>
</select>
<label for="new-pass">Придумайте пароль</label>
<input type="password" name="new-pass" id="new-pass" required autocomplete="new-password">
<label for="re-pass">Повторите пароль</label>
<input type="password" name="re-pass" id="re-pass" required autocomplete="new-password">
<button type="submit">Зарегистрироваться</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="error-message error-message__hide" id="error_msg">
<div class="error-message__text">
</div>
</div>
</body>
<script src="/libs/bootstrap/js/bootstrap.bundle.min.js?<?= rand(999999, null) ?>"></script>
<script src="/js/auth.js?<?= rand(999999, null) ?>"></script>
</html>