-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathmodelcontainerfield.form.php
More file actions
58 lines (50 loc) · 1.87 KB
/
modelcontainerfield.form.php
File metadata and controls
58 lines (50 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
* -------------------------------------------------------------------------
* Uninstall plugin for GLPI
* -------------------------------------------------------------------------
*
* LICENSE
*
* This file is part of Uninstall.
*
* Uninstall is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Uninstall is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Uninstall. If not, see <http://www.gnu.org/licenses/>.
* -------------------------------------------------------------------------
* @copyright Copyright (C) 2015-2023 by Teclib'.
* @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html
* @link https://github.com/pluginsGLPI/uninstall
* -------------------------------------------------------------------------
*/
include('../../../inc/includes.php');
Session::checkRightsOr('uninstall:profile', [READ, PluginUninstallProfile::RIGHT_REPLACE]);
$field = new PluginUninstallModelcontainerfield();
if (isset($_POST["update"])) {
// TODO handling of mandatory when action = SET_VALUE
$field->check($_POST['id'], UPDATE);
$field->update($_POST);
Html::back();
} else {
Html::header(
PluginUninstallModelcontainerfield::getTypeName(),
$_SERVER['PHP_SELF'],
"admin",
"PluginUninstallModel",
"model"
);
if (isset($_GET["id"])) {
PluginUninstallModelcontainerfield::displayFullPageForItem($_GET['id']);
} else {
}
Html::footer();
}