r66035 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66034‎ | r66035 | r66036 >
Date:18:38, 7 May 2010
Author:reedy
Status:deferred
Tags:
Comment:
canhasmoarawesomeness?
Modified paths:
  • /trunk/extensions/Awesomeness/Awesomeness.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Awesomeness/Awesomeness.php
@@ -43,7 +43,24 @@
4444 /**
4545 * Based on Svips patch at http://bug-attachment.wikimedia.org/attachment.cgi?id=7351
4646 */
47 -if ( array_key_exists( 'QUERY_STRING', $_SERVER ) && strtolower( $_SERVER['QUERY_STRING'] ) == 'o_o' ) {
48 - header( 'Content-Type: text/plain' );
49 - die( $_SERVER['QUERY_STRING'] == 'O_o' ? 'o_O' : 'O_o' );
 47+if ( array_key_exists( 'QUERY_STRING', $_SERVER ) ) {
 48+
 49+ switch ( strtolower( $_SERVER['QUERY_STRING'] ) )
 50+ {
 51+ case 'o_o':
 52+ header( 'Content-Type: text/plain' );
 53+ die( $_SERVER['QUERY_STRING'] == 'O_o' ? 'o_O' : 'O_o' );
 54+
 55+ case 'o_0':
 56+ header( 'Content-Type: text/plain' );
 57+ die( '0_o' );
 58+
 59+ case '0_o':
 60+ header( 'Content-Type: text/plain' );
 61+ die( 'o_0' );
 62+
 63+ case 'isthiswikiawesome':
 64+ header( 'Content-Type: text/plain' );
 65+ die( 'hell yeah!' );
 66+ }
5067 }
\ No newline at end of file

Status & tagging log