X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmysql-connect.php;h=2caef50a738ec7f305d413af27360f33f14bdac3;hp=5d0c6c8a489fb7b2b5b1e21b2cd2e9848ca37d81;hb=56156f6c4392510cdbe0eb4f2ccefc23b43e2672;hpb=3daede4c904e23905c3e48dd6749019deca0a0e0 diff --git a/inc/mysql-connect.php b/inc/mysql-connect.php index 5d0c6c8a48..2caef50a73 100644 --- a/inc/mysql-connect.php +++ b/inc/mysql-connect.php @@ -71,9 +71,12 @@ function __errorHandler ($errno, $errstr, $errfile, $errline) { // Output message to user and die if (EXT_IS_ACTIVE("debug")) { // Debug extension found! :-) + // @TODO Can this be rewritten to mxchange_die() ? die("Error message written to debug.log. Please try to call the main page to continue."); } else { // No debug extension found + // @TODO Find a way to rewrite debug_print_backtrace() so we can maybe + // @TODO (?) rewrite this to mxchange_die() print("Please report this error at bugs.mxchange.org:
");
 		debug_print_backtrace();
 		die("
Thank you for your help finding bugs."); @@ -105,7 +108,7 @@ register_shutdown_function('__SHUTDOWN_HOOK'); // Check if the user setups his MySQL stuff... if ((empty($MySQL['login'])) && (!defined('mxchange_installing')) && (!isset($_GET['installing'])) && (isBooleanConstantAndTrue('mxchange_installed'))) { // No login entered and outside installation mode - echo "".LANG_WARNING.": "; + echo "".LANG_WARNING.": "; if (isBooleanConstantAndTrue('mxchange_installed')) { // You have changed my configuration file! die(DIE_CONFIG_CHANGED_YOU); @@ -115,7 +118,7 @@ if ((empty($MySQL['login'])) && (!defined('mxchange_installing')) && (!isset($_G } } elseif ((!isBooleanConstantAndTrue('mxchange_installing')) && (!isset($_GET['installing'])) && (empty($MySQL['password'])) && (isBooleanConstantAndTrue('warn_no_pass'))) { // No database password entered!!! - echo "".LANG_WARNING.": ".WARN_NULL_PASSWORD; + echo "
".LANG_WARNING.":
".WARN_NULL_PASSWORD; } // Set dummy $_CONFIG array