jchamb2010

PHPSend Example

Aug 20th, 2012
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. <?php
  2. $args = $_POST['arguments'];
  3.  
  4. switch(array_shift($args)){
  5.     case 'report':
  6.         $message = implode(' ', $args);
  7.     mysql_query('INSERT INTO ....');
  8.         exit('Thank you for your report!');
  9.     break;
  10.     case 'verify':
  11.         $code = array_shift($args);
  12.         if($code == 'VALID CODE'){
  13.              exit('The code you have entered is valid!');
  14.     }else{
  15.          exit('The code you have entered is not valid. Please try agian');
  16.         }
  17.      break;
  18. }
  19. exit('The command you have entered does not exist.');
  20.  
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment