53 lines
1.3 KiB
PHP
Executable File
53 lines
1.3 KiB
PHP
Executable File
<?php
|
|
//ini set max ram to 2GB
|
|
ini_set('memory_limit', '2048M');
|
|
|
|
//show errors
|
|
ini_set('display_errors', 1);
|
|
ini_set('display_startup_errors', 1);
|
|
error_reporting(E_ALL);
|
|
|
|
/*
|
|
* SOPP - SBIDI Network Operations Plattform
|
|
*/
|
|
// phpinfo(); exit;
|
|
define('mfUI',"web");
|
|
|
|
if(file_exists("../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.");
|
|
}
|
|
|
|
if(defined('MFLOCALE_TIME')) {
|
|
setlocale(LC_TIME, MFLOCALE_TIME);
|
|
}
|
|
if(defined('MFLOCALE_MONETARY')) {
|
|
setlocale(LC_MONETARY, MFLOCALE_MONETARY);
|
|
}
|
|
if(defined('MFLOCALE_NUMERIC')) {
|
|
setlocale(LC_NUMERIC, MFLOCALE_NUMERIC);
|
|
}
|
|
|
|
define('FRONKDB_SQLDEBUG',false);
|
|
|
|
error_reporting(E_ALL & ~(E_NOTICE | E_STRICT | E_DEPRECATED));
|
|
require_once(LIBDIR."/mvcfronk/mfRouter/mfRouter.php");
|
|
|
|
$request=array_merge($_GET,$_POST);
|
|
|
|
$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++;
|
|
}
|
|
|
|
echo "</pre>";
|
|
} |