/* Check for existing configurations and bug out! */
-if( file_exists( "../LocalSettings.php" ) || file_exists( "../AdminSettings.php" ) ) {
+if( file_exists( "../LocalSettings.php" ) ) {
dieout( "<h2>Wiki is configured.</h2>
<p>Already configured... <a href='../index.php'>return to the wiki</a>.</p>
<p>(You should probably remove this directory for added security.)</p>" );
}
-if( file_exists( "./LocalSettings.php" ) || file_exists( "./AdminSettings.php" ) ) {
+if( file_exists( "./LocalSettings.php" ) ) {
dieout( "<h2>You're configured!</h2>
<p>Please move <tt>LocalSettings.php</tt> to the parent directory, then
/* -------------------------------------------------------------------------------------- */
-function writeAdminSettings( $conf ) {
- return "
-\$wgDBadminuser = \"{$conf->DBadminuser}\";
-\$wgDBadminpassword = \"{$conf->DBadminpassword}\";
-";
-}
-
function escapePhpString( $string ) {
return strtr( $string,
array(
}
function checkConfigured() {
- if( file_exists( "../LocalSettings.php" ) || file_exists( "../AdminSettings.php" ) ) {
+ if( file_exists( "../LocalSettings.php" ) ) {
$this->ui->warning( "Already configured." );
return false;
}
}
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;
}
$i =& new Installer( $ui );
$i->runInstall();
-?>
\ No newline at end of file
+?>