- replacement of variable names in include/mysql.inc.php (for upgrades) :

dbname        => cfgBase
dbuser        => cfgUser
dbpasswd      => cfgPassword
dbhost        => cfgHote
table_prefix  => prefixeTable


git-svn-id: http://piwigo.org/svn/trunk@681 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2005-01-08 23:32:25 +00:00
parent 971d0c5a95
commit 34354aa6a9
4 changed files with 28 additions and 28 deletions
+3 -3
View File
@@ -33,14 +33,14 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
include(PHPWG_ROOT_PATH.'include/template.php');
include(PHPWG_ROOT_PATH.'include/mysql.inc.php');
include_once(PHPWG_ROOT_PATH.'include/constants.php');
define('PREFIX_TABLE', $table_prefix);
define('PREFIX_TABLE', $prefixeTable);
$conf['show_queries'] = false;
// Database connection
mysql_connect( $dbhost, $dbuser, $dbpasswd )
mysql_connect( $cfgHote, $cfgUser, $cfgPassword )
or die ( "Could not connect to database server" );
mysql_select_db( $dbname )
mysql_select_db( $cfgBase )
or die ( "Could not connect to database" );
// +-----------------------------------------------------------------------+
// | tricky output |