hasColumn('accounts', 'secret'); $hasCoinsColumn = $db->hasColumn('accounts', 'coins'); $hasCoinsTransferableColumn = $db->hasColumn('accounts', 'coins_transferable'); $hasTransferableCoinsColumn = $db->hasColumn('accounts', 'transferable_coins'); $coinsTransferableColumn = $hasTransferableCoinsColumn ? 'transferable_coins' : 'coins_transferable'; $hasPointsColumn = $db->hasColumn('accounts', 'premium_points'); $hasTypeColumn = $db->hasColumn('accounts', 'type'); $hasGroupColumn = $db->hasColumn('accounts', 'group_id'); if (setting('core.account_country')) { $countries = array(); foreach (array('pl', 'se', 'br', 'us', 'gb') as $c) $countries[$c] = $config['countries'][$c]; $countries['--'] = '----------'; foreach ($config['countries'] as $code => $c) $countries[$code] = $c; } $web_acc = ACCOUNT_WEB_FLAGS; $acc_type = setting('core.account_types'); ?> limit(11)->get(['email', 'id']); if (count($accountModel) == 0) { echo_error('No entries found.'); } else if (count($accountModel) == 1) { $id = $accountModel->first()->getKey(); } else if (count($accountModel) > 10) { echo_error('Specified e-mail resulted with too many accounts.'); } } else if (isset($_REQUEST['search'])) { $search_account = $_REQUEST['search']; $min_size = 3; if (in_array($nameOrNumberColumn, ['id', 'number'])) { $min_size = 1; } if (strlen($search_account) < $min_size && !Validator::number($search_account)) { echo_error('Account ' . $nameOrNumberColumn . ' is too short.'); } else { $query = AccountModel::where($nameOrNumberColumn, '=', $search_account)->limit(11)->get(['id', $nameOrNumberColumn]); if (count($query) == 0) { echo_error('No entries found.'); } else if (count($query) == 1) { $id = $query->first()->getKey(); } else if (count($query) > 10) { echo_error('Specified name resulted with too many accounts.'); } else { $str_construct = 'Do you mean?
# | Date | Action | IP |
---|---|---|---|
= date("M d Y, H:i:s", $log->date); ?> | = $log->action; ?> | = $log->ip; ?> |
Nick | Type | Expires | Reason | Comment | Added by: |
---|---|---|---|---|---|
' . $pName . ''; ?> | ' . date("d M Y", $ban['expires']); ?> |
' . $aName . '';
echo ' ' . date("d.m.Y", $ban['added']); ?> |
Description | Coins | Date |
---|---|---|