Inconsistency between echo and print() fixed to OUTPUT_HTML() (not all)
[mailer.git] / inc / config-functions.php
index d261faecaa7a200c538dacbb876dfcc4098b5c29..c70857e9af77a6b39957d952af2335b5cb34ab74 100644 (file)
@@ -113,7 +113,7 @@ function loadConfiguration ($no = '0') {
        // Check for cache extension, cache-array and if the requested configuration is in cache
        if ((isset($GLOBALS['cache_array'])) && (is_array($GLOBALS['cache_array'])) && (isset($GLOBALS['cache_array']['config'][$no])) && (is_array($GLOBALS['cache_array']['config'][$no]))) {
                // Load config from cache
-               //* DEBUG: */ echo gettype($GLOBALS['cache_array']['config'][$no])."<br />\n";
+               //* DEBUG: */ OUTPUT_HTML(gettype($GLOBALS['cache_array']['config'][$no])."<br />");
                foreach ($GLOBALS['cache_array']['config'][$no] as $key => $value) {
                        setConfigEntry($key, $value);
                } // END - foreach
@@ -216,7 +216,7 @@ function updateOldConfigFile () {
                        // Is the line found?
                        if ((substr($line, 0, strlen($old)) == $old) && (!isset($done[$old]))) {
                                // Entry found!
-                               //* DEBUG: */ print htmlentities($line) . " - FOUND!<br />\n";
+                               //* DEBUG: */ OUTPUT_HTML(htmlentities($line) . " - FOUND!<br />");
 
                                // Eval the line...
                                eval($line);
@@ -247,9 +247,9 @@ function updateOldConfigFile () {
                                } // END - if
 
                                /// ... and write it to the new config
-                               //* DEBUG: */ print 'function=' . $function . ',new=' . $new . ',comment=' . $comment . "<br />\n";
+                               //* DEBUG: */ OUTPUT_HTML('function=' . $function . ',new=' . $new . ',comment=' . $comment . "<br />");
                                changeDataInFile(constant('PATH') . 'inc/cache/config-local.php', $comment, $function . "('" . $oldNew . "', \"", "\");", constant($new), 0);
-                               //* DEBUG: */ print "CHANGED!<br />\n";
+                               //* DEBUG: */ OUTPUT_HTML("CHANGED!<br />");
 
                                // Mark it as done
                                $done[$old] = 1;
@@ -280,7 +280,7 @@ function updateOldConfigFile () {
                        }
 
                        // Debug output only
-                       //* DEBUG: */ print htmlentities($line) . " - MySQL!<br />\n";
+                       //* DEBUG: */ OUTPUT_HTML(htmlentities($line) . " - MySQL!<br />");
 
                        // Split parts so we can check them and prepare them
                        $parts = explode('=>', $line);