Correction de la structure du plugin GLPI

This commit is contained in:
tips-of-mine
2025-05-31 11:31:43 +02:00
committed by GitHub
parent fd697b44cc
commit 9b49bc8dff
4 changed files with 37 additions and 81 deletions

20
front/status.php Normal file
View File

@ -0,0 +1,20 @@
<?php
include ("../../../inc/includes.php");
// This is a simple status page to indicate the plugin is installed
// GLPI sometimes looks for this file
// Check if plugin is activated
if (!Plugin::isPluginActive("soc")) {
Html::displayNotFoundError();
}
Html::header(__('SOC Case Management Status', 'soc'), '', "management", "pluginsoccase");
echo "<div class='center'>";
echo "<h3>" . __('SOC Case Management Plugin Status', 'soc') . "</h3>";
echo "<p>" . __('Plugin is installed and active.', 'soc') . "</p>";
echo "<a href='dashboard.php' class='vsubmit'>" . __('Go to SOC Dashboard', 'soc') . "</a>";
echo "</div>";
Html::footer();