From 06275ba5c51a10282e45e2d7b9c0cf3075a530cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Thu, 31 Mar 2005 01:58:53 +0000 Subject: [PATCH] * Changing checks for [.]./LocalSettings.php and [.]./AdminSettings.php to only check for [.]./LocalSettings.php * Removing function writeAdminSettings (not used at all) --- config/index.php | 11 ++--------- config/installer.php | 6 +++--- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/config/index.php b/config/index.php index 331fdf4e11..80d429ae50 100644 --- a/config/index.php +++ b/config/index.php @@ -123,7 +123,7 @@ require_once( "../includes/Namespace.php" ); /* Check for existing configurations and bug out! */ -if( file_exists( "../LocalSettings.php" ) || file_exists( "../AdminSettings.php" ) ) { +if( file_exists( "../LocalSettings.php" ) ) { dieout( "

Wiki is configured.

Already configured... return to the wiki.

@@ -131,7 +131,7 @@ if( file_exists( "../LocalSettings.php" ) || file_exists( "../AdminSettings.php"

(You should probably remove this directory for added security.)

" ); } -if( file_exists( "./LocalSettings.php" ) || file_exists( "./AdminSettings.php" ) ) { +if( file_exists( "./LocalSettings.php" ) ) { dieout( "

You're configured!

Please move LocalSettings.php to the parent directory, then @@ -926,13 +926,6 @@ if( count( $errs ) ) { /* -------------------------------------------------------------------------------------- */ -function writeAdminSettings( $conf ) { - return " -\$wgDBadminuser = \"{$conf->DBadminuser}\"; -\$wgDBadminpassword = \"{$conf->DBadminpassword}\"; -"; -} - function escapePhpString( $string ) { return strtr( $string, array( diff --git a/config/installer.php b/config/installer.php index 237c7a3f21..cb0c39f166 100644 --- a/config/installer.php +++ b/config/installer.php @@ -106,7 +106,7 @@ class Installer { } function checkConfigured() { - if( file_exists( "../LocalSettings.php" ) || file_exists( "../AdminSettings.php" ) ) { + if( file_exists( "../LocalSettings.php" ) ) { $this->ui->warning( "Already configured." ); return false; } @@ -114,7 +114,7 @@ class Installer { } function checkInstalled() { - if( file_exists( "./LocalSettings.php" ) || file_exists( "./AdminSettings.php" ) ) { + if( file_exists( "./LocalSettings.php" ) ) { $this->ui->warning( "Already configured; move LocalSettings.php from this directory to the parent dir and take the wiki for a spin." ); return false; } @@ -273,4 +273,4 @@ $ui =& new InstallInterface(); $i =& new Installer( $ui ); $i->runInstall(); -?> \ No newline at end of file +?> -- 2.20.1