mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-07 13:24:22 +00:00
delete more change of songeriux (i prefer that users can register in any language), improve forum and BBcode (not 100%, but fix some bugs)
This commit is contained in:
@@ -57,9 +57,7 @@ class Account {
|
||||
}
|
||||
else if($database->checkExist_activate($_POST['name'],0)) {
|
||||
$form->addError("name",USRNM_TAKEN);
|
||||
} elseif(preg_replace("/[a-zA-Z0-9_-]/","",$_POST['name'])){
|
||||
$form->addError("name","Unusable simbols. Allowed text format: a-z, A-Z, 0-9 and _ -");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if(!isset($_POST['pw']) || $_POST['pw'] == "") {
|
||||
@@ -72,9 +70,7 @@ class Account {
|
||||
else if($_POST['pw'] == $_POST['name']) {
|
||||
$form->addError("pw",PW_INSECURE);
|
||||
|
||||
} elseif(preg_replace("/[a-zA-Z0-9]/","",$_POST['pw'])){
|
||||
$form->addError("name","Unusable simbols. Allowed text format: a-z, A-Z, 0-9");
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!isset($_POST['email'])) {
|
||||
$form->addError("email",EMAIL_EMPTY);
|
||||
|
||||
Reference in New Issue
Block a user