file_get_contents Not allowed in Themes?

Line 49: $data = file_get_contents ( 'http://example.com');

Don’t use file_get_contents to download web page. WordPress has HTTP API for such needs. In your case, I would suggest you to use wp_remote_get( 'http://example.com' ); function instead of file_get_contents.

Further reading:

  1. WordPress HTTP API
  2. wp_remote_get function.