Просмотр файла spamer.php

Размер файла: 2.35Kb
<?php

header("Cache-Control: no-cache");
header("Content-type: text/html; charset=utf-8");

print('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Spamer by cHIP</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<style type="text/css">
body {font-weight: normal; font-size: small; color: #000000; font-family: sans-serif; background-color: SILVER;}
div {margin: 0px; padding: 0px 0px 0px 2px;}
a {color: BLUE; text-decoration: none;}
.copyright {color: #FFFFFF; background-color: #B41F24; border: 1px solid #A30D13; padding: 0px;}
.gray {background-color: GRAY;}
</style>
</head>
<body>');

print('<div class="gray"><p align="center"><b>Spamer by cHIP</b></p></div>');

$base=file('base.txt');
if($base){
$count=count($base);
if($tema!=""){
$tema = substr($tema, 0, 50);
$tema = htmlspecialchars(stripslashes($tema));
if($message!=""){
$message = substr($message, 0, 2000);
$message = htmlspecialchars(stripslashes($message));
if($from!=""){
$from = substr($from, 0, 32);
$from = htmlspecialchars(stripslashes($from));
$tema = iconv("UTF-8","KOI8-R",$tema);
$message = iconv("UTF-8","KOI8-R",$message);
$from = iconv("UTF-8","KOI8-R",$from);
for($a=0;$a<=$count;$a++){
@mail("$base[$a]","$tema","$message","From: $from\r\nContent-type: text/plain; charset=KOI8-R\r\n");}
$message = iconv("KOI8-R", "UTF-8", $message);
print('Письмо с текстом <font color="gray"><b>'.$message.'</b></font> было успешно разослано.');

} else {print('Вы не вписали адрес отправителя. Нужно написать адрес вида: <b>[email protected]</b>, или адрес своего сайта.');}

} else {print('Вы не написали сообщение.');}

} else {print('Вы не написали тему.');}

} else {print('<font color="red"><b>Файл с базой e-mail адресов не найден!</b></font> В папке скрипта должен находится файл с базой e-mail адресов. Файл должен иметь следующий вид: <b>base.txt</b>');}

print('<br>
[<a href="index.php?act=spamer">Спамить еще</a>]
<br>
[<a href="index.php">К приложениям</a>]<div class="copyright"><p align="center"><a href="http://chiper.wapf.ru"><font color="white">Powered by cHIP</font></a></p></div>
</body>
</html>');

?>