fix undefined function for PHP6

Fatal error: Call to undefined function get_magic_quotes_gpc()