-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
70 lines (60 loc) · 1.53 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
<!-- Register form -->
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/menu.css">
<meta name="viewport" content="width=device-width, user-scalable=yes" />
<link rel="stylesheet" href="fonts/css/font-awesome.min.css">
<title>Camagru</title>
</head>
<body>
<?php
$rootname = getcwd();
require_once($rootname.'/nav/menu.php');
menu();
?>
<?php
$rootname = getcwd();
require_once($rootname.'/script/script.php');
script();
?>
<div id="hero">
<img src="img/inscription.png" width="100%">
<!-- Redirect the user if he is already connected -->
<p><?php
if($_SESSION)
{
if($_SESSION['username'] !== "")
{
echo "You are already connected";
return;
}
}
?>
</p>
</div>
<div id="popup">
<p id="ptext" style="opacity: 0;"></p>
</div>
<div id="redirect">
<p id="sendmail">Please confirm your email to finish the inscription</p>
</div>
<div id="inscription">
<form method="post">
<input id="first_name" type="text" placeholder="First Name">
<input id="last_name" type="text" placeholder="Last Name">
<input id="email" type="email" placeholder="Email">
<input id="username" type="text" placeholder="Username">
<input id="password" type="password" placeholder="Type Password">
<input id="password_check" type="password" placeholder="Type Password Again">
</form>
<button id="sub">Submit</button>
</div>
</body>
<script type="text/javascript" src="javascript/index.js"></script>
</html>