Index: trunk/extensions/Configure/CHANGELOG |
— | — | @@ -1,6 +1,13 @@ |
2 | 2 | This file lists changes on this extension. |
3 | 3 | Localisation updates are done on betawiki and aren't listed here. |
4 | 4 | |
| 5 | +0.10.11 - 1 December 2008 |
| 6 | + * New reason field in Special:Configure and Special:Extension to allow users |
| 7 | + to put a comment for each version |
| 8 | + * File handler now uses PHP files instead of serialized files. |
| 9 | + NOTE FOR PEOPLE USING FILES HANDLER: OLD SERIALIZED WON'T WORK ANYMORE IN |
| 10 | + THIS VERSION, PLEASE RUN THE migrateFiles.php SCRIPT. |
| 11 | + |
5 | 12 | 0.10.10 - 30 November 2008 |
6 | 13 | * Editable settings are now restricted by default to some settings, if you |
7 | 14 | want to have all of them, set $wgConfigureEditableSettings = array(); in |
Index: trunk/extensions/Configure/migrateFiles.php |
— | — | @@ -0,0 +1,40 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * Maintenance script that migrate configuration from serialzed file to plain |
| 6 | + * PHP, for security |
| 7 | + * |
| 8 | + * @file |
| 9 | + * @ingroup Extensions |
| 10 | + * @author Alexandre Emsenhuber |
| 11 | + * @license GPLv2 or higher |
| 12 | + */ |
| 13 | + |
| 14 | +$IP = getenv( 'MW_INSTALL_PATH' ); |
| 15 | +if ( $IP === false ) |
| 16 | + $IP = dirname( __FILE__ ) . '/../..'; |
| 17 | + |
| 18 | +require_once( "$IP/maintenance/commandLine.inc" ); |
| 19 | + |
| 20 | +$handler = new ConfigureHandlerFiles(); |
| 21 | +$dir = $handler->getDir(); |
| 22 | + |
| 23 | +if ( !$dirObj = opendir( $dir ) ) { |
| 24 | + fwrite( STDERR, "The directory '$dir' doesn't exist, aborting.\n" ); |
| 25 | + exit; |
| 26 | +} |
| 27 | + |
| 28 | +while ( ( $file = readdir( $dirObj ) ) !== false ) { |
| 29 | + if ( preg_match( '/^conf-(\d{14})\.ser$/', $file, $m ) || $file == 'conf-now.ser' ) { |
| 30 | + $old = "$dir/$file"; |
| 31 | + $new = substr( $old, 0, -3 ) . 'php'; |
| 32 | + |
| 33 | + $settings = unserialize( file_get_contents( $old ) ); |
| 34 | + $cont = '<?php $settings = '.var_export( $settings, true ).";"; |
| 35 | + |
| 36 | + file_put_contents( $new, $cont ); |
| 37 | + fwrite( STDOUT, "$file done\n" ); |
| 38 | + } |
| 39 | +} |
| 40 | + |
| 41 | +fwrite( STDOUT, "complete. Please delete all the files listed above for security.\n" ); |
Property changes on: trunk/extensions/Configure/migrateFiles.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 42 | + native |
Index: trunk/extensions/Configure/Configure.php |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | 'url' => 'http://www.mediawiki.org/wiki/Extension:Configure', |
19 | 19 | 'description' => 'Allow authorised users to configure the wiki via a web-based interface', |
20 | 20 | 'descriptionmsg' => 'configure-desc', |
21 | | - 'version' => '0.10.10', |
| 21 | + 'version' => '0.10.11', |
22 | 22 | ); |
23 | 23 | |
24 | 24 | # Configuration part |
— | — | @@ -147,7 +147,7 @@ |
148 | 148 | /** |
149 | 149 | * Styles versions, you shouldn't change it |
150 | 150 | */ |
151 | | -$wgConfigureStyleVersion = '12'; |
| 151 | +$wgConfigureStyleVersion = '13'; |
152 | 152 | |
153 | 153 | # Adding new rights... |
154 | 154 | $wgAvailableRights[] = 'configure'; |