Correction pour rendre le plugin visible dans GLPI

This commit is contained in:
tips-of-mine
2025-05-31 11:23:24 +02:00
committed by GitHub
parent 3b1d93e916
commit 5aa9cfb33e
4 changed files with 183 additions and 0 deletions

22
front/config.form.php Normal file
View File

@ -0,0 +1,22 @@
<?php
include ("../../../inc/includes.php");
Session::checkRight("config", UPDATE);
// Check if plugin is activated
if (!Plugin::isPluginActive("soc")) {
Html::displayNotFoundError();
}
Html::header(__('SOC Case Management Configuration', 'soc'), '', "config", "plugins");
$config = new PluginSocConfig();
if (isset($_POST["update"])) {
Session::checkRight("config", UPDATE);
$config->update($_POST);
Html::back();
} else {
$config->showConfigForm();
}
Html::footer();