~jstys-z/helioviewer.org/webApp

« back to all changes in this revision

Viewing changes to api/src/Net/Proxy.php

  • Committer: Jeff Stys
  • Date: 2014-03-28 18:29:38 UTC
  • Revision ID: jstys@sesda3.com-20140328182938-lg2sht8hurwy9y7h
Added Data Coverage browser at http://helioviewer.org/coverage/

Requires a new database table:

CREATE TABLE `data_coverage_5_min` (
  `date` datetime NOT NULL,
  `sourceId` int(10) unsigned NOT NULL,
  `count` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`date`,`sourceId`),
  KEY `index1` (`date`),
  KEY `index2` (`sourceId`),
  KEY `index3` (`sourceId`,`date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
            return $results;
69
69
        }
70
70
        else {
71
 
            return file_get_contents($url);
 
71
            return @file_get_contents($url);
72
72
        }
73
73
    }
74
74
 
97
97
            return $results;
98
98
        }
99
99
        else {
100
 
            return file_get_contents($url);
 
100
            return @file_get_contents($url);
101
101
        }
102
102
    }
103
103
}