X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=6cbb71e3b85b1379cd01b272b4f217fac496e9d9;hb=2e9047fd7ffae1c81bc1921967b1bf0fdb447e0e;hp=56e281e356472b3a7eaa763d7312e2c036b792f5;hpb=09f5758c42a33a56bdd461c946ffe759a59c54aa;p=mailer.git diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 56e281e356..6cbb71e3b8 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -341,6 +341,11 @@ function isDebugModeEnabled () { return ((isConfigEntrySet('DEBUG_MODE')) && (getConfig('DEBUG_MODE') == 'Y')); } +// Checks wether SQL debugging is enabled +function isSqlDebuggingEnabled () { + return ((isConfigEntrySet('DEBUG_SQL')) && (getConfig('DEBUG_SQL') == 'Y')); +} + // Checks wether we shall debug regular expressions function isDebugRegExpressionEnabled () { // Simply check it @@ -397,6 +402,7 @@ function copyFileVerified ($source, $dest, $chmod = '') { // Send a header but checks before if we can do so function sendHeader ($header) { // Send the header + //* DEBUG: */ logDebugMessage(__FUNCTION__ . ': header=' . $header); $GLOBALS['header'][] = trim($header); }