ich habe letztens meine Homepage installiert, doch nun wenn ich auf der Homepage gehe ladet sie den Serverstatus sehr langsam und es wird "Offline" angezeigt. Außer bei MySQL da ist sie Online.
Hier das Script:
PHP Code:
<font color="#3399FF">
<center>
<?php
$serverip = "*ROOTIP";
$ip = gethostbyname($serverip);
$portlist=array(3306, 11002, 13001, 13002, 13003, 13004);
$status=array("Mysql Server:", "Login Server:", "Channel1:", "Channel2:","Channel3","Channel4");
$i=0;
foreach ($portlist as $port){
echo "".$status[$i]."";
$online = @fsockopen($ip, $port, $errno, $errstr, 1);
if (!$online)
{
echo "<font class=off> Offline</font>
<div class=sb-tren></div>";
}
else
{
echo "<font color=#669e33> Online</font>
<div class=sb-tren></div>";
}
@fclose($online);
$i++;
}
?>
</center></font>
PHP Code:
# open port ftp (20,21), ssh (22), mail (25)
# http (80), dns (53) etc
$IPF 130 allow tcp from any to any 22 in
$IPF 140 allow tcp from any to any 22 out
$IPF 150 allow tcp from any to any 3306 in
$IPF 160 allow tcp from any to any 3306 out
$IPF 170 allow tcp from any to any 13001 in
$IPF 180 allow tcp from any to any 13001 out
$IPF 190 allow tcp from any to any 13002 in
$IPF 200 allow tcp from any to any 13002 out
$IPF 330 allow tcp from any to any 13003 in
$IPF 340 allow tcp from any to any 13003 out
$IPF 210 allow tcp from any to any 13004 in
$IPF 220 allow tcp from any to any 13004 out
$IPF 230 allow tcp from any to any 13099 in
$IPF 240 allow tcp from any to any 13099 out
$IPF 250 allow tcp from any to any 80 in
$IPF 260 allow tcp from any to any 80 out
$IPF 270 allow tcp from any to any 11002 in
$IPF 280 allow tcp from any to any 11002 out
$IPF 290 allow tcp from any to any 13000 in
$IPF 300 allow tcp from any to any 13000 out
$IPF 310 allow udp from any to any 11002 in
$IPF 320 allow udp from any to any 11002 out
#udp reqest
$IPF 450 allow udp from any to any 13001 in
$IPF 460 allow udp from any to any 13001 out
$IPF 470 allow udp from any to any 13002 in
$IPF 480 allow udp from any to any 13002 out
$IPF 490 allow udp from any to any 13003 in
$IPF 500 allow udp from any to any 13003 out
$IPF 510 allow udp from any to any 13004 in
$IPF 520 allow udp from any to any 13004 out
$IPF 530 allow udp from any to any 9987 in
$IPF 540 allow udp from any to any 9987 out
$IPF 550 allow udp from any to any 11002 in
$IPF 560 allow udp from any to any 11002 out
$IPF 570 allow udp from any to any 13099 in
$IPF 580 allow udp from any to any 13099 out






