-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.php
More file actions
62 lines (49 loc) · 1.79 KB
/
main.php
File metadata and controls
62 lines (49 loc) · 1.79 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
<?php
session_start();
if ( $_SESSION['login'] ) {
echo "true";
}
else {
header("Location: index.php");
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Документ без названия</title>
<link href="styles/bground.css?=4" rel="stylesheet" type="text/css">
<link href="styles/main.css?=4" rel="stylesheet" type="text/css">
<link href="styles/auth.css?=4" rel="stylesheet" type="text/css">
</head>
<body>
<div class="top_theme">
<header>
<div id="bye_top"> <span><?= $_SESSION['login'] ?></span> <button id="logout"> выйти </button> </div>
<div> <a href="index.php"> на главную </a> </div>
</header>
<h1> Совместный графический редактор </h1>
<div>
<form class="login-form">
<div class="header">
<span>СОЗДАНИЕ СЕССИИ:</span>
</div>
<div class="content">
<input id="content_txt" type="text" title="название" class="input username" placeholder="название сессии" required>
<input id="content_pswd" type="password" title="пароль" placeholder="пароль для входа" class="input password" required>
</div>
<div class="footer">
<input id="submit_btn" type="submit" name="submit" value="СОЗДАТЬ" class="button" />
</div>
</form>
</div>
<div id="session_container">
</div>
</div>
<script src="js/jquery-3.2.1.js" type="text/javascript"></script>
<!--расширение JQuery для работы с сокетами ресурс: https://github.com/dchelimsky/jquery-websocket -->
<script src="js/jquery.simple.websocket.js" type="text/javascript"></script>
<script src="js/main.js?=7" type="text/javascript"></script>
<script src="js/bground.js?=3" type="text/javascript"></script>
</body>
</html>