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