Показать сообщение отдельно

  #7  
Старый 01.05.2007, 04:43
Petr
Banned
Регистрация: 10.06.2006
Сообщений: 938
Провел на форуме:
7792614

Репутация: 1223


По умолчанию

Помогите и мне пожалуйсто!
Вот есть скрипт, к нему надо прикрутит прокси, чтобы он из указаного тхт их юзал


Код:
<?php 
$testa = $_POST['veio']; 
if($testa != "") { 
                $message = $_POST['html']; 
                $subject = $_POST['assunto']; 
                $de = $_POST['de']; 
                $to = $_POST['emails']; 
                // ler o conte do do arquivo para uma string 

                //$handle = fopen ($emails, "r"); 
                //$to = fread ($handle, filesize ($emails)); 
                //fclose ($handle); 

                //$handle2 = fopen ($html, "r"); 
                //$message = fread ($handle2, filesize ($html)); 
                //fclose ($handle2); 

                $message = str_replace("'","\"",$message); 
                $message = stripslashes($message); 

                $headers  = "MIME-Version: 1.0\r\n"; 
                $headers .= "Content-type: text/html; charset=Windows-1251\r\n"; 

                $email = explode("\n", $to); 

                $headers .= "From: <".$de.">\r\n"; 

                $i = 0; 
                $count = 1; 
                while($email[$i]) { 

                $ok = "ok"; 


                if(mail($email[$i], $subject, $message, $headers)) 
                    echo "* N mero: $count <b>".$email[$i]."</b> <font color=green> Jб foi mais um...</font><br><hr>"; 
                else 
                    echo "* N mero: $count <b>".$email[$i]."</b> <font color=red>ERRO AO ENVIAR</font><br><hr>"; 

                $i++; 
                $count++; 
                } 
$count--; 
if($ok == "ok") 
    echo "<script> alert('Lista de emails Finalizada.  ".$count." e-mails enviados'); </script>"; 



} 
?> 
<html> 
<head> 
<title>Spamed</title> 
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1251"> 
<style> 
.normal { 
    font-family: Arial, Helvetica, sans-serif; 
    font-size: 13px; 
    color: #000000; 
} 
.form { 
    font-family: Arial, Helvetica, sans-serif; 
    font-size: 10px; 
    color: #000000; 
    background-color: #FFFFFF; 
    border: 1px dashed #FFFFFF; 
} 

.style1 { 
    font-family: Arial, Arial, Helvetica, sans-serif; 
    font-weight: bold; 
} 


.style2 ( 
    font-family: Arial, Arial, Helvetica, sans-serif; 
    border: bold; 

) 

</style> 
</head> 
<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0"> 
<form action="spam.php" method="post" enctype="multipart/form-data" name="form1"> 
<input type="hidden" name="veio" value="sim"> 
<table width="464" height="489" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000" class="normal"> 
<tr> 
<td width="1" height="16" colspan="0" bgcolor="#999999">&nbsp;</td> 
</tr> 
<tr> 
<td height="194" valign="top" bgcolor="#999999"><table width="89%"  border="0" cellpadding="0" cellspacing="5" class="normal"> 
<tr> 
<td align="right"><span class="style1">De:</span></td> 
<td width="88%"><input name="de" type="text" value="support@microsoft.com" class="form" id="de" size="84"></td> 
</tr> 
<tr> 
<td align="right"><span class="style1">Assunto:</span></td> 
<td><input name="assunto" type="text" value="Critical Error" class="form" id="assunto" size="84"></td> 
</tr> 
<tr align="center" bgcolor="#FFFFFF"> 
<td  height="25" colspan="2"><span class="style1"> C&oacute;digo HTML:</span></td> 
</tr> 
<tr align="right"> 
<td height="151" colspan="2" valign="top">        <br>        <font color="#B0B0B0" size="1"> 
        <textarea name="html" cols="105" rows="8" wrap="VIRTUAL" class="form" id="html">engenharia.html</textarea> 
        <span class="from">*Engenharia em HTML</span></font></td> 
</tr> 
<tr align="center" bgcolor="#FFFFFF"> 
<td height="40" colspan="2"><span class="style1">Lista de E-mails: </span></td> 
</tr> 
<tr align="right"> 
<td height="51" colspan="2" valign="top"><br> 
<textarea name="emails" cols="105" rows="8" wrap="VIRTUAL" class="form" id="emails">infonews@bsdmail.com 
emocore.style@gmail.com</textarea> 

<span class="style1"><font color="#B0B0B0" size="1">*Separado por quebra de linha</font></span> </td> 
</tr> 
<tr> 
  <td height="22" colspan="2" align="center" valign="top"><input type="submit" name="Submit" value="Spam!"></td> 
  </tr> 
</table></td> 
</tr> 
<tr> 
<td height="15" align="center" bgcolor="#999999">&nbsp;</td> 
</tr> 
</table> 
</form> 
</body> 
</html>
 
Ответить с цитированием