Ignore:
Timestamp:
Nov 16, 2009, 8:17:01 PM (14 years ago)
Author:
nikrou
Message:

Feature 928 resolved.
Replace include/mysql.inc.php by include/config_database.inc.php to be independant of database engine
Rename database configurations variables by ones in $conf array.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upgrade_feed.php

    r3282 r4280  
    3333include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    3434include_once(PHPWG_ROOT_PATH.'admin/include/functions_upgrade.php');
    35 include(PHPWG_ROOT_PATH.'include/mysql.inc.php');
     35include(PHPWG_ROOT_PATH.'include/config_database.inc.php');
    3636include(PHPWG_ROOT_PATH . 'include/config_default.inc.php');
    3737@include(PHPWG_ROOT_PATH. 'include/config_local.inc.php');
     
    5555// +-----------------------------------------------------------------------+
    5656
    57 mysql_connect($cfgHote, $cfgUser, $cfgPassword) or die("Could not connect to database server");
    58 mysql_select_db($cfgBase) or die("Could not connect to database");
     57mysql_connect($conf['db_host'], $conf['db_user'], $conf['db_password']) or die("Could not connect to database server");
     58mysql_select_db($conf['db_base']) or die("Could not connect to database");
    5959if ( version_compare(mysql_get_server_info(), '4.1.0', '>=')
    6060    and defined('DB_CHARSET') and DB_CHARSET!='' )
Note: See TracChangeset for help on using the changeset viewer.