if(strlen($account) < 32)
{
if(!check_account_name($account))
{
echo '<font color="red">Zly format nazwy konta. Używaj tylko A-Z i cyfry 0-9.</font>';
exit;
}
$account_db = new Account();
$account_db->find($account);
if($account_db->isLoaded())
echo '<font color="red">Account with this name already exist.</font>';
else
echo '<font color="green">Good ( '.htmlspecialchars($account).' ). You can create account.</font>';
}
else
echo '<font color="red">Account must have a minium of 6 characters and a maxium of 32 characters.</font>';
exit;