$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('sponsor'))) {
- addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'sponsor'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
}
// Create array for form errors (= missing data)
$FORM_ERRORS = array();
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
//
// Check submitted form data
//
}
// 6. Homepage URL
- if (!REQUEST_ISSET_POST(('url'))) {
+ if (!REQUEST_ISSET_POST('url')) {
// Homepage URL is empty
$FORM_ERRORS[] = getMessage('SPONSOR_URL_IS_EMPTY');
} elseif (!isUrlValid(REQUEST_POST('url'))) {
}
// 7. Light validation of email address
- if ((!REQUEST_ISSET_POST(('email'))) || (REQUEST_POST('email') == "@")) {
+ if ((!REQUEST_ISSET_POST('email')) || (REQUEST_POST('email') == "@")) {
// Email is invalid/empty
$FORM_ERRORS[] = getMessage('SPONSOR_EMAIL_IS_INVALID');
} elseif (SPONSOR_FOUND_EMAIL_DB(REQUEST_POST('email'))) {
if (count($FORM_ERRORS) > 0) REQUEST_UNSET_POST('ok');
}
-if ((IS_FORM_SENT()) && (count($FORM_ERRORS) == 0)) {
+if ((isFormSent()) && (count($FORM_ERRORS) == 0)) {
// Generate message array
$messageArray = array(
'failed' => getMessage('SPONSOR_REGISTRATION_FAILED'),