Index: trunk/extensions/Awesomeness/Awesomeness.php |
— | — | @@ -48,18 +48,10 @@ |
49 | 49 | |
50 | 50 | $O_o = false; |
51 | 51 | |
52 | | - switch ( strtolower( $_SERVER['QUERY_STRING'] ) ) { |
53 | | - case 'o_o': |
54 | | - $O_o = ( $_SERVER['QUERY_STRING'] == 'O_o' ) ? 'o_O' : 'O_o'; |
55 | | - break; |
56 | | - case 'o_0': |
57 | | - $O_o = '0_o'; |
58 | | - break; |
59 | | - case '0_o': |
60 | | - $O_o = 'o_0'; |
61 | | - break; |
62 | | - case 'isthiswikiawesome': |
63 | | - $O_o = 'Hell yeah!'; |
| 52 | + if ( strtolower( $_SERVER['QUERY_STRING'] ) == 'isthiswikiawesome' ) { |
| 53 | + $O_o = 'Hell yeah!'; |
| 54 | + } else if ( preg_match( '/^[0Oo°][-_\.][0Oo°]$/', $_SERVER['QUERY_STRING'] ) ) { |
| 55 | + $O_o = strrev( $_SERVER['QUERY_STRING'] ); |
64 | 56 | } |
65 | 57 | |
66 | 58 | if ( $O_o ) die( $O_o ); |