* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* Copyright (c) 2009 - 2011 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
// Check for mails
$result_main = SQL_QUERY("SELECT
- `id`, `sender`, `subject`, `payment_id`, `timestamp`, `url`, `target_send`, `cat_id`
+ `id`,`sender`,`subject`,`payment_id`,`timestamp`,`url`,`target_send`,`cat_id`
FROM
`{?_MYSQL_PREFIX?}_pool`
WHERE
if (isFormSent('accept')) {
if (ifPostContainsSelections()) {
// Accept mail orders
- foreach (postRequestParameter('sel') as $id => $value) {
+ foreach (postRequestElement('sel') as $id => $value) {
// Secure id number
$id = bigintval($id);
array(bigintval($content['sender'])), __FILE__, __LINE__);
// Subtract bonus points from system
- handleBonusPoints(getConfig('bonus_order'));
+ handleBonusPoints(getConfig('bonus_order'), $content['sender']);
} // END - if
// Load email template
// Mails unlocked for mail delivery
displayMessage($message);
- } elseif (isPostRequestParameterSet('reject')) {
+ } elseif (isPostRequestElementSet('reject')) {
if (ifPostContainsSelections()) {
// Reject mail orders
$OUT = '';
- foreach (postRequestParameter('sel') as $id => $value) {
+ foreach (postRequestElement('sel') as $id => $value) {
// Secure id number
$id = bigintval($id);
// Load URL and subject from pool
- $result = SQL_QUERY_ESC("SELECT `url`, `subject`, `sender` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `id`=%s LIMIT 1",
+ $result = SQL_QUERY_ESC("SELECT `url`,`subject`,`sender` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `id`=%s LIMIT 1",
array($id), __FILE__, __LINE__);
// Load data
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 ((!isPostRequestElementSet('redirect')) || (postRequestElement('redirect') == 'http://')) {
+ setPostRequestElement('redirect', getUrl());
} // END - if
// Redirect URL
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET `url`='%s', `data_type`='NEW' WHERE `id`=%s LIMIT 1",
- array(postRequestParameter('redirect'), $id),__FILE__, __LINE__);
+ array(postRequestElement('redirect'), $id),__FILE__, __LINE__);
// Prepare data for the row template
$content = array(
'id' => $id,
- 'url' => postRequestParameter('url', $id),
+ 'url' => postRequestElement('url', $id),
);
// Load row template and switch colors
}
} elseif ((isFormSent('lock')) && (ifPostContainsSelections()) && (isUrlBlacklistEnabled())) {
// Lock URLs
- foreach (postRequestParameter('sel') as $id => $url) {
+ foreach (postRequestElement('sel') as $id => $url) {
// Secure id number
$id = bigintval($id);
array($url), __FILE__, __LINE__);
if (SQL_HASZERONUMS($result)) {
// Did not find a record so we can add it... :)
- SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_url_blacklist` (`url`, `pool_id`) VALUES ('%s',%s)",
+ SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_url_blacklist` (`url`,`pool_id`) VALUES ('%s',%s)",
array($url, $id), __FILE__, __LINE__);
} // END - if