]> git.mxchange.org Git - mailer.git/commitdiff
Some strtoupper() calls saved
authorquix0r <quix0r@mxchange.org>
Mon, 16 Aug 2010 04:55:23 +0000 (04:55 +0000)
committerquix0r <quix0r@mxchange.org>
Mon, 16 Aug 2010 04:55:23 +0000 (04:55 +0000)
inc/fix_filters.php
inc/modules/admin/admin-inc.php
inc/modules/admin/what-list_doubler.php
inc/template-functions.php

index f18079a787b0b6d5923b9e21edb8f90f6d7c3d48..cc3e0cc4d30285ec81be876f2cdde8215fb257b1 100644 (file)
@@ -55,7 +55,7 @@ if (!SQL_HASZERONUMS($result)) {
        // Load row by row
        while ($filter = SQL_FETCHARRAY($result)) {
                // Now search again for this filter and get it's total count
-               $count = countSumTotalData($filter['filter_name'], 'filters', 'filter_id', 'filter_name', true, sprintf(" AND `filter_function`='%s'", $filter['filter_function']));
+               $count = countSumTotalData($filter['filter_name'], 'filters', 'filter_id', 'filter_name', true, sprintf(" AND `filter_function`='%s'", SQL_ESCAPE($filter['filter_function'])));
 
                // Do we have more than one entry?
                if ($count > 1) {
index f7e868bc117a138107c0ea46758314e7d7e3cf9a..23f3ddcf5b5afaee8c5a69d5ed78601f5d173391 100644 (file)
@@ -747,17 +747,17 @@ function sendAdminBuildMails ($mode, $table, $content, $id, $subjectPart = '', $
                }
 
                // Send email out
-               sendEmail(postRequestParameter($userid, $id), '{--MEMBER_' . strtoupper($subject) . '_' . strtoupper($table) . '_SUBJECT--}', $mail);
+               sendEmail(postRequestParameter($userid, $id), strtoupper('{--MEMBER_' . $subject . '_' . $table . '_SUBJECT--}'), $mail);
        } // END - if
 
        // Generate subject
-       $subject = '{--ADMIN_' . strtoupper($subject) . '_' . strtoupper($table) . '_SUBJECT--}';
+       $subject = strtoupper('{--ADMIN_' $subject . '_' . $table . '_SUBJECT--}');
 
        // Send admin notification out
        if (!empty($subjectPart)) {
-               sendAdminNotification('{--ADMIN_' . strtoupper($subject) . '_' . strtoupper($table) . '_SUBJECT--}', 'admin_' . $mode . '_' . strtolower($subjectPart) . '_' . $table, $content, postRequestParameter($userid, $id));
+               sendAdminNotification($subject, 'admin_' . $mode . '_' . strtolower($subjectPart) . '_' . $table, $content, postRequestParameter($userid, $id));
        } else {
-               sendAdminNotification('{--ADMIN_' . strtoupper($subject) . '_' . strtoupper($table) . '_SUBJECT--}', 'admin_' . $mode . '_' . $table, $content, postRequestParameter($userid, $id));
+               sendAdminNotification($subject, 'admin_' . $mode . '_' . $table, $content, postRequestParameter($userid, $id));
        }
 }
 
index 0bf30c0e8ed3e1d8df59b61fb5e6bc56681cce7c..916b15979d0d810432f730657f6301829a32fe3d 100644 (file)
@@ -50,10 +50,12 @@ if (!isGetRequestParameterSet('mode')) {
        setGetRequestParameter('mode', 'overview');
 } else {
        // Set table title automatically
-       if (!isGetRequestParameterSet('select')) setGetRequestParameter('select', 'all');
+       if (!isGetRequestParameterSet('select')) {
+               setGetRequestParameter('select', 'all');
+       } // END - if
 
        // Prepare header
-       $content['list_' . strtolower(getRequestParameter('mode'))] = '{--ADMIN_DOUBLER_LIST_' . strtoupper(getRequestParameter('mode')) . '_' . strtoupper(getRequestParameter('select')) . '--}';
+       $content['list_' . strtolower(getRequestParameter('mode'))] = strtoupper('{--ADMIN_DOUBLER_LIST_' . getRequestParameter('mode') . '_' . getRequestParameter('select') . '--}');
 }
 
 // Load data for the template
index 65e73d005a3091160decbaf67ea6e146791f7d4e..d96bfb73958aba1460208f8337006826b333912b 100644 (file)
@@ -1130,7 +1130,9 @@ function displayParsingTime () {
        $start = explode(' ', $GLOBALS['startTime']);
        $end = explode(' ', $endTime);
        $runTime = $end[0] - $start[0];
-       if ($runTime < 0) $runTime = '0';
+       if ($runTime < 0) {
+               $runTime = '0';
+       } // END - if
 
        // Prepare output
        // @TODO This can be easily moved out after the merge from EL branch to this is complete