1   <?php
  2   /**
  3   * @version      $Id: index.php 13553 2010-05-12 07:32:28Z alex $
  4   * @package      In-Portal
  5   * @copyright    Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
  6   * @license      GNU/GPL
  7   * In-Portal is Open Source software.
  8   * This means that this software may have been modified pursuant
  9   * the GNU General Public License, and as distributed it includes
  10   * or is derivative of works licensed under the GNU General Public License
  11   * or other free or open source software licenses.
  12   * See http://www.in-portal.org/license for copyright notices and details.
  13   */
  14           $start = getmicrotime();
  15  
  16           define('FULL_PATH', realpath(dirname(__FILE__)));
  17           include_once(FULL_PATH.'/core/kernel/startup.php');
  18  
  19           $application =& kApplication::Instance();
  20           $application->Init();
  21           $application->Run();
  22           $application->Done();
  23  
  24           $end = getmicrotime();
  25  
  26           function getmicrotime()
  27           {
  28               list($usec, $sec) = explode(" ", microtime());
  29               return ((float)$usec + (float)$sec);
  30           }