Browse Source

public beta

master
bnuuy girl 1 year ago
parent
commit
fd82964528
  1. 2
      header.html
  2. 9
      src/register.php

2
header.html

@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
</head>
<body>
<header>
<h1>unix.lgbt</h1>
<h1>unix.lgbt (BETA)</h1>
<p><i>LGBTQ-friendly pubnix where we make stuff together!</i></p>
<nav>
<a href="/index.php">Home</a>

9
src/register.php

@ -4,8 +4,6 @@ @@ -4,8 +4,6 @@
textarea { width: 100% }
</style>
<p><b>NOTE: THE SERVICE IS NOT AVAILABLE YET, SO CLOSED FOR REGISTRATION.</b></p>
<p>
This form is to register to the pubnix and become a member of the community.
When you register, it is important that you read the
@ -15,6 +13,11 @@ @@ -15,6 +13,11 @@
understand why you've been banned if ever you break rules.
</p>
<p>
If your registration request has been declined, we will silently discard it
and you won't be notified.
</p>
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
@ -29,7 +32,7 @@ @@ -29,7 +32,7 @@
}
else if (preg_match("/^[a-z0-9_]{2,16}$/", trim($_POST["username"])) == 0)
{
$message = "Invalid username.";
$message = "Invalid username. (must be in lowercase with a length between 2 and 12 characters. numbers and underscore allowed.";
}
else if (preg_match('/^\S{1,}@\S{2,}\.\S{2,}$/', trim($_POST["email"])) == 0)
{

Loading…
Cancel
Save