-
Notifications
You must be signed in to change notification settings - Fork 0
/
register.php
81 lines (66 loc) · 2.32 KB
/
register.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
<?php
include('functions.php');
if (isLoggedIn()) {
header('location: home.php');
}
$up_id = uniqid();
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Register // MS</title>
<meta name="description" content="" />
<meta http-equiv="language" content="it" />
<meta name="language" content="it" />
<!--Progress Bar and iframe Styling-->
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="forms.css" rel="stylesheet" type="text/css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="menu">
<ul>
<li><a class="menu" href="home.php">Home</a></li>
<li><a href="myfiles.php" class="menu">My files</a></li>
<!--<li><a href="settings.php" class="menu">Settings</a></li>-->
<!-- logged in user information -->
<?php if (isset($_SESSION['user'])) : ?>
<li class="right"><strong>Ciao, <?php echo $_SESSION['user']['username']; ?></strong><br><small> <a href="home.php?logout='1'" style="color: red;">logout</a> </small></li>
<?php else : ?>
<li style="float:right"><a href="login.php" class="menu">Login</a></li>
<li style="float:right"><a href="register.php" class="menu active">Signup</a></li>
<?php endif ?>
</ul>
</div>
</div>
<div class="header">
<!--<img src="">-->
</div>
<p class="title"><z class="m">REGIS</i><z class="s">TER</i></b></p>
<!-- notification message -->
<?php if (isset($_SESSION['success'])) : ?>
<div class="error success" >
<h3> <i class="fa fa-check"></i>
<?php
echo $_SESSION['success'];
unset($_SESSION['success']);
?>
</h3>
</div>
<?php endif ?>
<div class="form-container">
<form enctype="multipart/form-data" action="register.php" method="post">
Nome <br> <input type="text" name="name"><br><br>
Username <br> <input type="text" name="username"><br><br>
Email <br> <input type="email" name="email"><br><br>
Password <br> <input type="password" name="password_1"><br><br>
Psw di nuovo <br> <input type="password" name="password_2"><br><br>
<input type="submit" value="Register" name="register_btn"> <br><br>
Oppure <a href="login.php">login</a>
</div>
<div class="credits">
<p>© <?php echo $year; ?> | Creato da <a href="https://www.sebastianoriva.it/" target="_blank" style="color: #FFFFFF">Sebastiano Riva</a></p>
</div>
</body>
</html>