mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-13 17:24:54 +02:00
* 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:
@@ -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.');
|
||||
|
Reference in New Issue
Block a user