-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
46 lines (40 loc) · 1.06 KB
/
index.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
<?php
require_once './API.php';
if (!isLoggedIn()) {
header('Location: login.php');
exit;
}
// Send Msg
if (isset($_POST['msg']) && strlen($_POST['msg']) > 0) {
$_SESSION['msg'] = $_POST['msg'];
SendMessage($_POST['msg']);
}
?>
<html>
<head>
<link rel="stylesheet" href="assets/index-style.css">
<meta charset="UTF-8">
<title>~ Chat</title>
<link rel="icon" href="assets/ico.ico">
</head>
<body>
<a class="aboutBu" href="About.php">About</a>
<div class='inbox'>
<div class="online">
<h3 class="online-text no-select"> ~ Online</h3>
<ul>
<iframe height="100%" scrolling="no" frameborder="0" src="./onlines.php"></iframe>
</ul>
</div>
<main>
<iframe scrolling="no" width="100%" height="100%" frameborder="0" src="./msgs.php"></iframe>
<footer>
<form method="POST" action="<?php echo $_SERVER['PHP_SELF'] ?>">
<input placeholder='Enter a message' type='text' name="msg" autofocus>
<input type='submit' value='Send'>
</form>
</footer>
</main>
</div>
</body>
</html>