-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathadmin.php
More file actions
89 lines (83 loc) · 2.98 KB
/
admin.php
File metadata and controls
89 lines (83 loc) · 2.98 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!--
Smart Chat
Authors:
Rishi Dua <https://github.com/rishirdua>
Harvineet Singh <https://github.com/harvineet>
File description: Log in as admin to read stats about chat session
This projected is licensed under the terms of the MIT license. See LICENCE.txt for details
-->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Smart Chat</title>
<meta charset="utf-8">
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.css" rel="stylesheet">
<link rel="stylesheet" href="css/reset.css" type="text/css" media="screen">
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen">
<link rel="stylesheet" href="css/layout.css" type="text/css" media="screen">
<script src="js/jquery-1.4.4.js" type="text/javascript"></script>
<script src="js/cufon-yui.js" type="text/javascript"></script>
<script src="js/cufon-replace.js" type="text/javascript"></script>
<script src="js/Lora_400.font.js" type="text/javascript"></script>
<script src="js/FF-cash.js" type="text/javascript"></script>
<!--[if lt IE 7]>
<div style=' clear: both; text-align:center; position: relative;'>
<a href="http://www.microsoft.com/windows/internet-explorer/default.aspx?ocid=ie6_countdown_bannercode"><img src="http://www.theie6countdown.com/images/upgrade.jpg" border="0" alt="" /></a>
</div>
<![endif]-->
<!--[if lt IE 9]>
<script type="text/javascript" src="js/html5.js"></script>
<link rel="stylesheet" href="css/ie.css" type="text/css" media="screen">
<![endif]-->
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
</head>
<body id="page2">
<!-- header -->
<?php include "header.php" ?>
<div class="ic"></div>
<!-- content -->
<section id="content">
<div class="bg-2">
<div class="main">
<div class="wrapper margin-bot">
<h3>Enter username and Password</h3><br />
<div id="janrainEngageEmbed"></div>
<p>
<?php
//error_reporting(0);
// errors
if (isset($_GET['alert'])) {
if ( $_GET['alert'] == 1 ) {
echo "That username already exists.<br>";
} else if ( $_GET['alert'] == 2 ) {
echo "The username may not contain spaces or html, and must be between 1 and 20 characters in length.<br>";
} else if ( $_GET['alert'] == 3 ) {
echo "If you're the administator, please enter the correct password. Otherwise, enter another name.<br>";
}
}
?>
</p>
<form name="form1" method="post" action="login.php">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Username:</td>
<td><input type="text" name="u" id="u"></td>
</tr>
<tr>
<td>Password: </td>
<td><input name="p" type="password" id="p"></td>
</tr>
</table>
<p>
<input type="submit" name="Submit" value="Login">
</p>
To login as regular user, <a href="index.php">click here</a>
</div>
</div>
</section>
<?php include "footer.php" ?>
<script type="text/javascript"> Cufon.now(); </script>
</body>
</html>