From 5f3caeda01c6267d583b9243dc10cfbcf4af64ae Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Tue, 4 Sep 2007 04:55:54 +0000 Subject: fixed an install bug, and bumped version for release --- lib/init.php | 2 +- lib/install.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/init.php b/lib/init.php index 7e4c07c4..e644924f 100644 --- a/lib/init.php +++ b/lib/init.php @@ -71,7 +71,7 @@ if (!count($results)) { } /** This is the version.... fluf nothing more... **/ -$results['version'] = '3.4-Alpha2 Build (003)'; +$results['version'] = '3.4-Alpha2'; $results['int_config_version'] = '5'; $results['raw_web_path'] = $results['web_path']; diff --git a/lib/install.php b/lib/install.php index 779f9564..a5f7032b 100644 --- a/lib/install.php +++ b/lib/install.php @@ -74,12 +74,12 @@ function install_check_status($configfile) { Check and see if they've got _any_ account if they don't then they're cool */ - $results = parse_ini_file($GLOBALS['configfile']); + $results = parse_ini_file($configfile); $dbh = check_database($results['database_hostname'],$results['database_username'],$results['database_password']); if (is_resource($dbh)) { - - $sql = "SELECT * FROM user"; + @mysql_select_db($results['database_name'],$dbh); + $sql = "SELECT * FROM `user`"; $db_results = @mysql_query($sql, $dbh); if (!@mysql_num_rows($db_results)) { return true; -- cgit