A man with these lesions and discharge. What would be the diagnosis for this?

Image source: dermnetz