Hayward Heater

When I turned on My filter the water was pouring from the heater. Opened it up and the water is coming from holes in 3 of the four pipes. What do I need to do to repair it? I’m attaching a picture I hope I did it correctly!! Thanks