Hosts Services Interfaces  
'; switch($page) { case('nagios'): //external command leftDefault(); formSuccess('Nagios configuration successfully updated.'); break; case('discovery'): leftDefault(); if (/*!copy('c:/temp/x.txt', 'c:/temp/y.txt')*/ false) { formError("Failed to start discovery service..."); } else { formSuccess('Discovery service started.'); } break; case('services'): echo '
'; break; case('interfaces'): echo '
'; break; default: leftDefault(); break; } if ($page != 'nagios' && $page != 'discovery') { require main_content($page); } echo '
 
'; function leftDefault() { echo '

Hosts:


  '; } function main_content($page) { switch($page) { case('services'): $main = "code/services.php"; break; case('interfaces'): $main = "code/interfaces.php"; break; case('nagios'): $main= ' '; break; case('discovery'): $main = ' '; break; default: $main = "code/hosts.php"; break; } return $main; } ?>