mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-23 01:55:27 +03:00
[index] Add check for 'allow_url_fopen'
This commit is contained in:
parent
04a195361a
commit
d39c1ed63a
1 changed files with 4 additions and 0 deletions
|
@ -64,6 +64,10 @@ if(!extension_loaded('openssl'))
|
|||
if(!extension_loaded('libxml'))
|
||||
die('"libxml" extension not loaded. Please check "php.ini"');
|
||||
|
||||
// configuration checks
|
||||
if(ini_get('allow_url_fopen') !== "1")
|
||||
die('"allow_url_fopen" is not set to "1". Please check "php.ini');
|
||||
|
||||
// FIXME : beta test UA spoofing, please report any blacklisting by PHP-fopen-unfriendly websites
|
||||
ini_set('user_agent', 'Mozilla/5.0(X11; Linux x86_64; rv:30.0)
|
||||
Gecko/20121202 Firefox/30.0(rss-bridge/0.1;
|
||||
|
|
Loading…
Reference in a new issue