$conf->RootUser = importPost( "RootUser", "root" );
$conf->RootPW = importPost( "RootPW", "" );
$useRoot = importCheck( 'useroot', false );
+ $createAdminSettings = importCheck('createadminsettings', false);
$conf->LanguageCode = importPost( "LanguageCode", "en" );
## MySQL specific:
}
if(fwrite( $f, $localSettings ) ) {
fclose( $f );
- print "</li></ul><hr/>\n";
- writeSuccessMessage();
+ print "</li>\n";
} else {
fclose( $f );
die("<p class='error'>An error occured while writing the config/LocalSettings.php file. Check user rights and disk space then try again.</p>\n");
print "</li></ul>\n";
}
+
+ /* Create AdminSettings.php if we've enabled that */
+ if ( $createAdminSettings ){
+ print "<li style=\"list-style: none\">\n";
+ print "<p>Creating AdminSettings.php...</p>\n\n";
+ $f = file_get_contents( '../AdminSettings.sample' );
+
+ if( $f == false ) {
+ dieout( "<p>Couldn't write out AdminSettings.php. Check that the directory permissions are correct.</p>\n" );
+ }
+
+ $f = str_replace( 'wikiadmin', $conf->RootUser, $f );
+ $f = str_replace( 'adminpass', $conf->RootPW, $f );
+
+ if ( file_put_contents( 'AdminSettings.php', $f ) ) {
+ print "</li>\n";
+ } else {
+ die("<p class='error'>An error occured while writing the config/AdminSettings.php file. Check user rights and disk space then try again.</p>\n");
+ print "</li></ul>\n";
+ }
+ }
+ print "</ul>\n<hr />";
+ writeSuccessMessage();
} while( false );
}
the database (if needed) or tables within it, please check the box and provide details
of a superuser account, such as <strong>root</strong>, which does.
</p>
+ <div class="config-input">
+ <label class="column">AdminSettings.php:</label>
+ <input type="checkbox" name="createadminsettings" id="createadminsettings" <?php if( $createAdminSettings ) { ?>checked="checked" <?php } ?>/>
+ <label for="useroot">Create AdminSettings.php</label>
+ </div>
+
+ <p class="config-desc">
+ If the superuser account above is specified, you can optionally create an AdminSettings.php
+ file. This is used for running the maintenance scripts.
+ </p>
<?php database_switcher('mysql'); ?>
<div class="config-input"><?php
$wgGroupPermissions['sysop']['suppressredirect'] = true;
$wgGroupPermissions['sysop']['apihighlimits'] = true;
$wgGroupPermissions['sysop']['browsearchive'] = true;
+$wgGroupPermissions['sysop']['noratelimits'] = true;
#$wgGroupPermissions['sysop']['mergehistory'] = true;
// Permission to change users' group assignments
-$wgGroupPermissions['bureaucrat']['userrights'] = true;
+$wgGroupPermissions['bureaucrat']['userrights'] = true;
+$wgGroupPermissions['bureaucrat']['noratelimits'] = true;
// Permission to change users' groups assignments across wikis
#$wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
/**
* Array of groups which should never trigger the rate limiter
+ *
+ * @deprecated as of 1.13, use $wgGroupPermissions[]['noratelimit']
+ * instead.
*/
-$wgRateLimitsExcludedGroups = array( 'sysop', 'bureaucrat' );
+$wgRateLimitsExcludedGroups = array();
/**
* On Special:Unusedimages, consider images "used", if they are put