Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
Ами няма начин,защото може сървъра да е офлайн обаче нали нета му е онлине и ще показва онлинеicowwe каза:не ако имаше лесно
<html>
<head>
<link rel="stylesheet" href="font.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<body>
<FORM ACTION="index.php" METHOD=POST>
<table align="center">
<tr>
<td><b>IP:</b>
<INPUT TYPE="text" NAME="ip">
<b>:</b>
<INPUT TYPE="text" NAME="port" size='5' maxlength="20"></td>
<td><INPUT TYPE=submit VALUE="Провери"></td>
</tr>
</table>
</FORM>
</body>
</html>
<?php
session_start();
$ip= $HTTP_POST_VARS['ip'];
$port= $HTTP_POST_VARS['port'];
?>
<html>
<head>
<link rel="stylesheet" href="font.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<?
$adres = "$ip";
$port = "$port";
$fp = @fsockopen($adres, $port, $errno, $errstr, 3);
if (!$fp) {
echo "<center><font size=7><b><font color=red>$adres - Offline</font></b>";
}
else {
echo "<center><font size=7><b><font color=green>$adres - OnLine</font></b>";
}
?>
</html>
Body {
font-family: verdana, tahoma, arial, helvetica;
font-weight: normal;
font-size: 11px;
color: #005080;
background-color: #F5F9FC;
scrollbar-face-color: #E8F0F7;
scrollbar-highlight-color: #E8F0F7;
scrollbar-shadow-color: #99BCD7;
scrollbar-3dlight-color: #DCE8F1;
scrollbar-arrow-color: #99BCD7;
scrollbar-track-color: #E0EBF3;
scrollbar-darkshadow-color:#;
}
Table.border {
width: 100%;
color: #005080;
background: #E8F0F7;
border-style: solid;
border: solid 1px;
border-color: #C0D7E7 #74A5C9;
}
Table.fon {
width: 100%;
background: #E0EBF3;
border: 1px solid #99BCD7;
}
Table.b {
width: 100%;
background: #E8F0F7;
border: 1px solid #99BCD7;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
}
Table.c {
width: 100%;
border: 1px solid #D1E1ED;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
}
Td {
font-family: verdana, tahoma, helvetica;
font-size: 11px;
}
Td.a {
background: #D1E1ED;
}
Td.b {
font-family: verdana, tahoma, helvetica;
font-size: 11px;
color: #005080;
}
Td.c {
background: #F0F5F9;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
}
A:link {
background: none;
color: #6699CC;
text-decoration: none;
}
A:active {
background: none;
color: #6699CC;
text-decoration: none;
}
A:visited {
background: none;
color: #6699CC;
text-decoration: none;
}
A:hover {
background: none;
color: #005080;
text-decoration: underline;
}
Textarea {
border-color: #B3CDE1;
color: #2B4157;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
border-width: 1px 1px 1px 1px;
border: 1px solid #94BAD6;
background-color: #EDF3F8;
}
Input {
border-color: #D1E1ED;
color: #2B4157;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
border-width: 1px 1px 1px 1px;
border: 1px solid #94BAD6;
background-color: #EDF3F8;
}
Input.button {
border-color: #94BAD6;
background: #D1E1ED;
font: 10px Verdana, Arial, Helvetica, sans-serif;
border-width: 1px 1px 1px 1px;
}
Това с големите букви вече май не се валидира<html>
<head>
<link rel="stylesheet" href="font.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<body>
<FORM ACTION="index.php" METHOD=POST>
<table align="center">
<tr>
<td><b>IP:</b>
<INPUT TYPE="text" NAME="ip">
<b>Порт:</b>
<INPUT TYPE="password" NAME="port"></td>
<td><INPUT TYPE="submit" VALUE="Провери"></td>
</tr>
</table>
</FORM>
</body>
</html>
пробваи го ще видиш че не е такаlam3r4370 каза:този скрипт на всички ще показва че са Онлайн
<html>
<head>
<link rel="stylesheet" href="font.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<body>
<FORM ACTION="index.php" METHOD=POST>
<table align="center">
<tr>
<td><b>IP:</b>
<INPUT TYPE="text" NAME="ip">
<b>:</b>
<INPUT TYPE="text" NAME="port" size='5' maxlength="20" value="27015"></td>
<td><INPUT TYPE=submit VALUE="Провери"></td>
</tr>
</table>
</FORM>
</body>
</html>
<?php
session_start();
?>
<html>
<head>
<link rel="stylesheet" href="font.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<?php
session_start();
$ip= $HTTP_POST_VARS['ip'];
$port= $HTTP_POST_VARS['port'];
$vt_ip = "$ip"; // Server IP
$vt_port = "$port"; // Port
$output = @fsockopen("udp://$vt_ip", $vt_port, $errno, $errstr, 0.25);
@socket_set_timeout($output, 1);
@socket_set_blocking($output, 1);
@fwrite($output, "\xFF\xFF\xFF\xFF\x54\x53\x6F\x75\x72\x63\x65\x20\x45\x6E\x67\x69\x6E\x65\x20\x51\x75\x65\x72\x79\x00");
$buffer = @fread($output, 4096);
if (!$buffer) {
echo "<center><font size=7><b><font color=red>$vt_ip e офлаин</font></b>";
} else {
echo "<center><font size=7><b><font color=green>$vt_ip e онлаин</font></b>";
}
exit;
?>
</html>
Body {
font-family: verdana, tahoma, arial, helvetica;
font-weight: normal;
font-size: 11px;
color: #005080;
background-color: #F5F9FC;
scrollbar-face-color: #E8F0F7;
scrollbar-highlight-color: #E8F0F7;
scrollbar-shadow-color: #99BCD7;
scrollbar-3dlight-color: #DCE8F1;
scrollbar-arrow-color: #99BCD7;
scrollbar-track-color: #E0EBF3;
scrollbar-darkshadow-color:#;
}
Table.border {
width: 100%;
color: #005080;
background: #E8F0F7;
border-style: solid;
border: solid 1px;
border-color: #C0D7E7 #74A5C9;
}
Table.fon {
width: 100%;
background: #E0EBF3;
border: 1px solid #99BCD7;
}
Table.b {
width: 100%;
background: #E8F0F7;
border: 1px solid #99BCD7;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
}
Table.c {
width: 100%;
border: 1px solid #D1E1ED;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
}
Td {
font-family: verdana, tahoma, helvetica;
font-size: 11px;
}
Td.a {
background: #D1E1ED;
}
Td.b {
font-family: verdana, tahoma, helvetica;
font-size: 11px;
color: #005080;
}
Td.c {
background: #F0F5F9;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
}
A:link {
background: none;
color: #6699CC;
text-decoration: none;
}
A:active {
background: none;
color: #6699CC;
text-decoration: none;
}
A:visited {
background: none;
color: #6699CC;
text-decoration: none;
}
A:hover {
background: none;
color: #005080;
text-decoration: underline;
}
Textarea {
border-color: #B3CDE1;
color: #2B4157;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
border-width: 1px 1px 1px 1px;
border: 1px solid #94BAD6;
background-color: #EDF3F8;
}
Input {
border-color: #D1E1ED;
color: #2B4157;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
border-width: 1px 1px 1px 1px;
border: 1px solid #94BAD6;
background-color: #EDF3F8;
}
Input.button {
border-color: #94BAD6;
background: #D1E1ED;
font: 10px Verdana, Arial, Helvetica, sans-serif;
border-width: 1px 1px 1px 1px;
}
/****** H3 */
ul#menu{
margin:0;
padding:0;
list-style-type:none;
width:auto;
position:relative;
display:block;
height:36px;
text-transform:uppercase;
font-size:12px;
font-weight:bold;
background:transparent url("images/OFF.gif") repeat-x top left;
font-family:Helvetica,Arial,Verdana,sans-serif;
border-bottom:4px solid #555555;
border-top:1px solid #919191;
}
ul#menu li{
display:block;
float:left;
margin:0;
pading:0;}
ul#menu li a{
display:block;
float:left;
color:#8c3a3a;
text-decoration:none;
font-weight:bold;
padding:12px 20px 0 20px;
height:24px;
background:transparent url("images/DIVIDER.gif") no-repeat top right;
}
ul#menu li a:hover{
background:transparent url("images/HOVER.gif") no-repeat top right;
}