* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// 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
$id = bigintval($id);
// Order placed in queue...
- $result = SQL_QUERY_ESC("SELECT
- po.`url`, po.`subject`, po.`sender`, pay.`payment`, po.`payment_id`
+ $result = SQL_QUERY_ESC('SELECT
+ po.`url`,
+ po.`subject`,
+ po.`sender`,
+ pay.`payment`,
+ po.`payment_id`
FROM
`{?_MYSQL_PREFIX?}_pool` AS `po`
INNER JOIN
po.`payment_id`=pay.`id`
WHERE
po.`id`=%s
-LIMIT 1",
+LIMIT 1',
array($id), __FILE__, __LINE__);
// Update wents fine?
// @TODO Rewrite these if-blocks to a filter
if ((isExtensionActive('surfbar')) && (getConfig('surfbar_migrate_order') == 'Y')) {
// Then "migrate" the URL to the surfbar
- SURFBAR_ADMIN_MIGRATE_URL($content['url'], $content['sender']);
+ doSurfbarAdminMigrateUrl($content['url'], $content['sender']);
} // END - if
// Check for bonus extension version >= 0.4.4 for the order bonus
array(bigintval($content['sender'])), __FILE__, __LINE__);
// Subtract bonus points from system
- handleBonusPoints(getConfig('bonus_order'), $content['sender']);
+ handleBonusPoints(getBonusOrder(), $content['sender']);
} // END - if
// Load email template
$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
);
// Load row template and switch colors
- $OUT .= loadTemplate('admin_unlock_emails_redir_row', true, $content);
+ $OUT .= loadTemplate('admin_unlock_emails_redir_row', TRUE, $content);
} // END - foreach
// Load main template
- loadTemplate('admin_unlock_emails_redir', false, $OUT);
+ loadTemplate('admin_unlock_emails_redir', FALSE, $OUT);
} else {
// Nothing selected
displayMessage('{--ADMIN_MAILS_NOTHING_CHECKED--}');
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
$content['timestamp'] = generateDateTime($content['timestamp'], 2);
// Load row template and switch colors
- $OUT .= loadTemplate('admin_unlock_emails_row', true, $content);
+ $OUT .= loadTemplate('admin_unlock_emails_row', TRUE, $content);
} // END - while
// Free memory
$content['rows'] = $OUT;
// Load main template
- loadTemplate('admin_unlock_emails', false, $content);
+ loadTemplate('admin_unlock_emails', FALSE, $content);
} elseif ((isFormSent('lock')) && (!isUrlBlacklistEnabled())) {
// URL blacklist not activated
displayMessage('{--ADMIN_URL_BLACKLIST_DISABLED--}');