You will have to remove the toilet to see what was used. Go to hardware store & buy the flange or cap & seal it off.. Don't know what may be tied to this . So , you may have something else back up. I would say cap it off & check everything else to make sure other fixtures flush/drain ok