From 66b515b718fb2de57462c1aa172d89b94936cef5 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 10 Mar 2014 18:08:08 +0100 Subject: file upload --- www/functions.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'www/functions.php') 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 "
+/* echo "

Name:

Password:

"; +*/ + 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"); -- cgit v1.2.3