mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 22:57:14 +02:00
#268 - Added cURL check to remote themes/plugins download
This commit is contained in:
@@ -456,6 +456,11 @@ class pluginManager{
|
||||
$mes = e107::getMessage();
|
||||
|
||||
// $mes->addWarning("Some older plugins may produce unpredictable results.");
|
||||
// check for cURL
|
||||
if(!function_exists(curl_init))
|
||||
{
|
||||
$mes->addWarning("cURL is currently required to use this feature. Contact your webhosting provider to enable cURL"); // TODO LAN?
|
||||
}
|
||||
|
||||
$from = intval(varset($_GET['frm']));
|
||||
$srch = preg_replace('/[^\w]/','', vartrue($_GET['srch']));
|
||||
|
Reference in New Issue
Block a user