mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
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. git-svn-id: http://piwigo.org/svn/trunk@4280 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+5
-5
@@ -168,7 +168,7 @@ $infos = array();
|
||||
$errors = array();
|
||||
|
||||
// Open config.php ... if it exists
|
||||
$config_file = PHPWG_ROOT_PATH.'include/mysql.inc.php';
|
||||
$config_file = PHPWG_ROOT_PATH.'include/config_database.inc.php';
|
||||
if (@file_exists($config_file))
|
||||
{
|
||||
include($config_file);
|
||||
@@ -291,10 +291,10 @@ if ( isset( $_POST['install'] ))
|
||||
{
|
||||
$step = 2;
|
||||
$file_content = '<?php
|
||||
$cfgBase = \''.$dbname.'\';
|
||||
$cfgUser = \''.$dbuser.'\';
|
||||
$cfgPassword = \''.$dbpasswd.'\';
|
||||
$cfgHote = \''.$dbhost.'\';
|
||||
$conf[\'db_base\'] = \''.$dbname.'\';
|
||||
$conf[\'db_user\'] = \''.$dbuser.'\';
|
||||
$conf[\'db_password\'] = \''.$dbpasswd.'\';
|
||||
$conf[\'db_host\'] = \''.$dbhost.'\';
|
||||
|
||||
$prefixeTable = \''.$table_prefix.'\';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user