// Load data
$content = SQL_FETCHARRAY($result);
- // Free result
- SQL_FREERESULT($result);
-
// Is the surfbar installed?
// @TODO Rewrite these if-blocks to a filter
if ((isExtensionActive('surfbar')) && (getConfig('surfbar_migrate_order') == 'Y')) {
} // END - if
// Check for bonus extension version >= 0.4.4 for the order bonus
- if ((isExtensionInstalledAndNewer('bonus', '0.4.4')) && (ifBonusRallyeActive())) {
+ if ((isExtensionInstalledAndNewer('bonus', '0.4.4')) && (isBonusRallyeActive())) {
// Add points directly
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `bonus_order`=`bonus_order`+{?bonus_order?} WHERE `userid`=%s LIMIT 1",
array(bigintval($content['sender'])), __FILE__, __LINE__);
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET `data_type`='NEW' WHERE `id`=%s AND `data_type`='ADMIN' LIMIT 1",
array($id), __FILE__, __LINE__);
} // END - if
+
+ // Free result
+ SQL_FREERESULT($result);
} // END - foreach
// Set message
// Mails unlocked for mail delivery
loadTemplate('admin_settings_saved', false, $message);
- } elseif (isPostRequestParameterSet(('reject'))) {
+ } elseif (isPostRequestParameterSet('reject')) {
if (ifPostContainsSelections()) {
// Reject mail orders
$OUT = '';
// Nothing selected
loadTemplate('admin_settings_saved', false, '{--ADMIN_MAILS_NOTHING_CHECKED--}');
}
- } elseif ((isFormSent('lock')) && (ifPostContainsSelections()) && (getConfig('url_blacklist') == 'Y')) {
+ } elseif ((isFormSent('lock')) && (ifPostContainsSelections()) && (isUrlBlaskEnabled())) {
// Lock URLs
foreach (postRequestParameter('sel') as $id => $url) {
// Secure id number
// Load main template
loadTemplate('admin_unlock_emails', false, $content);
- } elseif ((isFormSent('lock')) && (getConfig('url_blacklist') != 'Y')) {
+ } elseif ((isFormSent('lock')) && (!isUrlBlaskEnabled())) {
// URL blacklist not activated
loadTemplate('admin_settings_saved', false, '{--ADMIN_URL_BLACKLIST_DISABLED--}');
} else {