mirror of
https://github.com/tips-of-mine/GLPI-Plugin-SOC-Case-Management.git
synced 2025-06-28 05:38:42 +02:00
Correction pour rendre le plugin visible dans GLPI
This commit is contained in:
22
front/config.form.php
Normal file
22
front/config.form.php
Normal 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();
|
Reference in New Issue
Block a user