-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (48 loc) · 1.76 KB
/
index.html
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
<?php
include "./scripts/php/checkAuth.php";
$retpath = "";
if ((count($_GET) >= 1) and isset($_GET['retpath'])) {
$retpath = "?retpath=".$_GET['retpath'];
}
if (checkUser(2)) {
if ((count($_GET) >= 1) and isset($_GET['retpath'])) {
header('Location: https://bialger.com/'.substr($_GET['retpath'], 1));
}
else {
header('Location: https://bialger.com/main.html');
}
}
?>
<html>
<head>
<?php
include "./scripts/php/html_incl.php";
head("Вход", "style-login.css");
?>
</head>
<body align="center">
<style>
.formdiv {
top:35%;
}
</style>
<script type="text/javascript" src="https://bialger.com/scripts/js/validation.js"></script>
<div class= "formdiv">
<form action="/scripts/php/auth.php<?php echo $retpath;?>" method="post">
<input required type="text" name="login" placeholder="Логин" class="input"/>
<input required type="password" name="password" placeholder="Пароль" class="input"/>
<input type="submit" name="logon" value="Войти на сайт" class="logon"/>
</form>
</div>
<div class= "formdiv">
<form action="./user_req.html" method="post">
<input type="submit" name="logon" value="Запросить участие" class="logon"/>
</form>
</div>
<div class= "formdiv">
<form action="/scripts/php/guest.php<?php echo $retpath;?>" method="post">
<input type="submit" name="logon" value="Войти как гость" class="logon"/>
</form>
</div>
</body>
</html>