if ( get_magic_quotes_gpc() ) ,改为 if ( function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc() ) 。