Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $text = 'wallpost-'.md5(`cat /etc/hostname`);
- switch($text) {
- case 'a':
- echo "A\n";
- break;
- case 'b':
- echo "B\n";
- break;
- case preg_match('/^wallpost-([0-9a-f]+)$/', $text, $what)?$text:'':
- echo "{$text}\n";
- var_dump($what);
- break;
- case 'd':
- echo "D\n";
- break;
- default:
- echo "NO";
- break;
- }
- ?>
- I'm a bit appalled that this solution actually works. BRB shower
Add Comment
Please, Sign In to add comment