]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/admins_functions.php
Began to rewrite whole script for newly added filters, new extension stub 'network...
[mailer.git] / inc / libs / admins_functions.php
index c4e0045a010e091994010a52b03386074bcbde20..05e121443d6f47f43a5b197b06bc1e3da185005e 100644 (file)
@@ -395,5 +395,19 @@ function ADMINS_LIST_ADMIN_ACCOUNTS() {
        LOAD_TEMPLATE("admin_list_admins");
 }
 
+// Filter for adding extra data to the query
+function FILTER_ADD_EXTRA_SQL_DATA () {
+       // Init extra data
+       $ADD = "";
+
+       // Is the admins extension updated? (should be!)
+       if (GET_EXT_VERSION("admins") >= "0.3")   $ADD .= ", default_acl AS def_acl";
+       if (GET_EXT_VERSION("admins") >= "0.6.7") $ADD .= ", la_mode";
+       if (GET_EXT_VERSION("admins") >= "0.7.0") $ADD .= ", login_failtures, UNIX_TIMESTAMP(last_failture) AS last_failture";
+
+       // Return it
+       return $ADD;
+}
+
 //
 ?>