-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
53 lines (34 loc) · 1.13 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
47
48
49
50
51
52
<?php
session_start();
if(!$_SESSION['username'])
header("Location: login.html"); /* Redirect browser */
?>
<html>
<head>
<title>Chat</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="script.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body class="container">
<span id="welcome"> </span> <a href="logout.php">Logout</a>
<div>
<div id="messages">
</div>
<div id="sidebar">
Online Users<hr>
<div id="onusers">
</div>
</div>
</div>
<div id="chatbox">
<form role="form" class="form-inline" action="save_message.php" method="POST" autocomplete="off">
<input type="text" class="form-control " id="newchat" placeholder="New Message" name="newmessage">
<button type="submit" id="sendchat" class="btn btn-info">Send</button>
</form>
</div>
</body>