dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
a few more images compressed with pngout
[lhc/web/wiklou.git]
/
redirect.php
diff --git
a/redirect.php
b/redirect.php
index
c0e8746
..
699926e
100644
(file)
--- a/
redirect.php
+++ b/
redirect.php
@@
-1,23
+1,17
@@
<?php
<?php
-unset( $DP );
-unset( $IP );
-$wgCommandLineMode = false;
-define( 'MEDIAWIKI', true );
-if ( isset( $_REQUEST['GLOBALS'] ) ) {
- echo '<a href="http://www.hardened-php.net/index.76.html">$GLOBALS overwrite vulnerability</a>';
- die( -1 );
-}
-require_once( './includes/Defines.php' );
-require_once( './LocalSettings.php' );
-global $wgArticlePath;
+/**
+ * Script that redirects to the article passed in the "wpDropdown" parameter.
+ * This is used by the nostalgia skin for the special pages drop-down
+ *
+ * @file
+ */
-require_once( '
includes/WebReques
t.php' );
-
$wgRequest = new WebRequest()
;
+require_once( '
./includes/WebStar
t.php' );
+
global $wgArticlePath
;
$page = $wgRequest->getVal( 'wpDropdown' );
$url = str_replace( "$1", urlencode( $page ), $wgArticlePath );
header( "Location: {$url}" );
$page = $wgRequest->getVal( 'wpDropdown' );
$url = str_replace( "$1", urlencode( $page ), $wgArticlePath );
header( "Location: {$url}" );
-?>