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

Размер файла: 2.85Kb
<?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>');
if($act=="bomber"){print('Bomber by cHIP');}
if($act=="mailer"){print('Mailer by cHIP');}
if($act=="spamer"){print('Spamer by cHIP');}
if($act!="bomber" & $act!="mailer" & $act!="spamer"){print('MailBox');}
print('</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<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>');
if($act=="bomber"){print('Bomber by cHIP');}
if($act=="mailer"){print('Mailer by cHIP');}
if($act=="spamer"){print('Spamer by cHIP');}
if($act!="bomber" & $act!="mailer" & $act!="spamer"){print('MailBox by cHIP');}
print('</b></p></div>');

if($act=="bomber" or $act=="mailer" or $act=="spamer"){

if($act=="bomber"){print('<form method="post" action="bomber.php">');}
if($act=="mailer"){print('<form method="post" action="mailer.php">');}
if($act=="spamer"){print('<form method="post" action="spamer.php">');}

if($act!="spamer"){print('<b>Кому:</b><br>
<input type="text" name="mail" maxlength="32" value="@"><br>');}

print('<b>Тема:</b><font color="white">(max. 50)</font><br>
<input type="text" name="tema" maxlength="50" value="Доброго времени суток!"><br>');

if($act=="mailer"){print('<b>Сообщение:</b><font color="white">(max. 8 000)</font><br>
<input type="text" name="message" maxlength="8000"><br>');

} else {print('<b>Сообщение:</b><font color="white">(max. 2 000)</font><br>
<input type="text" name="message" maxlength="2000"><br>');}

print('<b>Ваш e-mail:</b><br>
<input type="text" name="from" maxlength="32" value="@"><br>');

if($act=="bomber"){print('<b>Количество писем:</b><br>
<input type="text" name="k" value="100"><br>
<input type="submit" value="Бомбить">');}
if($act=="mailer"){print('<input type="submit" value="Отправить">');}
if($act=="spamer"){print('<input type="submit" value="Спамить">');}

print('</form><br><hr><br>');

print('[<a href="index.php">К приложениям</a>]');
} else {print('<p align="center">Выберите приложение:</p>1. <a href="index.php?act=bomber">Bomber by cHIP</a><br>
2. <a href="index.php?act=mailer">Mailer by cHIP</a><br>
3. <a href="index.php?act=spamer">Spamer by cHIP</a>');}

print('<div class="copyright"><p align="center"><a href="http://chiper.wapf.ru"><font color="white">Powered by cHIP</font></a></p></div>
</body>
</html>');

?>