Removing deprecated references and files
This commit is contained in:
@@ -1171,7 +1171,6 @@ class InstallerModule extends Controller
|
||||
* Upload translation .po file
|
||||
* Upload skin file
|
||||
* Upload plugin file
|
||||
* Active plugins to enterprise
|
||||
*
|
||||
* @param string $username
|
||||
* @param string $password
|
||||
@@ -1308,64 +1307,6 @@ class InstallerModule extends Controller
|
||||
$output = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
}
|
||||
|
||||
/**
|
||||
* Active plugins to enterprise
|
||||
*/
|
||||
|
||||
if (!defined("PATH_PM_ENTERPRISE")) {
|
||||
define("PATH_PM_ENTERPRISE", PATH_CORE . "/plugins/enterprise/");
|
||||
}
|
||||
set_include_path(PATH_PM_ENTERPRISE . PATH_SEPARATOR . get_include_path());
|
||||
require_once('classes/model/AddonsManager.php');
|
||||
|
||||
$plugins = glob(PATH_CORE . "plugins/*.php");
|
||||
foreach ($plugins as $value) {
|
||||
$dataPlugin = pathinfo($value);
|
||||
$namePlugin = $dataPlugin['filename'];
|
||||
if ($value !== 'enterprise') {
|
||||
$db_hostname = trim($_REQUEST['db_hostname']);
|
||||
$db_hostname = $filter->validateInput($db_hostname);
|
||||
$db_port = trim($_REQUEST['db_port']);
|
||||
$db_port = $filter->validateInput($db_port);
|
||||
$db_username = trim($_REQUEST['db_username']);
|
||||
$db_username = $filter->validateInput($db_username);
|
||||
$db_password = urlencode(trim($_REQUEST['db_password']));
|
||||
$db_password = urldecode($filter->validateInput($db_password));
|
||||
$wf = trim($_REQUEST['wfDatabase']);
|
||||
$wf = $filter->validateInput($wf);
|
||||
|
||||
$db_host = ($db_port != '' && $db_port != 3306) ? $db_hostname . ':' . $db_port : $db_hostname;
|
||||
|
||||
$row = DB::connection(self::CONNECTION_INSTALL)
|
||||
->table('ADDONS_MANAGER')
|
||||
->select('STORE_ID')
|
||||
->where('ADDON_NAME', $namePlugin)
|
||||
->toArray();
|
||||
|
||||
if ($row) {
|
||||
$ch = curl_init();
|
||||
$postData = [];
|
||||
$postData['action'] = "enable";
|
||||
$postData['addon'] = $namePlugin;
|
||||
$postData['store'] = $row['STORE_ID'];
|
||||
|
||||
curl_setopt($ch, CURLOPT_URL, "$serv/sys{$workspace}/{$lang}/{$skinName}/enterprise/addonsStoreAction");
|
||||
curl_setopt($ch, CURLOPT_HEADER, 0);
|
||||
curl_setopt($ch, CURLOPT_VERBOSE, 0);
|
||||
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);
|
||||
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiefile);
|
||||
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
|
||||
curl_setopt($ch, CURLOPT_POST, true);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
|
||||
curl_setopt($ch, CURLOPT_TIMEOUT, 90);
|
||||
|
||||
$output = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user