$message_user = loadEmailTemplate('order-accept', $content, $content['sender']);
// Send email
- sendEmail($content['sender'], getMessage('MEMBER_ORDER_ACCEPTED'), $message_user);
+ sendEmail($content['sender'], '{--MEMBER_ORDER_ACCEPTED--}', $message_user);
// Unlock selected email
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET `data_type`='NEW' WHERE `id`=%s AND `data_type`='ADMIN' LIMIT 1",
} // END - foreach
// Set message
- $message = getMessage('ADMIN_MAILS_ACTIVATED');
+ $message = '{--ADMIN_MAILS_ACTIVATED--}';
} else {
// Nothing checked!
- $message = getMessage('ADMIN_MAILS_NOTHING_CHECKED');
+ $message = '{--ADMIN_MAILS_NOTHING_CHECKED--}';
}
// Mails unlocked for mail delivery
} elseif (isPostRequestParameterSet(('reject'))) {
if (countPostSelection() > 0) {
// Reject mail orders
- $OUT = ''; $SW = 2;
+ $OUT = '';
foreach (postRequestParameter('sel') as $id => $value) {
// Secure id number
$id = bigintval($id);
// Load email template and send it away
$message_user = loadEmailTemplate('order-reject', $content, $content['sender']);
- sendEmail($content['sender'], getMessage('MEMBER_ORDER_REJECTED'), $message_user);
+ sendEmail($content['sender'], '{--MEMBER_ORDER_REJECTED--}', $message_user);
// If you do not enter an URL to redirect to, your URL will be set!
if ((!isPostRequestParameterSet('redirect')) || (postRequestParameter('redirect') == 'http://')) setPostRequestParameter('redirect', getConfig('URL'));
// Prepare data for the row template
$content = array(
- 'sw' => $SW,
'id' => $id,
'url' => postRequestParameter('url', $id),
);
// Load row template and switch colors
$OUT .= loadTemplate('admin_unlock_emails_redir_row', true, $content);
- $SW = 3 - $SW;
- }
+ } // END - foreach
// Load main template
loadTemplate('admin_unlock_emails_redir', false, $OUT);
loadTemplate('admin_settings_saved', false, '{--ADMIN_URLS_BLOCKED--}');
} elseif ((!isFormSent('lock')) && (!isFormSent('accept')) && (!isFormSent('reject'))) {
// Mail orders are in pool so we can display them
- $OUT = ''; $SW = 2;
+ $OUT = '';
while ($content = SQL_FETCHARRAY($result_main)) {
// Prepare data for the template
- $content['sw'] = $SW;
$content['timestamp'] = generateDateTime($content['timestamp'], 2);
// Load row template and switch colors
$OUT .= loadTemplate('admin_unlock_emails_row', true, $content);
- $SW = 3 - $SW;
} // END - while
// Free memory
loadTemplate('admin_settings_saved', false, '{--ADMIN_URL_BLACKLIST_DISABLED--}');
} else {
// Wrong call!
- loadTemplate('admin_settings_saved', false, '{--ADMIN_WRONG_CALL--}'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_WRONG_CALL--}');
}
} else {
// No mail orders fond