diff --git a/workflow/engine/controllers/installer.php b/workflow/engine/controllers/installer.php index 814a5233a..a6090604b 100755 --- a/workflow/engine/controllers/installer.php +++ b/workflow/engine/controllers/installer.php @@ -1490,6 +1490,28 @@ class Installer extends Controller $output = curl_exec($ch); curl_close($ch); } + + $plugins = array('advancedDashboards'); + foreach ($plugins as $value) { + $ch = curl_init(); + $postData = array(); + $postData['action'] = "enable"; + $postData['addon'] = $value; + + 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); + } } }