"0") { $serverStatus = ""; } # Process all services1 montiored. foreach( $configs['services1'] as $serviceName => $servicePort ) { # Determine Port Status. $status = @fsockopen($configs['server_ip'], $servicePort, $errno, $errstr, 5); # What is the result. if( !$status ) { $statusText = "Down"; } else { $statusText = "Up"; } # Set the status Row. $serverStatus .= ""; } # Process all services1 montiored. foreach( $configs['services2'] as $serviceName => $servicePort ) { # Determine Port Status. $status = @fsockopen($configs['server_ip2'], $servicePort, $errno, $errstr, 5); # What is the result. if( !$status ) { $statusText = "Down"; } else { $statusText = "Up"; } # Set the status Row. $serverStatus .= ""; } # Process all services1 montiored. foreach( $configs['services3'] as $serviceName => $servicePort ) { # Determine Port Status. $status = @fsockopen($configs['http://k-loud.tk'], 80, $errno, $errstr, 5); # What is the result. if( !$status ) { $statusText = "Down"; } else { $statusText = "Up"; } # Set the status Row. $serverStatus .= ""; } # Process all services1 montiored. foreach( $configs['services4'] as $serviceName => $servicePort ) { # Determine Port Status. $status = @fsockopen($configs['server_ip4'], $servicePort, $errno, $errstr, 5); # What is the result. if( !$status ) { $statusText = "Down"; } else { $statusText = "Up"; } # Set the status Row. $serverStatus .= ""; } # Process all services1 montiored. foreach( $configs['services5'] as $serviceName => $servicePort ) { # Determine Port Status. $status = @fsockopen($configs['server_ip5'], $servicePort, $errno, $errstr, 5); # What is the result. if( !$status ) { $statusText = "Down"; } else { $statusText = "Up"; } # Set the status Row. $serverStatus .= ""; } # Process all services1 montiored. foreach( $configs['services6'] as $serviceName => $servicePort ) { # Determine Port Status. $status = @fsockopen($configs['server_ip6'], $servicePort, $errno, $errstr, 5); # What is the result. if( !$status ) { $statusText = "Down"; } else { $statusText = "Up"; } # Set the status Row. $serverStatus .= ""; } # Finish service status table. $serverStatus .= "
K-World Status
{$serviceName}{$statusText}
{$serviceName}{$statusText}
{$serviceName}{$statusText}
{$serviceName}{$statusText}
{$serviceName}{$statusText}
{$serviceName}{$statusText}
"; # File Complete. ?>