This commit is contained in:
mariano
2026-05-20 09:20:27 +02:00
commit 1dc84aa5eb
199 changed files with 8444 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php
use GlpiPlugin\Urbackup\Config;
use Html;
global $CFG_GLPI;
// Check user has right to manage plugin configuration
if (!Session::haveRight('config', UPDATE)) {
Html::displayRightError();
}
// Handle form submission
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['update'])) {
Config::saveConfiguration($_POST);
Html::redirect($_SERVER['REQUEST_URI']);
}
// Display GLPI header
Html::header(
__('UrBackup configuration', 'urbackup'),
'',
'Config',
'PluginUrbackupConfig'
);
// Show configuration form
$config = new Config();
$config->showForm(1);
// Display GLPI footer
Html::footer();