From ea0a463ec36d5d8a89c84b78e68b6819373631a7 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Mon, 4 Aug 2025 10:24:34 +0000 Subject: [PATCH] reverted index.php --- public/index.php | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/public/index.php b/public/index.php index 2d0040714..2a565f805 100755 --- a/public/index.php +++ b/public/index.php @@ -4,27 +4,18 @@ */ // phpinfo(); exit; define('mfUI',"web"); -// set max mem to 4GB -ini_set('memory_limit', '4096M'); - -//display errors -ini_set('display_errors', 1); -ini_set('display_startup_errors', 1); -ini_set('html_errors', 1); - - if(file_exists("../config/config.php")) { - require("../config/config.php"); + require("../config/config.php"); } else { - die("CANNOT FIND CONFIGFILE!\n\nThis is a serious error. You should not run your mvcfronk application without a configfile. Not proceeding."); + die("CANNOT FIND CONFIGFILE!\n\nThis is a serious error. You should not run your mvcfronk application without a configfile. Not proceeding."); } if(defined('MFLOCALE_TIME')) { - setlocale(LC_TIME, MFLOCALE_TIME); + setlocale(LC_TIME, MFLOCALE_TIME); } if(defined('MFLOCALE_MONETARY')) { - setlocale(LC_MONETARY, MFLOCALE_MONETARY); + setlocale(LC_MONETARY, MFLOCALE_MONETARY); } /* disabled because of issues with saving float values to mysql if(defined('MFLOCALE_NUMERIC')) { @@ -45,14 +36,14 @@ $app=new mfRouter($request); if(defined("MFVALUECACHE_DEBUG") && MFVALUECACHE_DEBUG) { - $i = 0; - $cache = mfValuecache::singleton()->getCache(); - echo "
\n";
-  echo "mfValuecache keys total: ".count($cache)."\n";
-  foreach($cache as $key => $value) {
-    echo "\t$i => $key (". gettype($value).")\n";
-    $i++;
-  }
+    $i = 0;
+    $cache = mfValuecache::singleton()->getCache();
+    echo "
\n";
+    echo "mfValuecache keys total: ".count($cache)."\n";
+    foreach($cache as $key => $value) {
+        echo "\t$i => $key (". gettype($value).")\n";
+        $i++;
+    }
 
-  echo "
"; + echo "
"; }