$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;
}
} // END - if
// Check if hash for confirmation of email address is given...
-if (REQUEST_ISSET_GET(('hash'))) {
+if (REQUEST_ISSET_GET('hash')) {
// Lookup sponsor
$result = SQL_QUERY_ESC("SELECT id, status, gender, surname, family,
company, position, tax_ident,
SQL_FREERESULT($result);
} elseif ($mode == 'activate') {
// Send activation link again
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Check submitted data
if (!REQUEST_ISSET_POST('email')) REQUEST_UNSET_POST('ok');
}
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Check email
$result = SQL_QUERY_ESC("SELECT id, hash, status, remote_addr, gender, surname, family, sponsor_created
FROM `{!_MYSQL_PREFIX!}_sponsor_data`
}
} elseif ($mode == 'lost_pass') {
// Send new password
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Check submitted data
if (!REQUEST_ISSET_POST('email')) REQUEST_UNSET_POST('ok');
} // END - if
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Check email
$result = SQL_QUERY_ESC("SELECT id, hash, remote_addr, gender, surname, family, sponsor_created
FROM `{!_MYSQL_PREFIX!}_sponsor_data`
// Load form
LOAD_TEMPLATE('guest_sponsor_lost');
}
-} elseif (IS_FORM_SENT()) {
+} elseif (isFormSent()) {
// Check status and login data ...
$result = SQL_QUERY_ESC("SELECT status FROM `{!_MYSQL_PREFIX!}_sponsor_data`
WHERE `id`='%s' AND password='%s' LIMIT 1",