Id() ) { $message[] = array($eid=>'Event not found.'); } else { $event->delete(); } break; } // end switch action } // end foreach ajaxResponse($message); } // end if canEdit('Events') ajaxError('Unrecognised action '.$_REQUEST['action'].' or insufficient permissions for user '.$user['Username']); ?>