1
0
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:
Moc
2013-05-14 22:42:06 +02:00
parent 2d2f53ae84
commit e68cc32a70
3 changed files with 14 additions and 3 deletions

View File

@@ -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']));