# HG changeset patch # User Dan # Date 1199245849 18000 # Node ID 4da2dfc2872897606744f36aaa79e27b90297839 # Parent 4d9a4da1975b37081eb191ed73a9f0077cd62810 Installer works again now (for MySQL only) diff -r 4d9a4da1975b -r 4da2dfc28728 includes/common.php --- a/includes/common.php Tue Jan 01 22:30:53 2008 -0500 +++ b/includes/common.php Tue Jan 01 22:50:49 2008 -0500 @@ -45,10 +45,14 @@ * @return float */ -function microtime_float() +// First check to see if something already declared this function.... it happens often. +if ( !function_exists('microtime_float') ) { - list($usec, $sec) = explode(" ", microtime()); - return ((float)$usec + (float)$sec); + function microtime_float() + { + list($usec, $sec) = explode(" ", microtime()); + return ((float)$usec + (float)$sec); + } } // Determine starting time diff -r 4d9a4da1975b -r 4da2dfc28728 install.php --- a/install.php Tue Jan 01 22:30:53 2008 -0500 +++ b/install.php Tue Jan 01 22:50:49 2008 -0500 @@ -22,6 +22,12 @@ exit; } +function microtime_float() +{ + list($usec, $sec) = explode(" ", microtime()); + return ((float)$usec + (float)$sec); +} + define('IN_ENANO_INSTALL', 'true'); define('ENANO_VERSION', '1.0.3'); @@ -64,6 +70,7 @@ require('includes/constants.php'); require('includes/rijndael.php'); require('includes/functions.php'); +require('includes/dbal.php'); strip_magic_quotes_gpc(); $neutral_color = 'C';