* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009, 2010 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
} // END - if
// Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
// Check for mails
$result_main = SQL_QUERY("SELECT
// Order placed in queue...
$result = SQL_QUERY_ESC("SELECT
- po.url, po.subject, po.sender, pay.payment, po.payment_id
+ po.`url`, po.`subject`, po.`sender`, pay.`payment`, po.`payment_id`
FROM
- `{?_MYSQL_PREFIX?}_pool` AS po
+ `{?_MYSQL_PREFIX?}_pool` AS `po`
INNER JOIN
- `{?_MYSQL_PREFIX?}_payments` AS pay
+ `{?_MYSQL_PREFIX?}_payments` AS `pay`
ON
- po.payment_id=pay.id
+ po.`payment_id`=pay.`id`
WHERE
- po.id=%s
+ po.`id`=%s
LIMIT 1",
array($id), __FILE__, __LINE__);
}
// Mails unlocked for mail delivery
- loadTemplate('admin_settings_saved', false, $message);
+
+ displayMessage($message);
} elseif (isPostRequestParameterSet('reject')) {
if (ifPostContainsSelections()) {
// Reject mail orders
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', getUrl());
+ if ((!isPostRequestParameterSet('redirect')) || (postRequestParameter('redirect') == 'http://')) {
+ setPostRequestParameter('redirect', getUrl());
+ } // END - if
// Redirect URL
- SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET url='%s', `data_type`='NEW' WHERE `id`=%s LIMIT 1",
+ SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET `url`='%s', `data_type`='NEW' WHERE `id`=%s LIMIT 1",
array(postRequestParameter('redirect'), $id),__FILE__, __LINE__);
// Prepare data for the row template
loadTemplate('admin_unlock_emails_redir', false, $OUT);
} else {
// Nothing selected
- loadTemplate('admin_settings_saved', false, '{--ADMIN_MAILS_NOTHING_CHECKED--}');
+ displayMessage('{--ADMIN_MAILS_NOTHING_CHECKED--}');
}
- } elseif ((isFormSent('lock')) && (ifPostContainsSelections()) && (isUrlBlaskEnabled())) {
+ } elseif ((isFormSent('lock')) && (ifPostContainsSelections()) && (isUrlBlacklistEnabled())) {
// Lock URLs
foreach (postRequestParameter('sel') as $id => $url) {
// Secure id number
} // END - foreach
// Output message
- loadTemplate('admin_settings_saved', false, '{--ADMIN_URLS_BLOCKED--}');
+ displayMessage('{--ADMIN_URLS_BLOCKED--}');
} elseif ((!isFormSent('lock')) && (!isFormSent('accept')) && (!isFormSent('reject'))) {
// Mail orders are in pool so we can display them
$OUT = '';
// Load main template
loadTemplate('admin_unlock_emails', false, $content);
- } elseif ((isFormSent('lock')) && (!isUrlBlaskEnabled())) {
+ } elseif ((isFormSent('lock')) && (!isUrlBlacklistEnabled())) {
// URL blacklist not activated
- loadTemplate('admin_settings_saved', false, '{--ADMIN_URL_BLACKLIST_DISABLED--}');
+ displayMessage('{--ADMIN_URL_BLACKLIST_DISABLED--}');
} else {
// Wrong call!
- loadTemplate('admin_settings_saved', false, '{--ADMIN_WRONG_CALL--}');
+ displayMessage('{--ADMIN_WRONG_CALL--}');
}
} else {
// No mail orders fond
- loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MAILS_IN_POOL--}');
+ displayMessage('{--ADMIN_NO_MAILS_IN_POOL--}');
}
// [EOF]