View file pages/server.php

File size: 701B
<?php
include '../system/func.php';
$title="Cостояния FTP сервера";
include '../system/head.php';
title($title);
$ftp_server = "yftp.ru"; //Cостояния ФТП-сервера 
$port = "21"; //ПОРТ, СТАНДАРТНЫЙ 21 
$timeout = "1"; //ТАЙМАУТ СОЕДИНЕНИЯ 
$conn_id = ftp_connect($ftp_server, $port, $timeout);
echo '<div class="menu"><img src="/design/img/v.png" alt=""/><div class="st_1"></div><div class="st_2">';
if (!$conn_id) { 
echo "&bull; OFFLINE"; 
} else { 
echo "&bull; ONLINE"; 
} 
ftp_close($conn_id); 
echo '</div></div><div class="menu">&laquo; <a href="index.php">Назад</a></div>';
include '../system/foot.php';
?>