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.
<?php
// Change these to your online/offline messages //
$online = "<font color=green>Онлайн</font>"; // Displays when stream is online
$offline = "<font color=red>Офлайн</font>"; // Displays when stream is offline
// don't edit below //
$ip = "83.148.64.205";
$port = "8000";
$fp = @fsockopen($ip,$port,$errno,$errstr,1);
if (!$fp)
{
$status = $offline;
}
else
{
fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n");
while (!feof($fp))
{
$info = fgets($fp);
}
$split = explode(',', $info);
if ($split[1] == "0" )
{
$status = $offline;
}
else
{
$status = $online;
}
}
echo $status;
?>
<?
// ОТДОЛУ ПИШЕТЕ ИП ТО и ПОРТА
$open = @fsockopen("94.156.170.132","8000");
if ($open) {
fputs($open,"GET /7.html HTTP/1.1\nUser-Agent:Mozilla\n\n");
$read = fread($open,1000);
$text = explode(",",$read);
$text = $text[6];
} else { $text="Connection Refused!"; }
echo " " .$text;
?>