r23530 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23529‎ | r23530 | r23531 >
Date:23:10, 28 June 2007
Author:tstarling
Status:old
Tags:
Comment:
redirect warning
Modified paths:
  • /trunk/extensions/BoardVote/BoardVote.i18n.php (modified) (history)
  • /trunk/extensions/BoardVote/GoToBoardVote_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/BoardVote/GoToBoardVote_body.php
@@ -11,8 +11,9 @@
1212 global $wgOut, $wgDBname, $site, $lang, $wgLang, $wgUser;
1313 global $wgBoardVoteEditCount, $wgBoardVoteCountDate, $wgBoardVoteFirstEdit;
1414
 15+ $this->setHeaders();
1516 if ( $wgUser->isLoggedIn() ) {
16 - $url = 'http://wikimedia.spi-inc.org/index.php?' . wfArrayToCGI( array(
 17+ $url = 'https://wikimedia.spi-inc.org/index.php?' . wfArrayToCGI( array(
1718 'title' => 'Special:Boardvote' . ( $par ? "/$par" : '' ),
1819 'sid' => session_id(),
1920 'db' => $wgDBname,
@@ -20,9 +21,10 @@
2122 'lang' => $lang,
2223 'uselang' => $wgLang->getCode()
2324 ) );
24 - $wgOut->redirect( $url );
 25+
 26+ $wgOut->addWikiText( wfMsg( "boardvote_redirecting", $url ) );
 27+ $wgOut->addMeta( 'http:Refresh', '20;url=' . htmlspecialchars( $url ) );
2528 } else {
26 - $this->setHeaders();
2729 $wgOut->addWikiText( wfMsg( "boardvote_notloggedin", $wgBoardVoteEditCount,
2830 $wgLang->timeanddate( $wgBoardVoteCountDate ),
2931 $wgLang->timeanddate( $wgBoardVoteFirstEdit )
Index: trunk/extensions/BoardVote/BoardVote.i18n.php
@@ -79,6 +79,12 @@
8080 'boardvote_blocked' => 'Sorry, you have been blocked on your registered wiki. Blocked users are not allowed to vote.',
8181 'boardvote_welcome' => "Welcome '''$1'''!",
8282 'go_to_board_vote' => 'Wikimedia Board Elections 2007',
 83+ 'boardvote_redirecting' => 'For improved security and transparency, we are running the vote on an
 84+external, independently controlled server.
 85+
 86+You will be redirected to this external server in 20 seconds. [$1 Click here] to go there now.
 87+
 88+A security warning about an unsigned certificate may be displayed.',
8389 );
8490 $wgBoardVoteMessages['cs'] = array(
8591 'boardvote' => "Volby do Správní rady nadace Wikimedia",

Status & tagging log