diff options
author | Andrew Dolgov <[email protected]> | 2016-01-13 18:12:31 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2016-01-13 18:12:31 +0300 |
commit | 312742db6efc22a844a5f0a9d95f0282722354dc (patch) | |
tree | 7dd2a3400daafb69491c1fe61f1f24cbda1f9c39 /classes | |
parent | 393fc7d6b5e634c9618dac415252eaf40939cf31 (diff) |
updates: auto-disable CURL if open_basedir is enabled, notify possible issues w/ plugins
Diffstat (limited to 'classes')
-rw-r--r-- | classes/pref/prefs.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index b78aa4d62..1988649a5 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 <a class=\"visibleLink\" target=\"_blank\" href=\"http://tt-rss.org/forum/viewforum.php?f=22\">forums</a> or <a target=\"_blank\" class=\"visibleLink\" href=\"http://tt-rss.org/wiki/Plugins\">wiki</a>.")); + 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 "<form dojoType=\"dijit.form.Form\" id=\"changePluginsForm\">"; print "<script type=\"dojo/method\" event=\"onSubmit\" args=\"evt\"> |