<?php

$start = getmicrotime();

define('FULL_PATH', realpath(dirname(__FILE__)));

if (!file_exists(FULL_PATH.'/core/kernel/application.php')) {
	die('Please re-checkout _inportal_kernel4 cvs module into the root directory ('.FULL_PATH.') and remove kernel/kernel4 folder');
}
include_once(FULL_PATH.'/core/kernel/startup.php');

$application =& kApplication::Instance();
$application->Init();
$application->Run();
$application->Done();

$end = getmicrotime();

//print_pre(get_included_files());

function getmicrotime()
{
    list($usec, $sec) = explode(" ", microtime());
    return ((float)$usec + (float)$sec);
}
?>