Index: trunk/extensions/Awesomeness/Awesomeness.php |
— | — | @@ -43,7 +43,24 @@ |
44 | 44 | /** |
45 | 45 | * Based on Svips patch at http://bug-attachment.wikimedia.org/attachment.cgi?id=7351 |
46 | 46 | */ |
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 | + } |
50 | 67 | } |
\ No newline at end of file |