_ >   1 1 <?php
< >     2 /**
    3 * @version      $Id: index.php 12734 2009-10-20 19:28:11Z 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();
2 15
< >   3   $start = getmicrotime();
    16         define('FULL_PATH', realpath(dirname(__FILE__)));
    17         include_once(FULL_PATH.'/core/kernel/startup.php');
4 18
< >   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');
    19         $application =& kApplication::Instance();
    20         $application->Init();
    21         $application->Run();
    22         $application->Done();
9 23
< >   10   $application =& kApplication::Instance();
  11   $application->Init();
  12   $application->Run();
  13   $application->Done();
    24         $end = getmicrotime();
14 25
< _   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   ?>
    26         function getmicrotime()
    27         {
    28             list($usec, $sec) = explode(" ", microtime());
    29             return ((float)$usec + (float)$sec);
    30         }