* updated polish locale (translation) on install

* fixed hidding shop system menu on tibiacom template when disabled in
config
* some changes to sample characters: chanced town_id to 1, posx: 1000,
posy: 1000, posz: 1000 and default group_id to 1 so you can change
in-game outfits and they will be used
* fixed account.login redirect not working on tibiacom template
* installation: warn about wrong admin account name/id and password
* (internal) removed some duplicated code on install finish
* (internal) renamed installation step files to be in correct order
* added TODO file
* bumped version to 0.7.3
This commit is contained in:
slawkens1
2017-12-18 09:01:54 +01:00
parent df4c594d4f
commit fbc803d09f
19 changed files with 147 additions and 91 deletions

View File

@@ -26,7 +26,6 @@ if($save)
{
if(USE_ACCOUNT_NAME) {
$account_name = $_POST['account'];
$account_name_up = strtoupper($account_name);
}
else
$account_id = $_POST['account'];
@@ -40,7 +39,7 @@ if($save)
if(!Validator::accountId($account_id))
$errors['account'] = Validator::getLastError();
}
else if(!Validator::accountName($account_name_up))
else if(!Validator::accountName($account_name))
$errors['account'] = Validator::getLastError();
// email
@@ -72,7 +71,7 @@ if($save)
}
// password
if(!isset($password[0])) {
if(empty($password)) {
$errors['password'] = 'Please enter the password for your new account.';
}
elseif($password != $password2) {
@@ -83,8 +82,7 @@ if($save)
}
// check if account name is not equal to password
if(USE_ACCOUNT_NAME && $account_name_up == strtoupper($password))
{
if(USE_ACCOUNT_NAME && strtoupper($account_name) == strtoupper($password)) {
$errors['password'] = 'Password may not be the same as account name.';
}