Fix: front/ check

This commit is contained in:
Rom1-B 2025-05-05 14:34:29 +02:00
parent 1be089786f
commit 8906da5c5d
8 changed files with 8 additions and 0 deletions

View File

@ -36,6 +36,7 @@
use GlpiPlugin\Example\DeviceCamera; use GlpiPlugin\Example\DeviceCamera;
include ('../../../inc/includes.php'); include ('../../../inc/includes.php');
Session::checkLoginUser();
$dropdown = new DeviceCamera(); $dropdown = new DeviceCamera();
include (GLPI_ROOT . "/front/dropdown.common.form.php"); include (GLPI_ROOT . "/front/dropdown.common.form.php");

View File

@ -34,6 +34,7 @@
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
include ('../../../inc/includes.php'); include ('../../../inc/includes.php');
Session::checkLoginUser();
$dropdown = new DeviceCamera(); $dropdown = new DeviceCamera();
include (GLPI_ROOT . "/front/dropdown.common.php"); include (GLPI_ROOT . "/front/dropdown.common.php");

View File

@ -36,6 +36,7 @@
use GlpiPlugin\Example\Dropdown; use GlpiPlugin\Example\Dropdown;
include ('../../../inc/includes.php'); include ('../../../inc/includes.php');
Session::checkLoginUser();
Plugin::load('example', true); Plugin::load('example', true);

View File

@ -36,6 +36,7 @@
use GlpiPlugin\Example\Dropdown; use GlpiPlugin\Example\Dropdown;
include ('../../../inc/includes.php'); include ('../../../inc/includes.php');
Session::checkLoginUser();
Plugin::load('example', true); Plugin::load('example', true);

View File

@ -36,6 +36,7 @@
use GlpiPlugin\Example\Example; use GlpiPlugin\Example\Example;
include ('../../../inc/includes.php'); include ('../../../inc/includes.php');
Session::checkLoginUser();
if ($_SESSION["glpiactiveprofile"]["interface"] == "central") { if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
Html::header("TITRE", $_SERVER['PHP_SELF'], "plugins", Example::class, ""); Html::header("TITRE", $_SERVER['PHP_SELF'], "plugins", Example::class, "");

View File

@ -36,6 +36,7 @@
use GlpiPlugin\Example\Example; use GlpiPlugin\Example\Example;
include ('../../../inc/includes.php'); include ('../../../inc/includes.php');
Session::checkLoginUser();
if ($_SESSION["glpiactiveprofile"]["interface"] == "central") { if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
Html::header("TITRE", $_SERVER['PHP_SELF'], "plugins", Example::class, ""); Html::header("TITRE", $_SERVER['PHP_SELF'], "plugins", Example::class, "");

View File

@ -36,6 +36,7 @@
use GlpiPlugin\Example\RuleTestCollection; use GlpiPlugin\Example\RuleTestCollection;
include ('../../../inc/includes.php'); include ('../../../inc/includes.php');
Session::checkLoginUser();
$rulecollection = new RuleTestCollection(); $rulecollection = new RuleTestCollection();

View File

@ -36,6 +36,7 @@
use GlpiPlugin\Example\RuleTestCollection; use GlpiPlugin\Example\RuleTestCollection;
include ('../../../inc/includes.php'); include ('../../../inc/includes.php');
Session::checkLoginUser();
$rulecollection = new RuleTestCollection(); $rulecollection = new RuleTestCollection();