sendAlertEmail($appname); if ($result === TRUE) { sendJsonResp(); } sendJsonResp($result, "ERROR");