Index: trunk/extensions/BoardVote/GoToBoardVote_body.php |
— | — | @@ -11,8 +11,9 @@ |
12 | 12 | global $wgOut, $wgDBname, $site, $lang, $wgLang, $wgUser; |
13 | 13 | global $wgBoardVoteEditCount, $wgBoardVoteCountDate, $wgBoardVoteFirstEdit; |
14 | 14 | |
| 15 | + $this->setHeaders(); |
15 | 16 | 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( |
17 | 18 | 'title' => 'Special:Boardvote' . ( $par ? "/$par" : '' ), |
18 | 19 | 'sid' => session_id(), |
19 | 20 | 'db' => $wgDBname, |
— | — | @@ -20,9 +21,10 @@ |
21 | 22 | 'lang' => $lang, |
22 | 23 | 'uselang' => $wgLang->getCode() |
23 | 24 | ) ); |
24 | | - $wgOut->redirect( $url ); |
| 25 | + |
| 26 | + $wgOut->addWikiText( wfMsg( "boardvote_redirecting", $url ) ); |
| 27 | + $wgOut->addMeta( 'http:Refresh', '20;url=' . htmlspecialchars( $url ) ); |
25 | 28 | } else { |
26 | | - $this->setHeaders(); |
27 | 29 | $wgOut->addWikiText( wfMsg( "boardvote_notloggedin", $wgBoardVoteEditCount, |
28 | 30 | $wgLang->timeanddate( $wgBoardVoteCountDate ), |
29 | 31 | $wgLang->timeanddate( $wgBoardVoteFirstEdit ) |
Index: trunk/extensions/BoardVote/BoardVote.i18n.php |
— | — | @@ -79,6 +79,12 @@ |
80 | 80 | 'boardvote_blocked' => 'Sorry, you have been blocked on your registered wiki. Blocked users are not allowed to vote.', |
81 | 81 | 'boardvote_welcome' => "Welcome '''$1'''!", |
82 | 82 | '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.', |
83 | 89 | ); |
84 | 90 | $wgBoardVoteMessages['cs'] = array( |
85 | 91 | 'boardvote' => "Volby do Správní rady nadace Wikimedia", |