-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
36 lines (32 loc) · 1.37 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
<?php include("lib/layouts/header.php"); ?>
<link rel="stylesheet" href="css/style.css">
<div class="container">
<div class="login-content">
<div class="title">
<i class="fab fa-facebook-messenger"></i> Online Chatting
</div>
<hr>
<div class="body">
<?php
include("lib/function/function.php");
if(isset($_POST['login'])){
$result = login_user($_POST['username'], md5($_POST['password']));
echo $result;
}
?>
<form action="<?php echo($_SERVER['PHP_SELF']); ?>" method="POST">
<label for="username">Username : </label> <br>
<input type="text" name="username" id="username" placeholder="Username"> <br>
<label for="password">Password : </label> <br>
<input type="password" name="password" id="password" placeholder="Password"> <br>
<button type="submit" class="login-btn" name="login">
<i class="fas fa-user-alt"></i> login
</button>
</form>
<a href="lib/views/forget_pass.php">Forget Password ? </a> <br>
Don't have an Account ? <a href="lib/views/reg.php">Create One</a>
</div>
<hr>
</div>
</div>
<script src="js/style.js"></script>