X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffilters.php;h=4380a52ba341912cd0b7f7ff4bbb2ae0bf349350;hp=2aed78b9455016de30a73928b1ecb5d9347aa451;hb=7fabfadce30a7bea7ce3ad1f1e2e7e5e616f2669;hpb=c8a83fa31256474eccf50db85187ee6a83d67e26 diff --git a/inc/filters.php b/inc/filters.php index 2aed78b945..4380a52ba3 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -95,20 +95,14 @@ function FILTER_FLUSH_FILTERS () { // Something has been added? if ($inserted > 0) { - // Finish SQL command - $insertSQL = substr($insertSQL, 0, -1); - - // And run it - addSql($insertSQL); + // Finish SQL command and add it + addSql(substr($insertSQL, 0, -1)); } // END - if // Something has been removed? if ($removed > 0) { - // Finish SQL command - $removeSQL = substr($removeSQL, 0, -2) . 'LIMIT '.$removed; - - // And run it - addSql($removeSQL); + // Finish SQL command and add it + addSql(substr($removeSQL, 0, -2) . 'LIMIT ' . $removed); } // END - if // Shall we update usage counters (ONLY FOR DEBUGGING!) @@ -331,28 +325,6 @@ function FILTER_UPDATE_LOGIN_DATA () { SQL_FREERESULT($result); } -// Filter for checking admin ACL -function FILTER_CHECK_ADMIN_ACL () { - // Extension not installed so it's always allowed to access everywhere! - $ret = true; - - // Ok, Cookie-Update done - if ((isExtensionInstalledAndNewer('admins', '0.3.0')) && (isExtensionActive('admins'))) { - // Check if action GET variable was set - $action = getAction(); - if (isWhatSet()) { - // Get action value by what-value - $action = getModeAction('admin', getWhat()); - } // END - if - - // Check for access control line of current menu entry - $ret = adminsCheckAdminAcl($action, getWhat()); - } // END - if - - // Return result - return $ret; -} - // Filter for initializing randomizer function FILTER_INIT_RANDOMIZER () { // Simply init the randomizer with seed and _ADD value