« first day (1749 days earlier)      last day (1829 days later) » 

17:13
HOLD THE PHONE
 
2 hours later…
19:41
public static function IsValidUsername($username)
{
    $letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'];

    if (strlen($username) < 3 || strlen($username) > 15)
    {
        return false;
    }

    if (strpos($username, " ") !== false)
    {
        return false;
    }

    if (! in_array($username[0], $letters))
    {
        return false;
    }

    if (!preg_match("/^[a-zA-Z\d-_.]+$", $username))
1 message moved from Python

« first day (1749 days earlier)      last day (1829 days later) »