* 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

@@ -18,11 +18,8 @@ $error = '';
if(isset($_GET['account']))
{
$account = $_GET['account'];
$tmp = strtoupper($account);
if(USE_ACCOUNT_NAME)
{
if(!Validator::accountName($tmp))
if(USE_ACCOUNT_NAME) {
if(!Validator::accountName($account))
error_(Validator::getLastError());
}
else if(!Validator::accountId($account))
@@ -30,9 +27,9 @@ if(isset($_GET['account']))
$_account = new OTS_Account();
if(USE_ACCOUNT_NAME)
$_account->find($tmp);
$_account->find($account);
else
$_account->load($tmp);
$_account->load($account);
if($_account->isLoaded())
error_('Account with this name already exist.');