-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage1.php
73 lines (69 loc) · 2.15 KB
/
page1.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
65
66
67
68
69
70
71
72
73
<?php
$CUR_LVL = 0;
require_once('include.php');
require_once('user_tracking_khoofiya.php');
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Nightvision by FCT</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="css/default.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="menu">
<ul>
<li class="current_page_item"><a href="index.php">Home</a></li>
<li><a href="list.php">Ranklist</a></li>
<li><a href="../forums">Forums</a></li>
<li><a href="rules.php">Rules</a></li>
<li><a href="about.php">About Us</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</div>
<div id="page" >
<div id="content" style="width:100%;height:425px">
<form id="form" name="form" method="post" action="page1.php" >
I am a IIITian!
<br />
<img src="images/banyan-tree.preview.jpg">
<div class="wrapper-block left">
<label for="name">
Username
<span class="small-label">
</span>
</label>
<input type="text" name="user" id="name" title="Your Name" class="req-string"/>
</div>
<div class="wrapper-block left">
<label for="email">
Password
<span class="small-label">
</span>
</label>
<input type="password" name="pwd" id="email" title="Your E-mail" class="req-email"/>
</div>
<input type="submit" value="Submit" class="submit btn-form" id="submit"/>
<br />
<?php
if(isset($_POST["user"]) && isset($_POST["pwd"])){
if ($_POST["user"]=="user" && $_POST["pwd"]=="iiit123"){
if(getCurrentLevel($_SESSION['username']) <= $CUR_LVL)
{
incrementLevel($_SESSION['username'], $CUR_LVL+1);
}
header("Location: redirect.php");
//echo getCurrentLevel($_SESSION['username']);
}
else{
echo "Wrong Username Or Password!";
}
}
?>
</form>
</div>
</div>
</div>
</body>
</html>