-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
78 lines (67 loc) · 2.85 KB
/
index.php
File metadata and controls
78 lines (67 loc) · 2.85 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--==================== UNICONS ====================-->
<link
rel="stylesheet"
href="https://unicons.iconscout.com/release/v4.0.0/css/line.css"
/>
<!--==================== SWIPER CSS ====================-->
<link rel="stylesheet" href="https://www.rahcode.com/assets/css/swiper-bundle.min.css" />
<!--==================== CSS ====================-->
<link rel="stylesheet" href="https://www.rahcode.com/assets/css/styles.css" />
<title>login</title>
</head>
<body>
<!--==================== HEADER ====================-->
<header class="header" id="header">
<nav class="nav container">
<a href="/" class="nav__logo">inventory.php</a>
<div class="nav__btns">
<!-- Theme change button -->
<i class="uil uil-moon change-theme" id="theme-button"></i>
</div>
</nav>
</header>
<!--==================== MAIN ====================-->
<main class="main">
<!--==================== CONTACT ME ====================-->
<section class="contact section" id="contact">
<h2 class="section__title">Login</h2>
<span class="section__subtitle">If you don't have a user contact the administrator</span>
<div class="contact__container container grid">
<div>
<form method="post" action="login.php" class="contact__form grid">
<div class="contact__inputs grid">
<div class="contact__content">
<label for="" class="contact__labe">User</label>
<input type="text" class="contact__input" name="txtuser" />
</div>
<div class="contact__content">
<label for="" class="contact__labe">Password</label>
<input type="password" class="contact__input" name="txtpass" />
</div>
<input type="submit" value="Login" class="button button--flex" />
</div>
</form>
</div>
</div>
</section>
</main>
<!--==================== FOOTER ====================-->
<footer class="footer" id="foot">
</footer>
<!--==================== SWIPER JS ====================-->
<script src="https://www.rahcode.com/assets/js/swiper-bundle.min.js"></script>
<!--==================== MAIN JS ====================-->
<script src="https://www.rahcode.com/assets/js/main.js" type="module"></script>
<?php
session_start();
if (isset($_SESSION['user'])) {
header('Location: inventory.php');
}
?>
</body>
</html>