Activate FOG Plugins
-
Hi
How can i enable certain plugin by default. For example i want to enable access control plugin. Once i finish install, the plugin will be enabled without going to the setting module to do the installation?
or
Current FOG Version1.5.9 can we trigger API to enable a plugin? such as enabling accesscontrol plugin by triggering API
Thank You
WT -
@WT_101 Similar post some days ago: https://forums.fogproject.org/topic/16082/install-plugins-programatically
I guess it’s possible via SQL update commands send via shell scripting or something like that. Give it a try and let us know here.
-
I create a “activatepulginrun.php” and place under “fogproject\packages\web\management”
the file can be call by the url “http://fogip/fog/management/activatepulginrun.php?plugin=accesscontrol” with the plugin name passing in
First the code need to include below 2 line
require ‘…/commons/base.inc.php’;
$FOGCore = $GLOBALS[‘FOGCore’];then i include both
-
activate plugin code
copy from “activate()” at “fogproject\packages\web\lib\pages\pluginmanagementpage.class.php” -
install plugin code
copy from “installedPost()” at “fogproject\packages\web\lib\pages\pluginmanagementpage.class.php”
-