. -------------------------------------------------------------------------- */ function processmaker_install() { global $DB; // installation from scratch $DB->runFile(PLUGIN_PROCESSMAKER_ROOT . "/install/mysql/processmaker-empty.sql"); $config = Config::getConfigurationValues('plugin:processmaker'); $config += [ 'pm_server_URL' => 'http://localhost/', 'pm_workspace' => 'workflow', 'pm_admin_user' => 'NULL', 'pm_admin_passwd' => 'NULL', 'pm_theme' => 'glpi_classic', 'date_mod' => $_SESSION["glpi_currenttime"], 'taskcategories_id' => 'NULL', 'users_id' => 'NULL', 'pm_group_guid' => 'NULL', 'pm_dbserver_name' => 'NULL', 'pm_dbname' => 'wf_workflow', 'pm_dbserver_user' => 'NULL', 'pm_dbserver_passwd' => 'NULL', 'maintenance' => 0, 'ssl_verify' => 0, 'db_version' => '4.6.0', 'max_cases_per_item' => 0, 'is_reassignreason_mandatory' => 0 ]; Config::setConfigurationValues('plugin:processmaker', $config); }