<html>
<head>
<title>::CHECKER::</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<body bgcolor="#000000" text="#ffffff">
<hr width="30%"></hr><center><table border="1pt"><tr><td bgcolor="#90EE90"><center><font color="black"><b>| Введите имя сервера |</b></font></center></td></tr>
<tr><td><form action="<? $PHP_SELF ?>" method="post">
<b>NAME:</b> <input type="text" name="domain"></td></tr><tr><td><input type="submit" value="Проверить">
<button onclick=location.reload(true)>Обновить</button></td></tr></table>
<hr width="30%"></hr>
<?php
$domain=$_POST['domain'];
$httpport = "80";
$ftpport = "21";
$popport = "110";
$imapport = "143";
$smtpport = "25";
$sshport = "22";
echo "<b>"; echo("IP адрес хоста: "); echo "</b>";
echo "<font color=\"red\">"; echo($ip); echo "</font>"
?>
<table border="1pt"><tr><td bgcolor="#90EE90"><center><font color="black"><b>| Результаты проверки |</b></font></center></td></tr>
<tr><td><font color="#999999"><b>HTTP --> </b></font>
<?php
$http = fsockopen($domain, $httpport, $errno, $errstr, $timeout); if (!$http)
{
echo ("<font color=\"red\"><b>\"DEACTIVATED\"</b></font>");
}
else
{
echo ("<font color=\"green\"><b>\"ACTIVATED\"</b></font>");
}
?></td></tr>
<tr><td><font color="#999999"><b>FTP --> </b></font>
<?php
$ftp = fsockopen($domain, $ftpport, $errno, $errstr, $timeout); if (!$ftp)
{
echo ("<font color=\"red\"><b>\"DEACTIVATED\"</b></font>");
}
else
{
echo ("<font color=\"green\"><b>\"ACTIVATED\"</b></font>");
}
?></td></tr>
<tr><td><font color="#999999"><b>POP --> </b></font>
<?php
$pop = fsockopen($domain, $popport, $errno, $errstr, $timeout); if (!$pop)
{
echo ("<font color=\"red\"><b>\"DEACTIVATED\"</b></font>");
}
else
{
echo ("<font color=\"green\"><b>\"ACTIVATED\"</b></font>");
}
?>
</td></tr>
<tr><td><font color="#999999"><b>IMAP --> </b></font>
<?php
$imap = fsockopen($domain, $imapport, $errno, $errstr, $timeout); if (!$imap)
{
echo ("<font color=\"red\"><b>\"DEACTIVATED\"</b></font>");
}
else
{
echo ("<font color=\"green\"><b>\"ACTIVATED\"</b></font>");
}
?>
</td></tr>
<tr><td><font color="#999999"><b>SMTP --> </b></font>
<?php
$smtp = fsockopen($domain, $smtpport, $errno, $errstr, $timeout); if (!$smtp)
{
echo ("<font color=\"red\"><b>\"DEACTIVATED\"</b></font>");
}
else
{
echo ("<font color=\"green\"><b>\"ACTIVATED\"</b></font>");
}
?>
</td></tr>
<tr><td><b><font color="#999999">SSH --> </font></b>
<?php
$ssh = fsockopen($domain, $sshport, $errno, $errstr, $timeout); if (!$ssh)
{
echo ("<font color=\"red\"><b>\"DEACTIVATED\"</b></font>");
}
else
{
echo ("<font color=\"green\"><b>\"ACTIVATED\"</b></font>");
}
?>
</td></tr></table><hr width="30%"></hr></center>
</body>
</head>
</html>