(bug 5378) General logs link in Special:Contributions
[lhc/web/wiklou.git] / redirect.php
1 <?php
2 unset( $DP );
3 unset( $IP );
4 $wgCommandLineMode = false;
5 define( 'MEDIAWIKI', true );
6 if ( isset( $_REQUEST['GLOBALS'] ) ) {
7 echo '<a href="http://www.hardened-php.net/index.76.html">$GLOBALS overwrite vulnerability</a>';
8 die( -1 );
9 }
10
11 require_once( './includes/Defines.php' );
12 require_once( './LocalSettings.php' );
13 global $wgArticlePath;
14
15 require_once( 'includes/WebRequest.php' );
16 $wgRequest = new WebRequest();
17
18 $page = $wgRequest->getVal( 'wpDropdown' );
19
20 $url = str_replace( "$1", urlencode( $page ), $wgArticlePath );
21
22 header( "Location: {$url}" );
23 ?>