]> git.mxchange.org Git - mailer.git/commitdiff
Fix for broken SQL while installation phase and runtime
authorquix0r <quix0r@mxchange.org>
Sun, 13 Jun 2010 09:09:53 +0000 (09:09 +0000)
committerquix0r <quix0r@mxchange.org>
Sun, 13 Jun 2010 09:09:53 +0000 (09:09 +0000)
inc/db/lib-mysql3.php
inc/functions.php
inc/modules/admin/admin-inc.php
inc/modules/admin/what-list_beg.php
inc/modules/admin/what-list_bonus.php

index b802cb34b341606997275595027d6d828aaa57ac..73bdd9004d6fa562ba70bcd2638d0522e6d13171 100644 (file)
@@ -545,8 +545,8 @@ function SQL_HASZERONUMS ($result) {
 function SQL_PREPARE_SQL_STRING ($sqlString) {
        // Is it already cached?
        if (!isset($GLOBALS['sql_strings'][$sqlString])) {
-               // No, then generate the eval() command
-               $eval = '$sql = "' . FILTER_COMPILE_EXPRESSION_CODE(FILTER_COMPILE_CONFIG(escapeQuotes($sqlString))) . '";';
+               // No, generate the eval() command
+               $eval = '$sql = "' . FILTER_COMPILE_EXPRESSION_CODE(FILTER_COMPILE_CONFIG($sqlString)) . '";';
                eval($eval);
 
                // ... and set it
index f85b4df13e107b501931b6c35c2555f4ac387ff1..a8935e8c2c38ac5917d416a2e5034de479989290 100644 (file)
@@ -2640,7 +2640,7 @@ function getMessageFromErrorCode ($code) {
                        if (isExtensionActive('mailid', true)) {
                                $message = getMessage('ERROR_CONFIRMING_MAIL');
                        } else {
-                               $message = getMaskedMessage('EXTENSION_PROBLEM_NOT_INSTALLED', 'mailid');
+                               $message = getMaskedMessage('EXTENSION_PROBLEM_EXTENSION_NOT_INSTALLED', 'mailid');
                        }
                        break;
 
index e63b021236d942ab9de98650db49aae2e365fe85..9ac1fadacc115d2a1399a7575ed01ab1d444e174 100644 (file)
@@ -1268,7 +1268,7 @@ function generateAdminLink ($adminId) {
                                $adminLink = '<a href="' . generateEmailLink(getAdminEmail($adminId), 'admins') . '" title="{--ADMIN_CONTACT_LINK_TITLE--}">' . $login . '</a>';
                        } else {
                                // Extension not found
-                               $adminLink = getMaskedMessage('EXTENSION_PROBLEM_NOT_INSTALLED', 'admins');
+                               $adminLink = getMaskedMessage('EXTENSION_PROBLEM_EXTENSION_NOT_INSTALLED', 'admins');
                        }
                } else {
                        // Maybe deleted?
index 967b68ee8157280f98ee659eae747f357c12b266..ebe814aa938c22f0d6cbe27627f868b3ddd6eacd 100644 (file)
@@ -120,7 +120,7 @@ ORDER BY beg_points DESC, last_online DESC, userid",
                if (isExtensionActive('autopurge')) {
                        $content['autopurge_timeout'] = generateDateTime(time() - getConfig('ap_inactive_since'), 2);
                } else {
-                       $content['autopurge_timeout'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('EXTENSION_PROBLEM_NOT_INSTALLED', 'autopurge'));
+                       $content['autopurge_timeout'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('EXTENSION_PROBLEM_EXTENSION_NOT_INSTALLED', 'autopurge'));
                }
 
                // Load final template
index 6a273ad932cef6662cbf60f95f631c90e46bb224..38c8ee8f842e209b8014d4afa9a08c51825b5a86 100644 (file)
@@ -132,7 +132,7 @@ ORDER BY `points` DESC, `last_online` DESC, `userid` ASC",
                if (isExtensionActive('autopurge')) {
                        $content['autopurge_timeout'] = generateDateTime(time() - getConfig('ap_inactive_since'), 2);
                } else {
-                       $content['autopurge_timeout'] = getMaskedMessage('EXTENSION_PROBLEM_NOT_INSTALLED', 'autopurge');
+                       $content['autopurge_timeout'] = getMaskedMessage('EXTENSION_PROBLEM_EXTENSION_NOT_INSTALLED', 'autopurge');
                }
 
                // Load final template