From: Andrew Dolgov Date: Wed, 13 Jan 2016 15:12:31 +0000 (+0300) Subject: updates: auto-disable CURL if open_basedir is enabled, notify possible issues w/... X-Git-Tag: 16.3~57 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=312742db6efc22a844a5f0a9d95f0282722354dc;p=tt-rss.git updates: auto-disable CURL if open_basedir is enabled, notify possible issues w/ plugins --- diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index b78aa4d6..1988649a 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -709,6 +709,10 @@ class Pref_Prefs extends Handler_Protected { print_notice(__("Download more plugins at tt-rss.org forums or wiki.")); + if (ini_get("open_basedir") && function_exists("curl_init") && !defined("NO_CURL")) { + print_warning("Your PHP configuration has open_basedir restrictions enabled. Some plugins relying on CURL for functionality may not work correctly."); + } + print "
"; print "