FILTER_VALIDATE_EMAIL has its own set of issues. There really isn't a 'perfect' way of validating emails due to its endless possibilities. However, there are a bunch of great custom functions out there that comes close.The functions are those from Gesior, I believe [HIGHLIGHT]filter_var($email, FILTER_VALIDATE_EMAIL)[/HIGHLIGHT] can be used for checking emails easily
/*
Changing the value of this definition (FOOTER) to
something that does not include the name of the AAC
will lead to instant banishment of this server from
the archez aac database and fast pass to the black list.
*/
define('FOOTER', 'Archez AAC 1.0');
define('UPTIME', $config['status']['uptime']);
if (isset($_SESSION['logged'])) {
define('LOGGED', true);
} else {
define('LOGGED', false);
}
} else if (!array_key_exists($proffesion, $this->config['server']['professions'][0])) {
$this->archez->showMsg('Invalid proffesion, <a href="' . PATH . '/account/character/create/">click here</a> to go back.', 'error');
} else if (!array_key_exists($profession, $this->config['server']['professions'][0])) {
$this->archez->showMsg('Invalid profession, <a href="' . PATH . '/account/character/create/">click here</a> to go back.', 'error');
define('LOGGED', isset($_SESSION['logged']));
YEYE, lrn2optimize.Code:define('LOGGED', isset($_SESSION['logged']));
best way to validate email is using confirmation link probablyFILTER_VALIDATE_EMAIL has its own set of issues. There really isn't a 'perfect' way of validating emails due to its endless possibilities. However, there are a bunch of great custom functions out there that comes close.
define() is better to be used with constants.YEYE, lrn2optimize.Code:define('LOGGED', isset($_SESSION['logged']));
he was talking about validating the email string, but yeyebest way to validate email is using confirmation link probably
if you also block at least most common "5 minutes emails" then it would be even better
But honestly, it looks kinda bad after reading the topic(but I haven't looked in code myself yet)
define() is better to be used with constants.
best way to validate email is using confirmation link probably
if you also block at least most common "5 minutes emails" then it would be even better
he was talking about validating the email string, but yeye
What he meant is that constants (the variables you assign through define) should contain a static value. It should always return the same value, thus the name constants. Dynamic values should be assigned to variables. I may have misinterpreted your message though and if that is the case, please allow me to apologies.oh shit ***** whatcha mean, it's less code and does same result as his.
What he meant is that constants (the variables you assign through define) should contain a static value. It should always return the same value, thus the name constants. Dynamic values should be assigned to variables. I may have misinterpreted your message though and if that is the case, please allow me to apologies.
Forbidden
You don't have permission to access /archezaac/install.php on this server.
I tryed to set $config['global']['path'] to dir of my server and nothing
also i tried to set this to dir of acc location and nothig =s