From: Chad Horohoe Date: Tue, 3 Jun 2008 14:53:47 +0000 (+0000) Subject: (bug 12859) Deprecate $wgRateLimitsExcludedGroups in favor of adding the 'noratelimit... X-Git-Tag: 1.31.0-rc.0~47215 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=bf01cd43b9cca18fd28429eb49694226b76303c4;p=lhc%2Fweb%2Fwiklou.git (bug 12859) Deprecate $wgRateLimitsExcludedGroups in favor of adding the 'noratelimit' user right. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 3be863aaff..108ce303af 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -395,6 +395,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Added md5 parameter to action=edit * (bug 14335) Logging in to unified account using API not possible * Added action=emailuser to send an email to a user +* (bug 12859) Deprecate $wgRateLimitsExcludedGroups in favor of adding the + 'noratelimit' user right. === Languages updated in 1.13 === diff --git a/config/index.php b/config/index.php index 52b4441679..763d6c1593 100644 --- a/config/index.php +++ b/config/index.php @@ -597,6 +597,7 @@ print "
  • Environment check $conf->RootUser = importPost( "RootUser", "root" ); $conf->RootPW = importPost( "RootPW", "" ); $useRoot = importCheck( 'useroot', false ); + $createAdminSettings = importCheck('createadminsettings', false); $conf->LanguageCode = importPost( "LanguageCode", "en" ); ## MySQL specific: @@ -1109,13 +1110,35 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) { } if(fwrite( $f, $localSettings ) ) { fclose( $f ); - print "

  • \n"; - writeSuccessMessage(); + print "\n"; } else { fclose( $f ); die("

    An error occured while writing the config/LocalSettings.php file. Check user rights and disk space then try again.

    \n"); print "\n"; } + + /* Create AdminSettings.php if we've enabled that */ + if ( $createAdminSettings ){ + print "
  • \n"; + print "

    Creating AdminSettings.php...

    \n\n"; + $f = file_get_contents( '../AdminSettings.sample' ); + + if( $f == false ) { + dieout( "

    Couldn't write out AdminSettings.php. Check that the directory permissions are correct.

    \n" ); + } + + $f = str_replace( 'wikiadmin', $conf->RootUser, $f ); + $f = str_replace( 'adminpass', $conf->RootPW, $f ); + + if ( file_put_contents( 'AdminSettings.php', $f ) ) { + print "
  • \n"; + } else { + die("

    An error occured while writing the config/AdminSettings.php file. Check user rights and disk space then try again.

    \n"); + print "\n"; + } + } + print "\n
    "; + writeSuccessMessage(); } while( false ); } @@ -1383,6 +1406,16 @@ if( count( $errs ) ) { the database (if needed) or tables within it, please check the box and provide details of a superuser account, such as root, which does.

    +
    + + checked="checked" /> +   +
    + +

    + If the superuser account above is specified, you can optionally create an AdminSettings.php + file. This is used for running the maintenance scripts. +

    getEffectiveGroups(), $wgRateLimitsExcludedGroups) == array(); + return !$this->userCan('noratelimits'); } /**