]> git.mxchange.org Git - mailer.git/blobdiff - inc/filters.php
Caching again rewritten, admin functions fixed:
[mailer.git] / inc / filters.php
index 2aed78b9455016de30a73928b1ecb5d9347aa451..4380a52ba341912cd0b7f7ff4bbb2ae0bf349350 100644 (file)
@@ -95,20 +95,14 @@ function FILTER_FLUSH_FILTERS () {
 
        // Something has been added?
        if ($inserted > 0) {
 
        // 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) {
        } // 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!)
        } // END - if
 
        // Shall we update usage counters (ONLY FOR DEBUGGING!)
@@ -331,28 +325,6 @@ function FILTER_UPDATE_LOGIN_DATA () {
        SQL_FREERESULT($result);
 }
 
        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
 // Filter for initializing randomizer
 function FILTER_INIT_RANDOMIZER () {
        // Simply init the randomizer with seed and _ADD value