-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathindex.php
55 lines (40 loc) · 1.36 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
53
54
55
<?php
session_start();
if (!isset($_SESSION['userid'])):
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Chat2</title>
<link rel="stylesheet" type="text/css" href="main.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=1.3.2" type="text/javascript"></script>
<script type="text/javascript" src="check.js"></script>
</head>
<body>
<div id="page-wrap">
<div id="header">
<h1><a href="/examples/Chat2/">Chat v2</a></h1>
</div>
<div id="section">
<form method="post" action="jumpin.php">
<label>Desired Username:</label>
<div>
<input type="text" id="userid" name="userid" />
<input type="submit" value="Check" id="jumpin" />
</div>
</form>
</div>
<div id="status">
<?php if (isset($_GET['error'])): ?>
<!-- Display error when returning with error URL param? -->
<?php endif;?>
</div>
</div>
</body>
</html>
<?php
else:
require_once("chatrooms.php");
endif;
?>