blob: 02f1617dc4a470a7bb63d395cdf75430694cde85 (
plain)
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
|
<?php
/*Displays the invite page and possible errors. Users can enter an email address and invite other people to join vfs.
Permission has already been checked.
$_GET["reason"] can have the following values:
invites: Specifies that the user has already reached his invite limit. No mail is send
database: Specifies that the request could not be fullfilled due to a database error. No mail is send
succuss: Specifies that the request was successfull. The new user has been invited.
==================================================================================================================================================
*/
include("static/header.html")?>
<link rel="stylesheet" type="text/css" href="/static/invite.css">
<div class="invite-area">
<h1 class="invite-area"> Invite </h1>
<div class="invite-area" id="invite-info-bar">
<?php if(isset($_GET['reason']) && $_GET['reason'] == 'success' ){
echo '<h1 id="invite-message">An invitation was sent.</h1>
';
}elseif(isset($_GET['reason']) && $_GET['reason'] == 'database'){
echo '<h1 id="invite-error">Internal Error. Please contact admin</h1>
';
}elseif(isset($_GET['reason']) && $_GET['reason'] == 'invites'){
echo '<h1 id="invite-error">Error: Your invite-limit has been reached.</h1>
';
}?>
</div>
<form id="invite-form" method='post' action='/invite'>
<input type="email" placeholder="email" name="email" id="email-input" class="invite-input" required>
<input type="submit" name="invite" id="button-input" class="invite-input" value="invite">
</form>
</div>
<?php include("static/footer.html")?>
|