$OUT = '';
// Is the session data set?
- if ((isSessionVariableSet('mxchange_' . $accessLevel . '_failures')) && (isSessionVariableSet('mxchange_' . $accessLevel . '_last_failure'))) {
+ if ((isSessionVariableSet('mailer_' . $accessLevel . '_failures')) && (isSessionVariableSet('mailer_' . $accessLevel . '_last_failure'))) {
// Ignore zero values
- if (getSession('mxchange_' . $accessLevel . '_failures') > 0) {
+ if (getSession('mailer_' . $accessLevel . '_failures') > 0) {
// Non-guest has login failures found, get both data and prepare it for template
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "accessLevel={$accessLevel}<br />");
$content = array(
- 'login_failures' => getSession('mxchange_' . $accessLevel . '_failures'),
- 'last_failure' => generateDateTime(getSession('mxchange_' . $accessLevel . '_last_failure'), 2)
+ 'login_failures' => getSession('mailer_' . $accessLevel . '_failures'),
+ 'last_failure' => generateDateTime(getSession('mailer_' . $accessLevel . '_last_failure'), 2)
);
// Load template
} // END - if
// Reset session data
- setSession('mxchange_' . $accessLevel . '_failures', '');
- setSession('mxchange_' . $accessLevel . '_last_failure', '');
+ setSession('mailer_' . $accessLevel . '_failures', '');
+ setSession('mailer_' . $accessLevel . '_last_failure', '');
} // END - if
// Return rendered content