';
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 '
Services:
|
|
|
|
|
|
|
';
break;
case('interfaces'):
echo '
|
Interfaces:
|
|
|
|
|
|
|
';
break;
default:
leftDefault();
break;
}
if ($page != 'nagios' && $page != 'discovery') {
require main_content($page);
}
echo '
|