forked from Mahmoudb7/faculty_meeting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
loginn.php
62 lines (54 loc) · 1.62 KB
/
loginn.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
<?php
require_once "db.php";
require_once "functions.php";
?>
<!DOCTYPE html>
<html lang="en">
<?php
Head("تسجيل الدخول");
?>
<body dir="rtl">
<?php
Headers();
if (!isset($_SESSION["loggedin"]) && @$_SESSION["loggedin"] !== true):
?>
<main class="login-page">
<div class="container">
<div class="box">
<h1 class="title">تسجيل الدخول</h1>
<form action="authentication.php" method="post">
<div class="col">
<div class="row">
<h4>البريد الالكتروني</h4><input type="email" placeholder="البريد الالكتروني" name="email" required>
</div>
<div class="row">
<h4>كلمة المرور</h4>
<div class="password-box"><input type="password" placeholder="كلمة المرور" name="password" required><i
class="fa-solid fa-eye-slash"></i></div>
</div>
<div class="row">
<button type="submit" class="btn-basic" name="sign_in_btn">تسجيل الدخول</button>
</div>
</div>
</form>
</div>
</div>
</main>
<?php
else:
?>
<p style="text-align: center; color: red; font-weight: bold;">
You're already logged in, you'll be redirected in 5 seconds.
</p><br>
<?php
header("refresh:5; url=index.php");
endif;
footer();
?>
<!-- Js Scripts and Plugins -->
<script type="module" src="./js/main.js"></script>
<script src="./js/showpassword.js"></script>
<!-- font Awesome -->
<script src="https://kit.fontawesome.com/eb7dada2f7.js" crossorigin="anonymous"></script>
</body>
</html>