# HG changeset patch # User Dan # Date 1198281155 18000 # Node ID 03850e101d7f54872b032f0beb355d09e9b14288 # Parent c94af5b5c40f17cdd4c90503babfc623a886cf0d NOW the installer should work. diff -r c94af5b5c40f -r 03850e101d7f includes/common.php --- a/includes/common.php Fri Dec 21 18:33:56 2007 -0500 +++ b/includes/common.php Fri Dec 21 18:52:35 2007 -0500 @@ -45,10 +45,13 @@ * @return float */ -function microtime_float() +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 c94af5b5c40f -r 03850e101d7f includes/dbal.php --- a/includes/dbal.php Fri Dec 21 18:33:56 2007 -0500 +++ b/includes/dbal.php Fri Dec 21 18:52:35 2007 -0500 @@ -164,6 +164,11 @@ define('contentPath', "$sp/index.php?title="); } $loc = scriptPath . '/install.php'; + define('IN_ENANO_INSTALL', 1); + $GLOBALS['lang'] = new Language('eng'); + global $lang; + $lang->load_file('./language/english/enano.json'); + $lang->load_file('./language/english/install.json'); // header("Location: $loc"); redirect($loc, 'Enano not installed', 'We can\'t seem to find an Enano installation (valid config file). You will be transferred to the installation wizard momentarily...', 3); exit; diff -r c94af5b5c40f -r 03850e101d7f install.php --- a/install.php Fri Dec 21 18:33:56 2007 -0500 +++ b/install.php Fri Dec 21 18:52:35 2007 -0500 @@ -64,6 +64,12 @@ return true; } +function microtime_float() +{ + list($usec, $sec) = explode(" ", microtime()); + return ((float)$usec + (float)$sec); +} + require('includes/wikiformat.php'); require('includes/constants.php'); require('includes/rijndael.php'); @@ -72,6 +78,10 @@ require('includes/lang.php'); require('includes/json.php'); +// Initialize language support +$lang = new Language('eng'); +$lang->load_file('./language/english/install.json'); + strip_magic_quotes_gpc(); // @@ -823,6 +833,7 @@ function show_license($fb = false) { + global $lang; ?>
Now we need some information that will allow Enano to contact your database server. Enano uses PostgreSQL as a data storage backend, - and we need to have access to a PostgreSQL server in order to continue.
-If you do not have access to a PostgreSQL server, and you are using your own server, you can download PostgreSQL for free from - PostgreSQL.org.
+get('database_blurb_needdb'); ?>
+get('database_blurb_howtomysql'); ?>
+ + ' . $lang->get('database_vm_login_info', array( 'host' => 'localhost', 'user' => 'enano', 'pass' => 'clurichaun', 'name' => 'enano_www1' )) . ' + '; + } + ?>