This repository was archived by the owner on Jan 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinvite.php
More file actions
executable file
·44 lines (39 loc) · 1.37 KB
/
invite.php
File metadata and controls
executable file
·44 lines (39 loc) · 1.37 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
<?php require_once("core/core.php");
if(!userIsLoggedIn()){header("Location: /");exit;}
if(isset($_POST['username'])&&isset($_POST['password'])&&isset($_POST['mail'])){
registerUser($_POST['username'], $_POST['password'], $_POST['mail']);
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>hexcode tunes</title>
<?php echo getStyles(); ?>
<meta name="viewport" content="user-scalable=no" />
<link href='https://fonts.googleapis.com/css?family=Lato:100,300,400' rel='stylesheet' type='text/css'>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
</head>
<body>
<div id="menuBar">
<div class="title">hexcode tunes</div>
</div>
<div id="loginWindow" >
<h1><?php echo sanitizeOutput(_("Invite"));?></h1>
<br/>
<form action="/invite.php" method="POST">
<label for="username"><?php echo sanitizeOutput(_("Username")); ?></label>
<br/>
<input type="text" id="username" name="username" />
<label for="password"><?php echo sanitizeOutput(_("Password")); ?></label>
<br/>
<input type="password" id="password" name="password" />
<label for="mail"><?php echo sanitizeOutput(_("E-Mail")); ?></label>
<br/>
<input type="text" id="mail" name="mail" />
<br/><br/>
<input type="submit" value="<?php echo sanitizeOutput(_("Invite"));?>" />
</form>
</div>
</body>
</html>