diff options
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"); |
