40,7 → 40,7 |
|
# --- |
|
require_once __DIR__ . '/includes/functions.inc.php'; |
require_once __DIR__ . '/includes/oidplus.inc.php'; |
|
error_reporting(0); |
|
65,6 → 65,11 |
$url = 'https://polyfill.io/v3/polyfill.js?features='.urlencode(implode(',',REQUIRED_POLYFILLS)); |
} |
|
if (!url_get_contents_available(true, $reason)) { |
$out = '/* ERROR: Cannot connect to the Internet. '.$reason.' */'; |
httpOutWithETag($out, 'application/javascript', 'polyfill'.(MINIFY_POLYFILL ? '.min' : '').'.js'); |
} |
|
$cont = url_get_contents($url, [], $ua); |
|
if ($cont === false) { |