X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex.php;h=171f2aaf0de1f57a8813020e9eb433e992c99c1a;hb=44d6ac386631aa525344c168e3441f95d885dfa7;hp=50f7f9fa91b2551b02276db6bfb84ee8dc4c86f9;hpb=3ebf44b7ec594d6c5b2a805a88f0559832e54543;p=brisk.git diff --git a/web/index.php b/web/index.php index 50f7f9f..171f2aa 100644 --- a/web/index.php +++ b/web/index.php @@ -57,8 +57,6 @@ function main() if ($ACTION == "login" && isset($name)) { $bri->garbage_manager(TRUE); /* try login */ - $name = substr($name, 0, 12); - $name = str_replace(" ", "_", $name); if (($user = &$bri->add_user(&$sess, &$idx, $name)) != FALSE) { $ACTION = "room"; @@ -72,7 +70,9 @@ function main() } else { /* Login Rendering */ - if ($idx == -1) + if ($idx == -2) + $body .= '
Il nickname deve contenere almeno una lettera o una cifra.
'; + else if ($idx == -1) $body .= '
Spiacenti, non ci sono più posti liberi. Riprova più tardi.
'; else $body .= '
Il tuo nickname è già in uso.
';