SHARE
TWEET

Untitled

a guest May 19th, 2017 179 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. #
  3. $MailTo="pizagna@gmail.com";
  4. $firstname=utf8_decode($_POST['firstname']);
  5. $firstname=eregi_replace( "\r", "\n", $firstname);
  6. $firstname=stripcslashes($firstname);
  7. $firstname=utf8_decode($_POST['lastname']);
  8. $lastname=eregi_replace( "\r", "\n", $lastname);
  9. $lastname=stripcslashes($lastname);
  10. $firstname=utf8_decode($_POST['Subject']);
  11. $Subject=eregi_replace( "\r", "\n", $Subject);
  12. $Subject=stripcslashes($Subject);
  13. $firstname=utf8_decode($_POST['Body']);
  14. $Body=eregi_replace( "\r", "\n", $Body);
  15. $Body=stripcslashes($Body);
  16.  
  17. #
  18. # Formating Date   ############################################################
  19. # ("m.d.Y"); pour passer au format europŽen ("d.m.Y");
  20. # Pour rajouter  les heures de dŽcalage horaire ,ajouter "time()+3600*(2+date("I")));" +2 heure d'ŽtŽ RŽunion
  21. $nowDay=date("d.m.Y");
  22. $nowClock=date("H:i:s",time()+3600*(1+date("I")));
  23. #
  24. # Formating Body content ######################################################
  25. #
  26. $FormContent="
  27. La informacion de $nowDay à $nowClock:\n\n
  28. ----------------------------------------------------------------------------\n
  29. firstname: $firstname\n
  30. lastname: $lastname\n
  31. MailFrom: $MailFrom\n
  32. Phone: $Phone\n
  33. ----------------------------------------------------------------------------\n
  34. Subject: $Subject\n
  35. ----------------------------------------------------------------------------\n
  36. Body: $Body\n
  37. ----------------------------------------------------------------------------\n
  38.  
  39. ".urlencode(utf8_encode($FormContent));
  40. #
  41. #
  42. mail($MailTo, "$Subject (de $firstname $lastname)", $FormContent, "From: $MailFrom");
  43. #
  44. #
  45. # Autoresponder   #############################################################
  46. #
  47. #
  48.       $filename = "answer.txt";
  49.        $fd = fopen( $filename, "r" );
  50.        $contents = fread( $fd, filesize( $filename ) );
  51.        fclose( $fd );
  52.        mail( "$MailFrom", "Gracias por enviar tu información", "$contents\n\n",
  53.              "From:pizagna@gmail.com\n" );
  54. #
  55. #
  56. # Flashsignal Variable   ######################################################
  57. #
  58. $signal=1;
  59. echo "signal=$signal";
  60. #
  61. ###############################################################################
  62. ?>
RAW Paste Data
Top