product)).' has been gracefully restarted.','success'); $product->refreshVersion(); } if (!empty($service->messages)) { foreach ($service->messages as $msg) { echo GUIBase::message('', $msg[1], $msg[0]); } } $product_info = ucwords(strtolower($product->product)); if ($product->type == 'LSWS') { $product_info .= ' - ' . ucwords(strtolower($product->edition)) . ' Edition'; } $product_info .= ' - Version ' . ucwords(strtolower($product->version)) . ''; $debug = ''; if ($service->debugOn === true) { $debug = '(Currently is ON)'; } elseif ($service->debugOn === false) { $debug = '(Currently is OFF)'; } else { $debug = '(Currently is Unknown)'; } ?>
Listeners | ||||||
Status | Name | Address | Virtual Host Mappings | |||
'."\n"; if(strtoupper($l['status']) == 'RUNNING') { echo ' | '; } else { echo ' | '; echo ' | '.$name . ' | '. $l['addr'].' | '; echo '';
if ( isset( $l['map'] ) )
{
echo '
|
Virtual Hosts | |||||
Status | Name | Actions | |||
'; $canStart = 0; $canStop = 1; $canRestart = 1; if ($value[1] == 'A') { //in config, not in status $canStop = 0; $canStart = 0; $canRestart = 0; echo ' | Restart Required'; } else if ( $value[0] == 1 ) { // active, default case echo ' | Running'; } else { $canStart = 1; $canStop = 0; $canRestart = 0; echo ' | Stopped'; } echo ' | '; echo '' . $vh . ' | '; echo ''; if ( $canStart ) { echo ''; } if ( $canStop ) { echo ' '; } if ( $canRestart ) { echo ''; } if ( isset( $service->awstats[$vh] ) ) echo 'Statistics'; echo " |