Changeset 4280 for trunk/upgrade.php
- Timestamp:
- Nov 16, 2009, 8:17:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/upgrade.php
r3282 r4280 25 25 26 26 // load config file 27 $config_file = PHPWG_ROOT_PATH.'include/ mysql.inc.php';27 $config_file = PHPWG_ROOT_PATH.'include/config_database.inc.php'; 28 28 $config_file_contents = @file_get_contents($config_file); 29 29 if ($config_file_contents === false) … … 41 41 include_once(PHPWG_ROOT_PATH.'admin/include/functions_upgrade.php'); 42 42 43 include(PHPWG_ROOT_PATH.'include/ mysql.inc.php');43 include(PHPWG_ROOT_PATH.'include/config_database.inc.php'); 44 44 include(PHPWG_ROOT_PATH . 'include/config_default.inc.php'); 45 45 @include(PHPWG_ROOT_PATH. 'include/config_local.inc.php'); … … 51 51 52 52 // Database connection 53 mysql_connect( $c fgHote, $cfgUser, $cfgPassword) or die ( "Could not connect to database server" );54 mysql_select_db( $c fgBase) or die ( "Could not connect to database" );53 mysql_connect( $conf['db_host'], $conf['db_user'], $conf['db_password'] ) or die ( "Could not connect to database server" ); 54 mysql_select_db( $conf['db_base'] ) or die ( "Could not connect to database" ); 55 55 if ( version_compare(mysql_get_server_info(), '4.1.0', '>=') 56 56 and defined('DB_CHARSET') and DB_CHARSET!='' ) … … 263 263 include($upgrade_file); 264 264 265 // Something to add in mysql.inc.php?265 // Something to add in config_database.inc.php? 266 266 if (!empty($mysql_changes)) 267 267 { … … 274 274 { 275 275 array_push($page['infos'], 276 l10n('in include/ mysql.inc.php, before ?>, insert:') . '276 l10n('in include/config_database.inc.php, before ?>, insert:') . ' 277 277 <p><textarea rows="4" cols="40">'.implode("\r\n" , $mysql_changes).'</textarea></p>' 278 278 );
Note: See TracChangeset
for help on using the changeset viewer.