diff -r 9a1a32bc2050 -r 2b60c89dc27f upgrade.php --- a/upgrade.php Sat Nov 24 01:04:30 2007 -0500 +++ b/upgrade.php Sat Nov 24 01:35:12 2007 -0500 @@ -13,7 +13,8 @@ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. */ -define('IN_ENANO_INSTALL', 'true'); +define('IN_ENANO_INSTALL', 'true'); +define('IN_ENANO_UPGRADE', 'true'); if(!defined('scriptPath')) { $sp = dirname($_SERVER['REQUEST_URI']); @@ -27,8 +28,16 @@ define('contentPath', $sp); } -global $_starttime, $this_page, $sideinfo; -$_starttime = microtime(true); +global $this_page, $sideinfo; + +function microtime_float() +{ + list($usec, $sec) = explode(" ", microtime()); + return ((float)$usec + (float)$sec); +} + +global $_starttime; +$_starttime = microtime_float(); // Determine directory (special case for development servers) if ( strpos(__FILE__, '/repo/') && file_exists('.enanodev') )