I have a fairly complex script that I wrote that works on my server, that has magic_quotes set to on. I didn't bother doing all the addslashes/stripslashes stuff, since hey, magic_quotes is on for my server, so why bother. Well, now I have a friend who wants to use the script, but magic_quotes is set to off. I don't want to rewrite the whole darn thing. I've spent a ton of time looking through these forums, trying to find a solution, but no luck.
I have a header file that is called by every function in this script. Is there a way to make it addslashes to every variable that comes through $_POST?