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 "";
}