-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinclude.php
More file actions
67 lines (65 loc) · 2.19 KB
/
include.php
File metadata and controls
67 lines (65 loc) · 2.19 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
<?php
session_start();
if (!isset($_SESSION['userID'])) {}
function login() {
$_SESSION['status'] = 'login';
?>
<div class="container" id="signIn">
<form class="" action="ws.php" method="post">
<fieldset>
<legend>Login form</legend>
<div class="">
<label>Username:</label>
<input type="text" name="username" id="username" value="">
</div>
<div>
<label>Password:</label>
<input type="text" name="user_pass" value="">
</div>
<button type="submit" name="button">Login</button>
</fieldset>
</form>
</div>
<div class="container" id="signUp">
<form class="" action="ws.php" method="post">
<fieldset>
<legend>Sign Up form</legend>
<div class="">
<label>Username:</label>
<input type="text" name="username" id="username" onkeyup="usernameCheck(this)" value="">
</div>
<div class="">
<label>First Name:</label>
<input type="text" name="fname" value="">
</div>
<div>
<label>Last Name:</label>
<input type="text" name="lname" value="">
</div>
<div>
<label>Password:</label>
<input type="text" name="password" value="">
</div>
<button type="submit" name="button">Sign Up</button>
</fieldset>
</form>
</div>
<button type="button" name="button" onclick="changeBetweenSignUpAndSignIn()">Switch bettween Sign In and Sign Up</button>
<?php }
function start() {
?>
<div class="container" id="chat">
<div id="liveChat"></div> <!-- Chat window -->
<form id="messageBox" method="post">
<fieldset>
<div class="">
<label>Message:</label>
<input type="text" name="messageTextBox" id="messageTextBox" placeholder="Message">
<button type="button" name="Send" onclick="sendMessage()">Send Message</button>
</fieldset>
</form>
<a href="supportFiles/reset.php">Logout</a>
</div>
<?php
}
?>