$monitor->sendControlCommandWithResponse($ctrlCommand))); return; } if ( $monitor->sendControlCommand($ctrlCommand) ) { ajaxResponse('Success'); } else { ajaxError('Failed'); } } ajaxError('Unrecognised action or insufficient permissions'); ?>