-<?php\r
-/************************************************************************\r
- * MXChange v0.2.1 Start: 08/29/2003 *\r
- * =============== Last change: 01/16/2008 *\r
- * *\r
- * -------------------------------------------------------------------- *\r
- * File : fatal_errors.php *\r
- * -------------------------------------------------------------------- *\r
- * Short description : Outputs fatal errors *\r
- * -------------------------------------------------------------------- *\r
- * Kurzbeschreibung : Gibt fatale Fehler aus *\r
- * -------------------------------------------------------------------- *\r
- * *\r
- * -------------------------------------------------------------------- *\r
- * Copyright (c) 2003 - 2008 by Roland Haeder *\r
- * For more information visit: http://www.mxchange.org *\r
- * *\r
- * This program is free software; you can redistribute it and/or modify *\r
- * it under the terms of the GNU General Public License as published by *\r
- * the Free Software Foundation; either version 2 of the License, or *\r
- * (at your option) any later version. *\r
- * *\r
- * This program is distributed in the hope that it will be useful, *\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *\r
- * GNU General Public License for more details. *\r
- * *\r
- * You should have received a copy of the GNU General Public License *\r
- * along with this program; if not, write to the Free Software *\r
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *\r
- * MA 02110-1301 USA *\r
- ************************************************************************/\r
-\r
-// Some security stuff...\r
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))\r
-{\r
- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";\r
- require($INC);\r
-}\r
-\r
-if ((sizeof($FATAL) > 0) || (!empty($FATAL[0])))\r
-{\r
- // Main div container\r
- LOAD_TEMPLATE("fatal_header");\r
-\r
- // Set unset variable\r
- if (empty($check)) $check = "";\r
- if (mxchange_installing) {\r
- // While we are installing ouput other header than while it is installed... :-)\r
- $OUT = "";\r
- foreach ($FATAL as $key=>$value) {\r
- // Prepare content for the template\r
- $content = array(\r
- 'key' => ($key + 1),\r
- 'value' => $value\r
- );\r
-\r
- // Load row template\r
- $OUT .= LOAD_TEMPLATE("install_fatal_row", true, $content);\r
- }\r
-\r
- // Load main template\r
- LOAD_TEMPLATE("install_fatal_table", false, $OUT);\r
- } elseif (mxchange_installed) {\r
- // Display all runtime fatal errors\r
- $OUT = "";\r
- foreach ($FATAL as $key=>$value) {\r
- // Prepare content for the template\r
- $content = array(\r
- 'key' => ($key + 1),\r
- 'value' => $value\r
- );\r
-\r
- // Load row template\r
- $OUT .= LOAD_TEMPLATE("runtime_fatal_row", true, $content);\r
- }\r
-\r
- // Load main template\r
- mxchange_die(LOAD_TEMPLATE("runtime_fatal_table", true, $OUT));\r
- }\r
- $CORR = FATAL_REPORT_ERRORS;\r
-\r
- // PHP warnings fixed\r
- if ($check == "done") {\r
- if (IS_ADMIN()) $CORR = FATAL_CORRECT_ERRORS;\r
- }\r
-\r
- // Load footer template\r
- LOAD_TEMPLATE("fatal_footer", false, $CORR);\r
-}\r
-\r
-//\r
-?>\r
+<?php
+/************************************************************************
+ * MXChange v0.2.1 Start: 08/29/2003 *
+ * =============== Last change: 01/16/2008 *
+ * *
+ * -------------------------------------------------------------------- *
+ * File : fatal_errors.php *
+ * -------------------------------------------------------------------- *
+ * Short description : Outputs fatal errors *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung : Gibt fatale Fehler aus *
+ * -------------------------------------------------------------------- *
+ * *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder *
+ * For more information visit: http://www.mxchange.org *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
+ * MA 02110-1301 USA *
+ ************************************************************************/
+
+// Some security stuff...
+if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
+{
+ $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+ require($INC);
+}
+
+if ((sizeof($FATAL) > 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);
+}
+
+//
+?>