X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fdb%2Flib-mysql3.php;h=625125b39d6e6f3f5b9ad5f98c0439bef2c0947d;hp=61aaa980cd7a7498ee0e30e7c1f8abb78fca6a4a;hb=16de7d9e8b98108627db01688bc095240b5ba8d2;hpb=66ef19610daf4eff3fb395b4908d44d5c9a96b00 diff --git a/inc/db/lib-mysql3.php b/inc/db/lib-mysql3.php index 61aaa980cd..625125b39d 100644 --- a/inc/db/lib-mysql3.php +++ b/inc/db/lib-mysql3.php @@ -78,7 +78,7 @@ function SQL_QUERY ($sqlString, $F, $L) { $querytimeBefore = array_sum(explode(' ', microtime())); // Run SQL command - ///* DEBUG: */ print($sqlString . '
'); + //* DEBUG: */ print('F=' . basename($F) . ',L=' . $L . 'sql=' . $sqlString . '
'); $result = mysql_query($sqlString, SQL_GET_LINK()) or addFatalMessage(__FUNCTION__, __LINE__, $F . ' (' . $L . '):' . mysql_error() . '
Query string:
@@ -283,9 +283,9 @@ function SQL_QUERY_ESC ($qstring, $data, $F, $L, $run=true, $strip=true, $secure // Debugging // - ///* DEBUG: */ $fp = fopen(getConfig('CACHE_PATH') . 'escape_debug.log', 'a') or app_die(__FILE__, __LINE__, "Cannot write debug.log!"); - ///* DEBUG: */ fwrite($fp, $F.'('.$L."): ".str_replace("\r", '', str_replace("\n", " ", $eval))."\n"); - ///* DEBUG: */ fclose($fp); + //* DEBUG: */ $fp = fopen(getConfig('CACHE_PATH') . 'escape_debug.log', 'a') or app_die(__FILE__, __LINE__, "Cannot write debug.log!"); + //* DEBUG: */ fwrite($fp, $F.'('.$L."): ".str_replace("\r", '', str_replace("\n", " ", $eval))."\n"); + //* DEBUG: */ fclose($fp); if ($run === true) { // Run SQL query (default) @@ -317,7 +317,7 @@ function SQL_ESCAPE ($str, $secureString=true, $strip=true) { $ret = smartAddSlashes($str); } elseif (function_exists('mysql_real_escape_string')) { // The new and improved version - ///* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'str='.$str); + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'str='.$str); $ret = mysql_real_escape_string($str, SQL_GET_LINK()); } elseif (function_exists('mysql_escape_string')) { // The obsolete function