From 2b2c1ecae1d5658e7b235883cccbc5871ec68dd9 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Fri, 21 Jul 2006 20:19:24 +0000 Subject: [PATCH] Rename togglearea to toggleDBarea. Make name of "root user" change when a different database type is chosen. --- config/index.php | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/config/index.php b/config/index.php index 5b34464166..867fb75701 100644 --- a/config/index.php +++ b/config/index.php @@ -50,11 +50,13 @@ $ourdb['mysql']['fullname'] = 'MySQL'; $ourdb['mysql']['havedriver'] = 0; $ourdb['mysql']['compile'] = 'mysql'; $ourdb['mysql']['bgcolor'] = '#ffe5a7'; +$ourdb['mysql']['rootuser'] = 'root'; $ourdb['postgres']['fullname'] = 'PostgreSQL'; $ourdb['postgres']['havedriver'] = 0; $ourdb['postgres']['compile'] = 'pgsql'; $ourdb['postgres']['bgcolor'] = '#aaccff'; +$ourdb['postgres']['rootuser'] = 'postgres'; ?> @@ -142,17 +144,32 @@ $ourdb['postgres']['bgcolor'] = '#aaccff'; @@ -483,12 +500,12 @@ print "
  • Environment check $conf->SysopName = importPost( "SysopName", "WikiSysop" ); $conf->SysopPass = importPost( "SysopPass" ); $conf->SysopPass2 = importPost( "SysopPass2" ); + $conf->RootUser = importPost( "RootUser", "root" ); + $conf->RootPW = importPost( "RootPW", "-" ); ## MySQL specific: $conf->DBprefix = importPost( "DBprefix" ); $conf->DBmysql5 = (importPost( "DBmysql5" ) == "true") ? "true" : "false"; - $conf->RootUser = importPost( "RootUser", "root" ); - $conf->RootPW = importPost( "RootPW", "-" ); $conf->LanguageCode = importPost( "LanguageCode", "en" ); ## Postgres specific: @@ -1189,7 +1206,7 @@ if( count( $errs ) ) { @@ -1492,7 +1509,7 @@ function aField( &$conf, $field, $text, $type = "text", $value = "", $onclick = } echo "\t\t