]> git.mxchange.org Git - mailer.git/blobdiff - inc/filters.php
Admin menu has now a JavaScript "effect":
[mailer.git] / inc / filters.php
index aa3d7d3d9440cad895468e4a0de416a96f4d14c6..35b17eef966f73ffca76d2e3d3aa7731d468d2ca 100644 (file)
@@ -256,7 +256,7 @@ function FILTER_RUN_SQLS ($filterData) {
        if ((isSqlsValid()) && ((!isset($filterData['dry_run'])) || ($filterData['dry_run'] == false))) {
                // Run SQL commands
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, '- Found ' . countSqls() . ' queries to run.');
-               foreach (getSqls() as $mode=>$sqls) {
+               foreach (getSqls() as $mode => $sqls) {
                        // Debug message
                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'mode=' . $mode . ',count()=' . count($sqls));
 
@@ -404,7 +404,7 @@ function FILTER_DETERMINE_USERNAME () {
                        } // END - if
                } else {
                        // Hmmm, logged in and no valid userid?
-                       setUsername('<em>{--USERNAME_UNKNOWN--}</em>');
+                       setUsername('<span class="bad">{--USERNAME_UNKNOWN--}</span>');
 
                        // Destroy session
                        destroyMemberSession();
@@ -530,7 +530,7 @@ function FILTER_COMPILE_EXPRESSION_CODE ($filterData) {
                                $data = array(
                                        'matches'     => $matches,
                                        'key'         => $key,
-                                       'mode'        => getScriptOutputMode(),
+                                       'output_mode' => getScriptOutputMode(),
                                        'code'        => $filterData,
                                        'callback'    => $callback,
                                        'extra_func'  => $extraFunction,
@@ -659,13 +659,16 @@ function FILTER_FLUSH_OUTPUT () {
        outputHtml('');
 }
 
-// Prepares an SQL statement part for HTML mail and/or holiday depency
+// Prepares an SQL statement part for HTML mail and/or holiday dependency
 function FILTER_HTML_INCLUDE_USERS ($mode) {
        // Exclude no users by default
        $MORE = '';
 
        // HTML mail?
-       if ($mode == 'html') $MORE = " AND `html`='Y'";
+       if ($mode == 'html') {
+               $MORE = " AND `html`='Y'";
+       } // END - if
+
        if (isExtensionInstalledAndNewer('holiday', '0.1.3')) {
                // Add something for the holiday extension
                $MORE .= " AND `holiday_active`='N'";