removed set_magic_quotes_runtime dependancy