addYouAreHereLink('guest', __FILE__);
if ((!isExtensionActive('sponsor'))) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
} elseif (isSponsor()) {
// Is already a logged-in sponsor
sendAdminNotification('{--ADMIN_NEW_SPONSOR--}', 'admin_sponsor_pending', $data);
// Sponsor account set to pending
- loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACCOUNT_IS_PENDING--}');
+ displayMessage('{--SPONSOR_ACCOUNT_IS_PENDING--}');
} else {
// Could not unlock account!
- loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACCOUNT_PENDING_FAILED--}');
+ displayMessage('{--SPONSOR_ACCOUNT_PENDING_FAILED--}');
}
} elseif ($data['status'] == 'EMAIL') {
// Changed email adress need to be confirmed
// Check on success
if (!SQL_HASZEROAFFECTED()) {
// Sponsor account is unlocked again
- loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACCOUNT_IS_CONFIRMED_AGAIN--}');
+ displayMessage('{--SPONSOR_ACCOUNT_IS_CONFIRMED_AGAIN--}');
} else {
// Could not unlock account!
- loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACCOUNT_EMAIL_FAILED--}');
+ displayMessage('{--SPONSOR_ACCOUNT_EMAIL_FAILED--}');
}
} else {
/// ??? Other status?
- loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACCOUNT_STATUS_FAILED--}');
+ displayMessage('{--SPONSOR_ACCOUNT_STATUS_FAILED--}');
}
} else {
// No sponsor found
- loadTemplate('admin_settings_saved', false, getMaskedMessage('SPONSOR_ACCOUNT_404', getRequestParameter('hash')));
+ displayMessage(getMaskedMessage('SPONSOR_ACCOUNT_404', getRequestParameter('hash')));
}
// Free memory
sendEmail(postRequestParameter('email'), '{--SPONSOR_ACTIVATION_LINK_SUBJECT--}', $message_sponsor);
// Output message
- loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACTIVATION_LINK_SENT--}');
+ displayMessage('{--SPONSOR_ACTIVATION_LINK_SENT--}');
} else {
// No account found or not UNCONFIRMED
- loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACTIVATION_LINK_404--}');
+ displayMessage('{--SPONSOR_ACTIVATION_LINK_404--}');
}
// Free memory
array(md5($DATA['password']), bigintval($DATA['id'])), __FILE__, __LINE__);
// Output message
- loadTemplate('admin_settings_saved', false, '{--SPONSOR_LOST_PASSWORD_SENT--}');
+ displayMessage('{--SPONSOR_LOST_PASSWORD_SENT--}');
} else {
// No account found or not UNCONFIRMED
- loadTemplate('admin_settings_saved', false, '{--SPONSOR_LOST_PASSWORD_404--}');
+ displayMessage('{--SPONSOR_LOST_PASSWORD_404--}');
}
// Free memory
redirectToUrl('modules.php?module=sponsor');
} else {
// Cookie setup failed!
- loadTemplate('admin_settings_saved', false, '{--SPONSOR_COOKIE_SETUP_FAILED--}');
+ displayMessage('{--SPONSOR_COOKIE_SETUP_FAILED--}');
// Login formular and other links
loadTemplate('guest_sponsor_login');
}
} else {
// Status is not fine
- loadTemplate('admin_settings_saved', false, '{--SPONSOR_LOGIN_FAILED_' . strtoupper($status) . '--}');
+ displayMessage('{--SPONSOR_LOGIN_FAILED_' . strtoupper($status) . '--}');
// Login formular and other links
loadTemplate('guest_sponsor_login');
}
} else {
// Account missing or wrong pass! We shall not find this out for the "cracker folks"...
- loadTemplate('admin_settings_saved', false, '{--SPONSOR_LOGIN_FAILED_404_WRONG_PASS--}');
+ displayMessage('{--SPONSOR_LOGIN_FAILED_404_WRONG_PASS--}');
// Login formular and other links
loadTemplate('guest_sponsor_login');