update
This commit is contained in:
71
pack/index.php.bak
Normal file
71
pack/index.php.bak
Normal file
@@ -0,0 +1,71 @@
|
||||
<?
|
||||
|
||||
ini_set('default_charset', 'UTF8');
|
||||
|
||||
// Rozpoczynamy pomiar czasu wykonywania skryptu
|
||||
$mtime = microtime();
|
||||
$mtime = explode(" ", $mtime);
|
||||
$mtime = $mtime[1] + $mtime[0];
|
||||
$starttime = $mtime;
|
||||
// -->
|
||||
include('./core/core.php');
|
||||
include('./core/Class/MFLog.class.php');
|
||||
//include(LOG4PHP_DIR.'LoggerManager.class.php');
|
||||
|
||||
|
||||
spl_autoload_register(function ($className) {
|
||||
//echo $className;
|
||||
Core::LoadClass($className);
|
||||
});
|
||||
Core::Init(PageType::STRONA);
|
||||
|
||||
|
||||
/**
|
||||
* Autoloader klas
|
||||
*
|
||||
* @param unknown_type $className
|
||||
*/
|
||||
|
||||
|
||||
Core::LoadSmarty();
|
||||
|
||||
//$logger = LoggerManager::getLogger(isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : __FILE__);
|
||||
// Sciezki zapisujemy w ponizszym pliku
|
||||
include("routes.php");
|
||||
Router::$parseLang = true;
|
||||
Router::$parseLocation = true;
|
||||
//Router::$curLang = 'pl';
|
||||
Router::$forceExactRoute = true;
|
||||
Router::$reverseRoute = true;
|
||||
Router::$pathParsed = true;
|
||||
|
||||
$scripts = array();
|
||||
$null = array();
|
||||
Registry::Set('javascript', $null);
|
||||
$null = array();
|
||||
Registry::Set('footerJavascript', $null);
|
||||
|
||||
$front = new FrontController();
|
||||
|
||||
$front->SetTitleDelimiter(' - ');
|
||||
|
||||
|
||||
$front->FlipTitle();
|
||||
|
||||
$front->Dispatch();
|
||||
|
||||
// Konczymy pomiar czasu wykonywania skryptu
|
||||
$mtime = microtime();
|
||||
$mtime = explode(" ", $mtime);
|
||||
$mtime = $mtime[1] + $mtime[0];
|
||||
$endtime = $mtime;
|
||||
$totaltime = ($endtime - $starttime);
|
||||
|
||||
// Wyswietlamy wynik poza szablonem
|
||||
//$logger->info($totaltime);
|
||||
//if ($totaltime>1.99) {
|
||||
// $logger->warn($totaltime);
|
||||
//}
|
||||
|
||||
Core::Garbage();
|
||||
?>
|
||||
Reference in New Issue
Block a user