Using the same name for variables in ./include/mysql.inc.php

git-svn-id: http://piwigo.org/svn/trunk@141 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub 2003-09-20 15:04:09 +00:00
parent 4de359a25f
commit ef5df3db1f
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ if ( $_GET['step'] == 1 )
$file_content.= "\n\$cfgUser = '". $_POST['cfgUser']."';";
$file_content.= "\n\$cfgPassword = '". $_POST['cfgPassword']."';";
$file_content.= "\n\$cfgHote = '". $_POST['cfgHote']."';";
$file_content.= "\n\$prefix_table = '".$_POST['prefix_table']."';";
$file_content.= "\n\$prefixeTable = '".$_POST['prefix_table']."';";
$file_content.= "\n?>";
// writting the configuration file
if ( $fp = @fopen( '../include/mysql.inc.php', 'a+' ) )

View file

@ -318,7 +318,7 @@ function replace_search( $string, $search )
function database_connection()
{
include( PREFIX_INCLUDE.'./include/mysql.inc.php' );
define( PREFIX_TABLE, $prefix_table );
define( PREFIX_TABLE, $prefixeTable );
@mysql_connect( $cfgHote, $cfgUser, $cfgPassword )
or die ( "Could not connect to server" );