Installer works again now (for MySQL only)
authorDan
Tue, 01 Jan 2008 22:50:49 -0500
changeset 269 4da2dfc28728
parent 268 4d9a4da1975b
child 270 a48b72312f6d
Installer works again now (for MySQL only)
includes/common.php
install.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
--- 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';