reverted index.php
This commit is contained in:
@@ -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 "<pre class='xdebug-var-dump'>\n";
|
||||
echo "<small>mfValuecache keys total: ".count($cache)."</small>\n";
|
||||
foreach($cache as $key => $value) {
|
||||
echo "\t$i => $key (". gettype($value).")\n";
|
||||
$i++;
|
||||
}
|
||||
$i = 0;
|
||||
$cache = mfValuecache::singleton()->getCache();
|
||||
echo "<pre class='xdebug-var-dump'>\n";
|
||||
echo "<small>mfValuecache keys total: ".count($cache)."</small>\n";
|
||||
foreach($cache as $key => $value) {
|
||||
echo "\t$i => $key (". gettype($value).")\n";
|
||||
$i++;
|
||||
}
|
||||
|
||||
echo "</pre>";
|
||||
echo "</pre>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user