[ Index ] |
|
Code source de Seagull 0.6.1 |
1 <?php 2 /** 3 * Returns systime in ms. 4 * 5 * @return string Execution time in milliseconds 6 */ 7 function getSystemTime() 8 { 9 $time = gettimeofday(); 10 $resultTime = $time['sec'] * 1000; 11 $resultTime += floor($time['usec'] / 1000); 12 return $resultTime; 13 } 14 15 16 // start timer 17 define('SGL_START_TIME', getSystemTime()); 18 $pearTest = '@PHP-DIR@'; 19 20 // set initial paths according to install type 21 if ($pearTest != '@' . 'PHP-DIR'. '@') { 22 define('SGL_PEAR_INSTALLED', true); 23 $rootDir = '@PHP-DIR@/Seagull'; 24 $varDir = '@DATA-DIR@/Seagull/var'; 25 } else { 26 $rootDir = dirname(__FILE__) . '/..'; 27 $varDir = dirname(__FILE__) . '/../var'; 28 } 29 // check for lib cache 30 define('SGL_CACHE_LIBS', (is_file($varDir . '/ENABLE_LIBCACHE.txt')) 31 ? true 32 : false); 33 34 if (is_file($rootDir .'/lib/SGL/FrontController.php')) { 35 require_once $rootDir .'/lib/SGL/FrontController.php'; 36 } 37 38 // determine if setup needed 39 if (!is_file($varDir . '/INSTALL_COMPLETE.php')) { 40 header('Location: setup.php'); 41 exit; 42 } else { 43 define('SGL_INSTALLED', true); 44 } 45 46 SGL_FrontController::run(); 47 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Fri Mar 30 01:27:52 2007 | par Balluche grâce à PHPXref 0.7 |