-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
71 lines (61 loc) · 2.26 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
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
<?php
/**
* The Index file of STOCK part
*
* @author Victor ROUQUETTE
* @copyright Hammock Helicopter Database by Victor ROUQUETTE
* @license GPL
* @license https://www.gnu.org/licenses/gpl-3.0.fr.html
* @category Part
* @package Home
* @namespace Home
* @filesource
*/
include('config.php');
session_start();
//Create and set var '$UserConnected' to true or false
include('account/checkConnection.php');
/*Go to Home page if user is already connected*/
if($UserConnected) {
header('Location: home.php');
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include("ui/head_default.php"); ?>
</head>
<body>
<!-- ----------------------------- Content ----------------------------- -->
<div class="container content">
<div class="row">
<div class="col-lg-10 col-lg-offset-1 text-center center">
<div class="myForm">
<img src="img/Logo.svg" style="width: 300px;"/>
<h1 id="title">Hammock Database</h1>
<form action="account/login.php" method="post">
<div class="row">
<div class="col-lg-offset-5 col-lg-2">
<label for="pseudo"> <Strong> Username : </Strong> </label>
<input class="form_input" type="text" name="pseudo" id="pseudo" required/>
</div>
</div>
<div class="row" style="margin-top: 15px;">
<div class="col-lg-offset-5 col-lg-2">
<label for="password"> <Strong> Password : </Strong></label>
<input class="form_input" type="password" name="password" id="password" required/>
</div>
</div>
<div class="row text-center" style="margin-top: 15px;">
<input class="button" TYPE="submit" NAME="nom" VALUE="Login" id="Valider">
</div>
</form>
</div>
</div>
</div>
</div>
<!-- ----------------------------- Footer ----------------------------- -->
<?php include("ui/footer.php") ?>
</body>
</html>