-
Notifications
You must be signed in to change notification settings - Fork 2
/
logginn.php
105 lines (79 loc) · 2.55 KB
/
logginn.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Gruppe</title>
<link rel="stylesheet" type="text/css" href="css/mobile.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<meta name="viewport" content="device-width, initial-scale=1.0">
<script language="Javascript" src="hamburger.js"></script>
</head>
<body>
<div class="grid-container">
<div class="item0">
<div class="header">
<box class="topBox"></box>
<a id="burgerknapp" class="burgerknapp" href="javascript:void(0);" onclick="myFunction()">
<i class="fa fa-bars"></i>
</a>
<div class="desktop-nav">
<!-- Dette er for desktop -->
<nav class="main-nav">
<ul>
<li class="li1">
<a class="knapp" href="default.php">Hjem</a>
</li>
<li class="li1">
<a class="knapp" href="avstemning.php">Avstemning </a>
</li>
<li class="li1">
<a class="knapp" href="nominering.php">Nominering </a>
</li>
</ul>
</nav>
</div>
</div>
<!-- Dette er for knapp for mobil -->
<div class="mobile-nav">
<nav class="main-nav2">
<div id="myLinks" style="display: none;">
<ul>
<li>
<a class="knapp1" href="default.php">Hjem</a>
</li>
<li>
<a class="knapp1" href="avstemning.php">Avstemning </a>
</li>
<li>
<a class="knapp1" href="nominering.php">Nominering </a>
</li>
</ul>
</div>
</nav>
</div>
</div>
<!----------------------------------------------------------------------------------------------->
<div class="item3 item3login">
<h3> Logg inn </h3>
<form action="logginn.php" id="innloggingSkjema" name="innloggingSkjema" method="POST" class="loginForm">
Epost <br/> <input name="epost" type="text" id="epost" class="form1" autofocus="autofocus"/> <br/>
Passord <br/> <input name="passord" type="password" id="passord" class="form1"> <br/>
<input type="submit" name="glemtPassord" value="Glemt passord?" class="formknapp"/>
<br>
<input type="submit" name="logginnKnapp" value="Logg inn" class="formknapp">
<br>
<a href="nybruker.php" class="registrerBruker formknapp">Registrer ny bruker </a>
</form>
</div>
<!------------------------------------------------------------------------------------------------------>
</div>
<div class="item5"></div>
<div class="item1">
</div>
</body>
</html>
<?php
if (isset($_POST["logginnKnapp"]))
include_once ('sjekkUserPass.php');
sjekkUserPass($_POST["epost"], sha1("IT2_2021" . $_POST["passord"]));
?>