SHARE
TWEET

Untitled

a guest May 19th, 2017 176 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($firstname);
  5. $firstname=eregi_replace( "\r", "\n", $firstname);
  6. $firstname=stripcslashes($firstname);
  7. $lastname=utf8_decode($lastname);
  8. $lastname=eregi_replace( "\r", "\n", $lastname);
  9. $lastname=stripcslashes($lastname);
  10. $Subject=utf8_decode($Subject);
  11. $Subject=eregi_replace( "\r", "\n", $Subject);
  12. $Subject=stripcslashes($Subject);
  13. $Body=utf8_decode($Body);
  14. $Body=eregi_replace( "\r", "\n", $Body);
  15. $Body=stripcslashes($Body);
  16.  
  17.  
  18. #
  19. # Formating Date   ############################################################
  20. # ("m.d.Y"); pour passer au format europŽen ("d.m.Y");
  21. # Pour rajouter  les heures de dŽcalage horaire ,ajouter "time()+3600*(2+date("I")));" +2 heure d'ŽtŽ RŽunion
  22. $nowDay=date("d.m.Y");
  23. $nowClock=date("H:i:s",time()+3600*(1+date("I")));
  24. #
  25. # Formating Body content ######################################################
  26. #
  27. $FormContent="
  28. La informacion $nowDay à $nowClock:\n\n
  29. ----------------------------------------------------------------------------\n
  30. Nombre: $firstname\n
  31. Apellido: $lastname\n
  32. E-mail: $MailFrom\n
  33. Anio: $Phone\n
  34. ----------------------------------------------------------------------------\n
  35. Cancion: $Subject\n
  36. ----------------------------------------------------------------------------\n
  37. Disco: $Body\n
  38. ----------------------------------------------------------------------------\n
  39.  
  40. ".urlencode(utf8_encode($FormContent));
  41. #
  42. #
  43. mail($MailTo, "$Subject (de $firstname $lastname)", $FormContent, "From: $MailFrom");
  44. #
  45. #
  46. # Autoresponder   #############################################################
  47. #
  48. #
  49.       $filename = "answer.txt";
  50.        $fd = fopen( $filename, "r" );
  51.        $contents = fread( $fd, filesize( $filename ) );
  52.        fclose( $fd );
  53.        mail( "$MailFrom", "Gracias por enviar tu información", "$contents\n\n",
  54.              "From:pizagna@gmail.com\n" );
  55. #
  56. #
  57. # Flashsignal Variable   ######################################################
  58. #
  59. $signal=1;
  60. echo "signal=$signal";
  61. #
  62. ###############################################################################
  63. ?>
  64.  
  65. ----------------------------------------------
  66.  
  67. cambiar los campos, por ej
  68. $firstname=utf8_decode($firstname);
  69. por
  70. $firstname=utf8_decode($_POST['campofirstnamequevienedeflash']);
  71. o
  72. $firstname=utf8_decode($_GET['campofirstnamequevienedeflash']);
  73.  
  74. (segun como estes conectando el flash)
  75. y así con todas las variables
RAW Paste Data
Top