diff options
| author | root | 2014-03-10 18:08:08 +0100 |
|---|---|---|
| committer | root | 2014-03-10 18:08:08 +0100 |
| commit | 66b515b718fb2de57462c1aa172d89b94936cef5 (patch) | |
| tree | 39f42e3b138af8e4ed5cdb8c613d50e9017082c1 /www/functions.php | |
| parent | ba4a14efc9446942ffb0105bbe73756f5724280e (diff) | |
| download | files.iamfabulous.de-66b515b718fb2de57462c1aa172d89b94936cef5.tar.gz | |
file upload
Diffstat (limited to 'www/functions.php')
| -rw-r--r-- | www/functions.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/www/functions.php b/www/functions.php index dfe75ad..46b3149 100644 --- a/www/functions.php +++ b/www/functions.php @@ -68,11 +68,14 @@ function login($db){ echo $logout; } - echo "<form method='post' action='/login'> +/* echo "<form method='post' action='/login'> <p>Name: <input type='text' name='username'></p> <p>Password: <input type='password' name='password'> <p><input type='submit' name='submit' value='login'></p> </form>"; +*/ + include("login.php"); + } } exit; @@ -130,6 +133,8 @@ function invite($db){ UPDATE user SET invites='$invite' WHERE id='$id'; COMMIT;") ){ + $subject="Welcome, you were invited to the new virtual filesystem.\nYour key is" . $key . "\nVisit files.iamfabulous.de/register to complete your registration."; + mail($email, "Invite", $subject, "From: mail@iamfabulous.de"); header("Refresh: 0; /invite?reason=success"); } else { header("Refresh: 0; /invite?reason=database"); |
