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:
unknown
2012-06-08 20:31:31 +03:00
parent dda16eb645
commit 50bfd419e2
11 changed files with 61 additions and 205 deletions
+2 -6
View File
@@ -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);