forked from ncs-jss/online-c-compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php~
executable file
·64 lines (58 loc) · 1.83 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
56
57
58
59
60
61
62
63
64
<!doctype html>
<html>
<head>
<title>Nibble Online Compiler</title>
<meta http-equiv="Content-Type" content="text/html;>charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="style/style.css">
</head>
<body>
<CENTER>
<div id="content">
<div>
<div style="width: 850px; height: 50px;">
<br><br>
<h3 style="text-align: center;">
<u><strong><font face="Arial" >Login</font></strong></u>
</h3>
</div>
<?php
session_start();
if(isset($_SESSION['stuid']))
{
header('Location:jssonc_home.php');
}
else
unset($_SESSION['stuid']);
if(isset($_SESSION['login_err']))
{
echo "<br> <br> <br>";
echo $_SESSION['login_err'];
unset($_SESSION['login_err']);
}
else
unset($_SESSION['login_err']);
?>
<div id="login-box">
<form action="common_code/login_act.php" method = "POST">
<table align="center">
<tr><td><b>Admission no </b> </td>
<td><input type = "text" name="admission" placeholder="eg. 11cse017" required onfocus="this.placeholder = ''"
pattern="^([0-9])([0-9])([A-Z]|[a-z])([A-Z]|[a-z])([A-Z]|[a-z])?[0-9][0-9][0-9]$"></td></tr>
<tr><td></br></td>
<td> </td><br/><br/></tr>
<tr><td><b>Password </b> </td>
<td><input type = "password" name="password" pattern=".{6,20}" placeholder="minimum 6 characters" required onfocus="this.placeholder = ''"></td></tr>
<tr><td></br></td>
<td> </td></tr>
<tr><td colspan=1> <CENTER> <input type="submit" value ="ENTER"> </CENTER> </td>
<td><a href="register.php">Register</a></td></tr>
</table>
</div>
</form> <br> <br> <br>
<br> <br> <br>
</div>
</div>
</CENTER>
</body>
<CENTER> <div id="foot">© NIBBLE COMPUTER SOCIETY</div> </CENTER>
</html>