-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.php
executable file
·126 lines (102 loc) · 3.59 KB
/
sample.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?php
// session_start
session_start();
if (isset($_SESSION['uid'])) {
header('location: home.php');
}
require('login_parse.php');
?>
<!DOCTYPE html>
<html>
<head>
<title>Pentracode | Sign-in</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- <link rel="stylesheet" type="text/css" href="css/main_style.css" > -->
<link rel="stylesheet" type=" text/css" href="css/layout.css">
<link rel="stylesheet" type="text/css" href="css/main_style.css">
<link rel="stylesheet" type="text/css" href="css/login_style.css">
<link rel="stylesheet" type=" text/css" href="css/mediaquery.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome.css">
<script src="js/jquery.js"></script>
<script src="js/script.js"></script>
</head>
<body>
<!-- overall-wrap -->
<div class="overall-wrap">
<!-- header -->
<header>
<div class="header">
<div class="logo">
<img src="images/logo.png">
</div>
</div>
<hr>
<!-- nav -->
<nav>
<i id="fa" class="fa fa-bars" aria-hidden="true"></i>
<ul>
<li><a href="index.php"><i class="fa fa-code icon "></i> Discussion </a></li>
<li><a href="login.php" class="active"><i class="fa fa-sign-in icon"></i> Login </a></li>
<li><a href="register.php" ><i class="fa fa-key icon"></i> Register </a></li>
</ul>
</nav>
</header>
<!-- content -->
<div id="content">
<div class="content-text">
<hr style="width: 150px;">
<h3>Account Sign-in</h3>
<h6>Sign in to access your account</h6>
<hr style="width: 150px;">
</div>
<div class="form-wrap" align="center">
<!-- checking username and password error -->
<div class="error"><?php echo $errorMsg; ?></div>
<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" method="post">
<table>
<tr>
<td>
<label for="username">Username</label>
</td>
</tr>
<tr>
<td>
<input type="text" name="username" id="username" placeholder="Enter username" <?php if (isset($_POST['username'])){ echo 'value="', $_POST['username'], '"';} ?> />
</td>
</tr>
<!-- break line for table -->
<tr><td></td></tr>
<tr><td></td></tr>
<!-- password input field -->
<tr>
<td>
<label for="password">Password</label>
</td>
</tr>
<tr>
<td>
<input type="password" name="password" id="password" placeholder="Enter password" />
</td>
</tr>
<!-- submit button -->
<!-- break line for table -->
<tr><td></td></tr>
<tr><td></td></tr>
<tr>
<td>
<input type="submit" name="login" id="submit" value="Login" /> <span><a href="recovery.php"> Forgot password? </a></span>
</td>
</tr>
<!-- break line for table -->
<tr><td></td></tr>
<tr><td></td></tr>
</table>
</form>
</div>
</div>
<!-- footer -->
<footer id="footer">Copyright © 2010-2017 | www.pentracode.com</footer>
</div>
</body>
</html>