<?php $start = getmicrotime(); define('FULL_PATH', realpath(dirname(__FILE__))); define('APPLICATION_CLASS', 'MyApplication'); define('ADMINS_LIST','/in-portal/users/users.php'); include_once(FULL_PATH."/kernel/kernel4/startup.php"); /* kApplication $application */ $application =& kApplication::Instance(); $application->Init(); $application->Run(); $application->Done(); $end = getmicrotime(); if (defined('DEBUG_MODE')) { 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); } ?>