mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-17 19:23:27 +02:00
* cache $db->hasTable and $db->hasColumn functions
* changed tableExist and fieldExist to $db->hasTable(table) + $db->hasColumn(table, column) * new configurable: database_log - can log database queries and show in website source when logged as super admin * removed debug_level configurable, enabled by default when logged on super admin * added OTS_Account:getCountry() * added posibility to load OTS_Player partially, and without skills * (internal) changed depracated $ots->createObject() functions with their OTS_ equivalents * (internal) removed unused code
This commit is contained in:
@@ -17,7 +17,7 @@ if($config['account_country'])
|
||||
$groups = new OTS_Groups_List();
|
||||
|
||||
$show_form = true;
|
||||
$config_salt_enabled = fieldExist('salt', 'accounts');
|
||||
$config_salt_enabled = $db->hasColumn('accounts', 'salt');
|
||||
if(!$logged)
|
||||
{
|
||||
if($action == "logout") {
|
||||
@@ -74,7 +74,7 @@ $errors = array();
|
||||
$account_registered = '<b><font color="green">Yes</font></b>';
|
||||
}
|
||||
|
||||
$account_created = $account_logged->getCustomField("created");
|
||||
$account_created = $account_logged->getCreated();
|
||||
$account_email = $account_logged->getEMail();
|
||||
$email_new_time = $account_logged->getCustomField("email_new_time");
|
||||
if($email_new_time > 1)
|
||||
|
Reference in New Issue
Block a user