grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026.
--------------------------------------------------------------------------
*/
/** @file
* @brief
*/
include ('../inc/includes.php');
Session::checkRight("config", UPDATE);
/**
* Obsolete function provided to detect compatibility issue
*
* @since version 0.84
**/
function handleObsoleteCall($func) {
$name = NOT_AVAILABLE;
foreach (debug_backtrace() as $row) {
if (isset($row['function'])
&& ($row['function'] == $func)
&& isset($row['file'])
&& preg_match(':(/|\\\\)plugins(/|\\\\)(.*)(/|\\\\):', $row['file'], $reg)) {
$name = $reg[3];
break;
}
}
echo "";
Html::displayErrorAndDie(sprintf(__('The plugin %s is incompatible with this version of GLPI'),
$name).
"
".__('Delete or update it otherwise GLPI will not work correctly.'));
}
/**
* Obsolete function keep only for compatibility old versions
*
* @param $name
**/
function registerPluginType($name) {
handleObsoleteCall('registerPluginType');
}
/**
* Obsolete function keep only for compatibility old versions
**/
function getLoginUserID() {
handleObsoleteCall('getLoginUserID');
}
/**
* Obsolete function keep only for compatibility old versions
**/
function haveRight() {
handleObsoleteCall('haveRight');
}
$plugin = new Plugin();
Html::header(__('Setup'), $_SERVER['PHP_SELF'], "config", "plugin");
$plugin->listPlugins();
Html::footer();
?>