mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-06 21:04:20 +00:00
fixes by songeriux + minor changes
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename Account.php ##
|
||||
## Developed by: Dzoki ##
|
||||
## Developed by: Songer & Dzoki ##
|
||||
## License: TravianX Project ##
|
||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||
## ##
|
||||
@@ -57,7 +57,9 @@ 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'] == "") {
|
||||
@@ -69,7 +71,10 @@ 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