We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 82d1ed36 authored by jurgbohn's avatar jurgbohn

Now allow registering

parent 2de0223d
......@@ -22,14 +22,16 @@
require_once("database.php");
require_once("templating.php");
$authcode = $_GET["authcode"];
// Moving to open alpha
/*$authcode = $_GET["authcode"];
$res = $mdb2->query("SELECT inviter FROM Invitations WHERE code = " . $mdb2->quote($authcode, "text"));
if(!$res->numRows()) {
$invalid_authcode = true;
} else {
$invalid_authcode = false;
}
}*/
if(isset($_POST['register'])) {
......@@ -87,8 +89,8 @@ if(isset($_POST['register'])) {
$smarty->assign("errors", $errors);
}
}
$smarty->assign("invalid_authcode", $invalid_authcode);
$smarty->assign("authcode", $authcode);
//$smarty->assign("invalid_authcode", $invalid_authcode);
//$smarty->assign("authcode", $authcode);
$smarty->display("register.tpl");
?>
......@@ -2,11 +2,7 @@
<h2>Register</h2>
{if !isset($authcode) }
<p>Sorry! You need to have an invite to be able to register.</p>
{elseif $invalid_authcode }
<p>Sorry! That invitation code is either invalid or has already been used.</p>
{elseif isset($registered) }
{if isset($registered) }
<p>You're now registered with libre.fm! Yay!</p>
<p><small>(p.s. we love you)</small></p>
{else}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment