Changeset 4280 for trunk/install.php


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/install.php

    r4047 r4280  
    169169
    170170// Open config.php ... if it exists
    171 $config_file = PHPWG_ROOT_PATH.'include/mysql.inc.php';
     171$config_file = PHPWG_ROOT_PATH.'include/config_database.inc.php';
    172172if (@file_exists($config_file))
    173173{
     
    292292    $step = 2;
    293293    $file_content = '<?php
    294 $cfgBase = \''.$dbname.'\';
    295 $cfgUser = \''.$dbuser.'\';
    296 $cfgPassword = \''.$dbpasswd.'\';
    297 $cfgHote = \''.$dbhost.'\';
     294$conf[\'db_base\'] = \''.$dbname.'\';
     295$conf[\'db_user\'] = \''.$dbuser.'\';
     296$conf[\'db_password\'] = \''.$dbpasswd.'\';
     297$conf[\'db_host\'] = \''.$dbhost.'\';
    298298
    299299$prefixeTable = \''.$table_prefix.'\';
Note: See TracChangeset for help on using the changeset viewer.