forked from prakharsingh1312/cusiege
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
28 lines (27 loc) · 1.2 KB
/
Copy pathindex.php
File metadata and controls
28 lines (27 loc) · 1.2 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
<?php
ini_set('session.cookie_lifetime', 60 * 60 * 24 * 7);
session_start();
if(isset($_SESSION['username']))
header("location:Assets/php/redirect")
?>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="Assets/css/style.css">
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed" rel="stylesheet">
<title>Login</title>
<link rel='icon' href='icon/favicon.ico' type='image/x-icon'>
</head>
<body>
<div id="wrapperlog" class='divlog'><div class='divlog'><form method="post" action="Assets/php/login" >
<center><img src="CCSLOGO.png" class="img">
<?php if(isset($_SESSION["register"]))
echo "<br><br> You've been sucessfully registered please LogIn to continue.";
else if(isset($_SESSION["pass"]))
echo "<br><br> Wrong Credentials.";
?>
<h1><b>LOGIN</b></h1><input type="Textbox" placeholder="Username" id="textbox" name="username"><br><br>
<input type="Password" placeholder="Password" id="textbox" name="password"><br><br><input type="submit" id="button" value="Login"><br><br>Need an account? <a href='signup'>Sign Up</a> </center>
</form></div></div>
</body>
</html>