1   <?php
  2  
  3   $start = getmicrotime();
  4  
  5   define('FULL_PATH', realpath(dirname(__FILE__)));
  6   define('APPLICATION_CLASS', 'MyApplication');
  7   define('ADMINS_LIST','/in-portal/users/users.php');
  8   include_once(FULL_PATH.'/kernel/kernel4/startup.php');
  9  
  10   $application =& kApplication::Instance();
  11   $application->Init();
  12   $application->Run();
  13   $application->Done();
  14  
  15   $end = getmicrotime();
  16  
  17   if (defined('DEBUG_MODE')&&DEBUG_MODE) {
  18           echo '<br><br><div style="font-family: arial,verdana; font-size: 8pt;">Memory used: '.round(memory_get_usage()/1024/1024, 1).' Mb <br>';
  19           echo 'Time used: '.round(($end - $start), 5).' Sec <br></div>';
  20   }
  21  
  22   //print_pre(get_included_files());
  23  
  24   function getmicrotime()
  25   {
  26       list($usec, $sec) = explode(" ", microtime());
  27       return ((float)$usec + (float)$sec);
  28   }
  29   ?>