Index: trunk/index.php
===================================================================
diff -u -r4243 -r7391
--- trunk/index.php	(.../index.php)	(revision 4243)
+++ trunk/index.php	(.../index.php)	(revision 7391)
@@ -3,29 +3,24 @@
 $start = getmicrotime();
 
 define('FULL_PATH', realpath(dirname(__FILE__)));
-define('APPLICATION_CLASS', 'MyApplication');
-include_once(FULL_PATH.'/kernel/kernel4/startup.php');
 
+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. Make sure to checkout correct branch (RC or HEAD).');
+}
+include_once(FULL_PATH.'/core/kernel/startup.php');
+
 $application =& kApplication::Instance();
 $application->Init();
 $application->Run();
 $application->Done();
 
-/*$application->Debugger->appendHTML('Objects if kDBItem, kDBList class created (<b>'.count($application->APCalled).'</b>):');
-print_pre($application->APCalled);*/
-
 $end = getmicrotime();
 
-if ($application->isDebugMode() && !dbg_ConstOn('DBG_SKIP_REPORTING')) {
-	echo '<br><br><div style="font-family: arial,verdana; font-size: 8pt;">Memory used: '.round(memory_get_usage()/1024/1024, 1).' Mb <br>';
-	echo 'Time used: '.round(($end - $start), 5).' Sec <br></div>';
-}
-
 //print_pre(get_included_files());
 
-function getmicrotime() 
-{ 
-    list($usec, $sec) = explode(" ", microtime()); 
-    return ((float)$usec + (float)$sec); 
-} 
+function getmicrotime()
+{
+    list($usec, $sec) = explode(" ", microtime());
+    return ((float)$usec + (float)$sec);
+}
 ?>
\ No newline at end of file