Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = $_POST['arguments'];
- switch(array_shift($args)){
- case 'report':
- $message = implode(' ', $args);
- mysql_query('INSERT INTO ....');
- exit('Thank you for your report!');
- break;
- case 'verify':
- $code = array_shift($args);
- if($code == 'VALID CODE'){
- exit('The code you have entered is valid!');
- }else{
- exit('The code you have entered is not valid. Please try agian');
- }
- break;
- }
- exit('The command you have entered does not exist.');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment