I have a website and we use teamspeak, everything worked fine until I switched from TS2 to TS3 here is a copy of my php file that controls my website's ability to tell my clients that the server is online or offline. Can anyone take a look at it and help me fix whatever is causing my website to always show that my server is offline even though it is clearly online.
The php file is attached as a .txt file for someone to review and repost, any help would be greatly appreciated.