X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=redirect.php;h=699926ec30c39d332d401d150b7a211f6ee44230;hb=8081138adbf37e12e4af9114a631612ed44d11db;hp=c0e8746ef6f507a533071d5c7b69516a2ccc0c54;hpb=266d41f165fe23e85f70f90891f951b0b0bcda7a;p=lhc%2Fweb%2Fwiklou.git diff --git a/redirect.php b/redirect.php index c0e8746ef6..699926ec30 100644 --- a/redirect.php +++ b/redirect.php @@ -1,23 +1,17 @@ $GLOBALS overwrite vulnerability'; - 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/WebRequest.php' ); -$wgRequest = new WebRequest(); +require_once( './includes/WebStart.php' ); +global $wgArticlePath; $page = $wgRequest->getVal( 'wpDropdown' ); $url = str_replace( "$1", urlencode( $page ), $wgArticlePath ); header( "Location: {$url}" ); -?>