X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=0.2.1%2Finc%2Ffatal_errors.php;fp=0.2.1%2Finc%2Ffatal_errors.php;h=edee328c70734d6b98083215650361dce3b530d4;hp=ba6416410ee331c35edb9f583d4c0da2a61a68f1;hb=7bc25dd08431c94ce9edca131d56c1a36b13c28a;hpb=157ee010917df5ca07e6d31b42f67417b2516d74 diff --git a/0.2.1/inc/fatal_errors.php b/0.2.1/inc/fatal_errors.php index ba6416410e..edee328c70 100644 --- a/0.2.1/inc/fatal_errors.php +++ b/0.2.1/inc/fatal_errors.php @@ -1,93 +1,93 @@ - 0) || (!empty($FATAL[0]))) -{ - // Main div container - LOAD_TEMPLATE("fatal_header"); - - // Set unset variable - if (empty($check)) $check = ""; - if (mxchange_installing) { - // While we are installing ouput other header than while it is installed... :-) - $OUT = ""; - foreach ($FATAL as $key=>$value) { - // Prepare content for the template - $content = array( - 'key' => ($key + 1), - 'value' => $value - ); - - // Load row template - $OUT .= LOAD_TEMPLATE("install_fatal_row", true, $content); - } - - // Load main template - LOAD_TEMPLATE("install_fatal_table", false, $OUT); - } elseif (mxchange_installed) { - // Display all runtime fatal errors - $OUT = ""; - foreach ($FATAL as $key=>$value) { - // Prepare content for the template - $content = array( - 'key' => ($key + 1), - 'value' => $value - ); - - // Load row template - $OUT .= LOAD_TEMPLATE("runtime_fatal_row", true, $content); - } - - // Load main template - mxchange_die(LOAD_TEMPLATE("runtime_fatal_table", true, $OUT)); - } - $CORR = FATAL_REPORT_ERRORS; - - // PHP warnings fixed - if ($check == "done") { - if (IS_ADMIN()) $CORR = FATAL_CORRECT_ERRORS; - } - - // Load footer template - LOAD_TEMPLATE("fatal_footer", false, $CORR); -} - -// -?> + 0) || (!empty($FATAL[0]))) +{ + // Main div container + LOAD_TEMPLATE("fatal_header"); + + // Set unset variable + if (empty($check)) $check = ""; + if (mxchange_installing) { + // While we are installing ouput other header than while it is installed... :-) + $OUT = ""; + foreach ($FATAL as $key=>$value) { + // Prepare content for the template + $content = array( + 'key' => ($key + 1), + 'value' => $value + ); + + // Load row template + $OUT .= LOAD_TEMPLATE("install_fatal_row", true, $content); + } + + // Load main template + LOAD_TEMPLATE("install_fatal_table", false, $OUT); + } elseif (mxchange_installed) { + // Display all runtime fatal errors + $OUT = ""; + foreach ($FATAL as $key=>$value) { + // Prepare content for the template + $content = array( + 'key' => ($key + 1), + 'value' => $value + ); + + // Load row template + $OUT .= LOAD_TEMPLATE("runtime_fatal_row", true, $content); + } + + // Load main template + mxchange_die(LOAD_TEMPLATE("runtime_fatal_table", true, $OUT)); + } + $CORR = FATAL_REPORT_ERRORS; + + // PHP warnings fixed + if ($check == "done") { + if (IS_ADMIN()) $CORR = FATAL_CORRECT_ERRORS; + } + + // Load footer template + LOAD_TEMPLATE("fatal_footer", false, $CORR); +} + +// +?>