diff --git a/front/_check_webserver_config.php b/front/_check_webserver_config.php new file mode 100644 index 00000000000..759ae0176ff --- /dev/null +++ b/front/_check_webserver_config.php @@ -0,0 +1,42 @@ +. + * + * --------------------------------------------------------------------- + */ + +if (!class_exists('Glpi\\Kernel\\Kernel', autoload: false)) { + // `Glpi\Kernel\Kernel` class will exists if the request was processed by the `/public/index.php` file, + // and will not be found otherwise. + http_response_code(404); + readfile(__DIR__ . '/../index.html'); + exit(); +} diff --git a/front/appliance_item.form.php b/front/appliance_item.form.php index d2f5c89e8b2..6edbdbe4f3f 100644 --- a/front/appliance_item.form.php +++ b/front/appliance_item.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\BadRequestHttpException; Session::checkCentralAccess(); diff --git a/front/appliance_item_relation.form.php b/front/appliance_item_relation.form.php index ee7aa17c66f..63c6904c70d 100644 --- a/front/appliance_item_relation.form.php +++ b/front/appliance_item_relation.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\BadRequestHttpException; Session::checkCentralAccess(); diff --git a/front/asset/asset.form.php b/front/asset/asset.form.php index cd35c934a1f..3c0d120f393 100644 --- a/front/asset/asset.form.php +++ b/front/asset/asset.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/../_check_webserver_config.php'); + /** * @var array $CFG_GLPI */ diff --git a/front/asset/asset_peripheralasset.form.php b/front/asset/asset_peripheralasset.form.php index 7472c3204e0..cd628deab3c 100644 --- a/front/asset/asset_peripheralasset.form.php +++ b/front/asset/asset_peripheralasset.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/../_check_webserver_config.php'); + use Glpi\Asset\Asset_PeripheralAsset; use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/asset/assetdefinition.form.php b/front/asset/assetdefinition.form.php index 94e59cf0113..66d1d654411 100644 --- a/front/asset/assetdefinition.form.php +++ b/front/asset/assetdefinition.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/../_check_webserver_config.php'); + /** * @var array $CFG_GLPI */ diff --git a/front/asset/customfielddefinition.form.php b/front/asset/customfielddefinition.form.php index 328c1888a43..a936f7b6d25 100644 --- a/front/asset/customfielddefinition.form.php +++ b/front/asset/customfielddefinition.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/../_check_webserver_config.php'); + use Glpi\Asset\CustomFieldDefinition; $custom_field = new CustomFieldDefinition(); diff --git a/front/asset/ruledictionarymodel.form.php b/front/asset/ruledictionarymodel.form.php index 3e34e2fb77d..d5e94bc8d98 100644 --- a/front/asset/ruledictionarymodel.form.php +++ b/front/asset/ruledictionarymodel.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/../_check_webserver_config.php'); + use Glpi\Asset\AssetDefinition; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/asset/ruledictionarymodel.php b/front/asset/ruledictionarymodel.php index f91c01fc921..c83d2a4e22b 100644 --- a/front/asset/ruledictionarymodel.php +++ b/front/asset/ruledictionarymodel.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/../_check_webserver_config.php'); + use Glpi\Asset\AssetDefinition; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/asset/ruledictionarytype.form.php b/front/asset/ruledictionarytype.form.php index 490f3ed8b6b..b559c2a7fbd 100644 --- a/front/asset/ruledictionarytype.form.php +++ b/front/asset/ruledictionarytype.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/../_check_webserver_config.php'); + use Glpi\Asset\AssetDefinition; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/asset/ruledictionarytype.php b/front/asset/ruledictionarytype.php index a04ec386150..4dcaf05bb75 100644 --- a/front/asset/ruledictionarytype.php +++ b/front/asset/ruledictionarytype.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/../_check_webserver_config.php'); + use Glpi\Asset\AssetDefinition; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/auth.others.php b/front/auth.others.php index d04bbc3e26f..675c377fb6b 100644 --- a/front/auth.others.php +++ b/front/auth.others.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** @var array $CFG_GLPI */ global $CFG_GLPI; diff --git a/front/auth.settings.php b/front/auth.settings.php index 16c97576558..03434e32f0d 100644 --- a/front/auth.settings.php +++ b/front/auth.settings.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkRight("config", UPDATE); $config = new Config(); diff --git a/front/authldap.form.php b/front/authldap.form.php index ecd10acc98e..8aee18b240e 100644 --- a/front/authldap.form.php +++ b/front/authldap.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** @var array $CFG_GLPI */ global $CFG_GLPI; diff --git a/front/calendar_holiday.form.php b/front/calendar_holiday.form.php index a9d00fb38e6..a1d5ec6fe13 100644 --- a/front/calendar_holiday.form.php +++ b/front/calendar_holiday.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/calendarsegment.form.php b/front/calendarsegment.form.php index 03dc678b2af..9cd360d4419 100644 --- a/front/calendarsegment.form.php +++ b/front/calendarsegment.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/cartridge.form.php b/front/cartridge.form.php index a99423efeda..e295bc9c892 100644 --- a/front/cartridge.form.php +++ b/front/cartridge.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkRightsOr(Cartridge::$rightname, [READ, READ_ASSIGNED]); diff --git a/front/cartridgeitem_printermodel.form.php b/front/cartridgeitem_printermodel.form.php index aece33a17e0..53685e3b62f 100644 --- a/front/cartridgeitem_printermodel.form.php +++ b/front/cartridgeitem_printermodel.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/certificate_item.form.php b/front/certificate_item.form.php index b6831288f21..8b10ab1f3ad 100644 --- a/front/certificate_item.form.php +++ b/front/certificate_item.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/change.form.php b/front/change.form.php index fef627bfc07..0be178221b3 100644 --- a/front/change.form.php +++ b/front/change.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; if (empty($_GET["id"])) { diff --git a/front/change_group.form.php b/front/change_group.form.php index 262a32e006c..5d32eb36c28 100644 --- a/front/change_group.form.php +++ b/front/change_group.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/change_item.form.php b/front/change_item.form.php index 39166f5c9d3..527a02bcce3 100644 --- a/front/change_item.form.php +++ b/front/change_item.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $obj = new Change(); $item_obj = new Change_Item(); include(GLPI_ROOT . '/front/commonitilobject_item.form.php'); diff --git a/front/change_problem.form.php b/front/change_problem.form.php index 8afa2d3da2f..ce447f4b96e 100644 --- a/front/change_problem.form.php +++ b/front/change_problem.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/change_supplier.form.php b/front/change_supplier.form.php index 9b278c77b79..16cf527e2f2 100644 --- a/front/change_supplier.form.php +++ b/front/change_supplier.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/change_ticket.form.php b/front/change_ticket.form.php index c584929bb6b..1345d185fee 100644 --- a/front/change_ticket.form.php +++ b/front/change_ticket.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/change_user.form.php b/front/change_user.form.php index 2fcdf1be46f..744e47400af 100644 --- a/front/change_user.form.php +++ b/front/change_user.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/changecost.form.php b/front/changecost.form.php index ea47ba4e60a..c13e55605b7 100644 --- a/front/changecost.form.php +++ b/front/changecost.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/changesatisfaction.form.php b/front/changesatisfaction.form.php index 9201932c51f..35c2dd220ec 100644 --- a/front/changesatisfaction.form.php +++ b/front/changesatisfaction.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/changetask.form.php b/front/changetask.form.php index 6edb7da1f4f..ab199203ff9 100644 --- a/front/changetask.form.php +++ b/front/changetask.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $task = new ChangeTask(); include(GLPI_ROOT . "/front/commonitiltask.form.php"); diff --git a/front/changetemplatehiddenfield.form.php b/front/changetemplatehiddenfield.form.php index d47179ccd9f..72f7b131d93 100644 --- a/front/changetemplatehiddenfield.form.php +++ b/front/changetemplatehiddenfield.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $itiltype = 'Change'; $fieldtype = 'Hidden'; include __DIR__ . '/itiltemplatefield.form.php'; diff --git a/front/changetemplatemandatoryfield.form.php b/front/changetemplatemandatoryfield.form.php index 9084ecfe5f9..4d209f636dc 100644 --- a/front/changetemplatemandatoryfield.form.php +++ b/front/changetemplatemandatoryfield.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $itiltype = 'Change'; $fieldtype = 'Mandatory'; include __DIR__ . '/itiltemplatefield.form.php'; diff --git a/front/changetemplatepredefinedfield.form.php b/front/changetemplatepredefinedfield.form.php index d9fffb40498..66f37f0566a 100644 --- a/front/changetemplatepredefinedfield.form.php +++ b/front/changetemplatepredefinedfield.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $itiltype = 'Change'; $fieldtype = 'Predefined'; include __DIR__ . '/itiltemplatefield.form.php'; diff --git a/front/changetemplatereadonlyfield.form.php b/front/changetemplatereadonlyfield.form.php index 8bc589482a2..64f82d17c91 100644 --- a/front/changetemplatereadonlyfield.form.php +++ b/front/changetemplatereadonlyfield.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $itiltype = 'Change'; $fieldtype = 'Readonly'; include __DIR__ . '/itiltemplatefield.form.php'; diff --git a/front/changevalidation.form.php b/front/changevalidation.form.php index 7888b86ba21..43859eeda45 100644 --- a/front/changevalidation.form.php +++ b/front/changevalidation.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/commonitilcost.form.php b/front/commonitilcost.form.php index fc4f9f159a5..71cad77ab38 100644 --- a/front/commonitilcost.form.php +++ b/front/commonitilcost.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\AccessDeniedHttpException; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/commonitilobject_commonitilobject.form.php b/front/commonitilobject_commonitilobject.form.php index e1437088fed..37dfeaac038 100644 --- a/front/commonitilobject_commonitilobject.form.php +++ b/front/commonitilobject_commonitilobject.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/commonitilobject_item.form.php b/front/commonitilobject_item.form.php index 7634808d6a1..05e18df9d11 100644 --- a/front/commonitilobject_item.form.php +++ b/front/commonitilobject_item.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/commonitiltask.form.php b/front/commonitiltask.form.php index 872ffad19cb..a5a6b0537e3 100644 --- a/front/commonitiltask.form.php +++ b/front/commonitiltask.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\AccessDeniedHttpException; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/commonitilvalidation.form.php b/front/commonitilvalidation.form.php index 2aa0c8df056..0eeac1d97d8 100644 --- a/front/commonitilvalidation.form.php +++ b/front/commonitilvalidation.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\AccessDeniedHttpException; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/config.form.php b/front/config.form.php index dcafc0f7277..31a28e957d1 100644 --- a/front/config.form.php +++ b/front/config.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Cache\CacheManager; Session::checkRight("config", READ); diff --git a/front/consumable.form.php b/front/consumable.form.php index e7426c48d3f..2b188b9e0cb 100644 --- a/front/consumable.form.php +++ b/front/consumable.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkRightsOr(Consumable::$rightname, [READ, READ_ASSIGNED]); diff --git a/front/consumableitem.form.php b/front/consumableitem.form.php index 86da6a34b1e..23dfe4bfcc1 100644 --- a/front/consumableitem.form.php +++ b/front/consumableitem.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkRightsOr(Consumable::$rightname, [READ, READ_ASSIGNED]); diff --git a/front/consumableitem.php b/front/consumableitem.php index 4173f057d59..e543466ad7e 100644 --- a/front/consumableitem.php +++ b/front/consumableitem.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkRightsOr(Consumable::$rightname, [READ, READ_ASSIGNED, READ_OWNED]); Html::header(Consumable::getTypeName(Session::getPluralNumber()), '', "assets", "consumableitem"); diff --git a/front/contact_supplier.form.php b/front/contact_supplier.form.php index 9e2b0ed779e..6721224b531 100644 --- a/front/contact_supplier.form.php +++ b/front/contact_supplier.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/contenttemplates/documentation.php b/front/contenttemplates/documentation.php index bfdad7286df..ea1370f9d28 100644 --- a/front/contenttemplates/documentation.php +++ b/front/contenttemplates/documentation.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/../_check_webserver_config.php'); + use Glpi\ContentTemplates\TemplateManager; use Glpi\Exception\Http\BadRequestHttpException; use Glpi\Toolbox\MarkdownRenderer; diff --git a/front/contract_item.form.php b/front/contract_item.form.php index 0c16ca75e55..019db7d4888 100644 --- a/front/contract_item.form.php +++ b/front/contract_item.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/contract_supplier.form.php b/front/contract_supplier.form.php index b9a51ee64b7..a3bf9eaa640 100644 --- a/front/contract_supplier.form.php +++ b/front/contract_supplier.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/contractcost.form.php b/front/contractcost.form.php index c4321265ac1..e9cdd1ad854 100644 --- a/front/contractcost.form.php +++ b/front/contractcost.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/cron.php b/front/cron.php index ec34b2376a1..b2e89fa5766 100644 --- a/front/cron.php +++ b/front/cron.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Symfony\Component\HttpFoundation\StreamedResponse; /** diff --git a/front/crontask.form.php b/front/crontask.form.php index db310904707..3ec94a4b722 100644 --- a/front/crontask.form.php +++ b/front/crontask.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\BadRequestHttpException; /** diff --git a/front/css.php b/front/css.php index 6a332b60d95..a4cdd624bc5 100644 --- a/front/css.php +++ b/front/css.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Application\Environment; use Glpi\UI\ThemeManager; diff --git a/front/dashboard_assets.php b/front/dashboard_assets.php index 7ebabf4ebea..762cac0ccd8 100644 --- a/front/dashboard_assets.php +++ b/front/dashboard_assets.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\AccessDeniedHttpException; use Glpi\Dashboard\Dashboard; diff --git a/front/dashboard_helpdesk.php b/front/dashboard_helpdesk.php index 35bb537ca26..efdb1213125 100644 --- a/front/dashboard_helpdesk.php +++ b/front/dashboard_helpdesk.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\AccessDeniedHttpException; use Glpi\Dashboard\Dashboard; diff --git a/front/database.form.php b/front/database.form.php index 2b0ac2b9adf..4c40cad287d 100644 --- a/front/database.form.php +++ b/front/database.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkRight('database', READ); diff --git a/front/databaseinstance.form.php b/front/databaseinstance.form.php index 0e9bc94af50..4a39e4ce7f8 100644 --- a/front/databaseinstance.form.php +++ b/front/databaseinstance.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkRight('database', READ); diff --git a/front/datacenter.form.php b/front/datacenter.form.php index 6ff31eb0514..fec9718bbd2 100644 --- a/front/datacenter.form.php +++ b/front/datacenter.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkRight("datacenter", READ); diff --git a/front/dcroom.form.php b/front/dcroom.form.php index 8983b3f531c..999c55dbe38 100644 --- a/front/dcroom.form.php +++ b/front/dcroom.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkRight("datacenter", READ); diff --git a/front/defaultfilter.form.php b/front/defaultfilter.form.php index ba9fa96c543..c830be3a4ed 100644 --- a/front/defaultfilter.form.php +++ b/front/defaultfilter.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkRight(DefaultFilter::$rightname, READ); diff --git a/front/devices.php b/front/devices.php index f78a64f746f..90883769eeb 100644 --- a/front/devices.php +++ b/front/devices.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkRight("device", READ); Html::header(_n('Component', 'Components', Session::getPluralNumber()), '', "config", "commondevice"); diff --git a/front/dictionnary.php b/front/dictionnary.php index 8e01831d840..a430e58f7ad 100644 --- a/front/dictionnary.php +++ b/front/dictionnary.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Application\View\TemplateRenderer; Session::checkSeveralRightsOr(['rule_dictionnary_dropdown' => READ, diff --git a/front/displaypreference.form.php b/front/displaypreference.form.php index 4189108a2f1..b25537e5928 100644 --- a/front/displaypreference.form.php +++ b/front/displaypreference.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkRightsOr('search_config', [DisplayPreference::PERSONAL, DisplayPreference::GENERAL ]); diff --git a/front/document.form.php b/front/document.form.php index 2d3b11f4d0d..73a982b3666 100644 --- a/front/document.form.php +++ b/front/document.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; if (!isset($_GET["id"])) { diff --git a/front/document.send.php b/front/document.send.php index d4332269e2f..ab04de7e10c 100644 --- a/front/document.send.php +++ b/front/document.send.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Inventory\Conf; use Glpi\Exception\Http\AccessDeniedHttpException; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/document_item.form.php b/front/document_item.form.php index 4052a294f03..b87a847213f 100644 --- a/front/document_item.form.php +++ b/front/document_item.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/documenttype.list.php b/front/documenttype.list.php index a360f041c9b..57fb7164791 100644 --- a/front/documenttype.list.php +++ b/front/documenttype.list.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Html::popHeader(__('Setup')); $params = Search::manageParams('DocumentType', $_GET); diff --git a/front/domain.form.php b/front/domain.form.php index cb911240952..e491b897b34 100644 --- a/front/domain.form.php +++ b/front/domain.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkRight("domain", READ); if (empty($_GET["id"])) { diff --git a/front/domainrecord.form.php b/front/domainrecord.form.php index 188a05a132f..c06d54b8293 100644 --- a/front/domainrecord.form.php +++ b/front/domainrecord.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkCentralAccess(); if (empty($_GET["id"])) { diff --git a/front/dropdown.common.form.php b/front/dropdown.common.form.php index fbda814ac8e..78463c14121 100644 --- a/front/dropdown.common.form.php +++ b/front/dropdown.common.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * Following variables have to be defined before inclusion of this file: * @var CommonDropdown $dropdown diff --git a/front/dropdown.common.php b/front/dropdown.common.php index bc3de947bf0..f9d5f4c72cf 100644 --- a/front/dropdown.common.php +++ b/front/dropdown.common.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * Following variables have to be defined before inclusion of this file: * @var CommonDropdown $dropdown diff --git a/front/dropdown.php b/front/dropdown.php index cb9fd1322c9..0a6817a69d1 100644 --- a/front/dropdown.php +++ b/front/dropdown.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\AccessDeniedHttpException; Html::header(__('Setup'), '', "config", "commondropdown"); diff --git a/front/dropdown/dropdowndefinition.form.php b/front/dropdown/dropdowndefinition.form.php index fa4c9cf03bb..fd8d61a7d73 100644 --- a/front/dropdown/dropdowndefinition.form.php +++ b/front/dropdown/dropdowndefinition.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/../_check_webserver_config.php'); + /** * @var array $CFG_GLPI */ diff --git a/front/dropdowntranslation.form.php b/front/dropdowntranslation.form.php index 582a5d3f05b..31b867fa8f3 100644 --- a/front/dropdowntranslation.form.php +++ b/front/dropdowntranslation.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/form/access_control.form.php b/front/form/access_control.form.php index 875a10909fe..e17079e882d 100644 --- a/front/form/access_control.form.php +++ b/front/form/access_control.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/../_check_webserver_config.php'); + use Glpi\Form\AccessControl\FormAccessControl; /** diff --git a/front/form/answersset.form.php b/front/form/answersset.form.php index 5537932991d..ab7cc04d7e9 100644 --- a/front/form/answersset.form.php +++ b/front/form/answersset.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/../_check_webserver_config.php'); + use Glpi\Form\AnswersSet; use Glpi\Form\Form; diff --git a/front/form/form.form.php b/front/form/form.form.php index d81d8dcc8bc..470aaf386d2 100644 --- a/front/form/form.form.php +++ b/front/form/form.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/../_check_webserver_config.php'); + use Glpi\Form\Form; // Read parameters diff --git a/front/graph.send.php b/front/graph.send.php index 4f0cc4a9b92..d630e8faf73 100644 --- a/front/graph.send.php +++ b/front/graph.send.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Csv\CsvResponse; use Glpi\Csv\StatCsvExport; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/group.form.php b/front/group.form.php index c0260880952..9768c089934 100644 --- a/front/group.form.php +++ b/front/group.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkRight("group", READ); diff --git a/front/group_problem.form.php b/front/group_problem.form.php index dc0791c6046..a7e5deffe14 100644 --- a/front/group_problem.form.php +++ b/front/group_problem.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/group_ticket.form.php b/front/group_ticket.form.php index 24c2105d3ac..e3d45a55d68 100644 --- a/front/group_ticket.form.php +++ b/front/group_ticket.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/group_user.form.php b/front/group_user.form.php index 67d8def2ff5..8045b1c8679 100644 --- a/front/group_user.form.php +++ b/front/group_user.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/helpdesk.faq.php b/front/helpdesk.faq.php index df7a4df5c03..72b9a4154b9 100644 --- a/front/helpdesk.faq.php +++ b/front/helpdesk.faq.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @var array $CFG_GLPI */ diff --git a/front/impactcsv.php b/front/impactcsv.php index 200ce82c5bd..172b5e4ea57 100644 --- a/front/impactcsv.php +++ b/front/impactcsv.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Csv\CsvResponse; use Glpi\Csv\ImpactCsvExport; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/impactitem.form.php b/front/impactitem.form.php index 2f7a8d98eb9..cf075b8530c 100644 --- a/front/impactitem.form.php +++ b/front/impactitem.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\BadRequestHttpException; $impact_item = new ImpactItem(); diff --git a/front/initpassword.php b/front/initpassword.php index f3cd3aceea1..2122d4d8d2f 100644 --- a/front/initpassword.php +++ b/front/initpassword.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Application\View\TemplateRenderer; /** @var array $CFG_GLPI */ diff --git a/front/inventory.conf.php b/front/inventory.conf.php index 42d53952984..c9c5e89a079 100644 --- a/front/inventory.conf.php +++ b/front/inventory.conf.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Inventory\Conf; Session::checkRight(Conf::$rightname, Conf::IMPORTFROMFILE); diff --git a/front/ipnetwork_vlan.form.php b/front/ipnetwork_vlan.form.php index 5f97e010e7b..65e5a3b3993 100644 --- a/front/ipnetwork_vlan.form.php +++ b/front/ipnetwork_vlan.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/item_cluster.form.php b/front/item_cluster.form.php index 4e1fbf0d62b..474e52d1085 100644 --- a/front/item_cluster.form.php +++ b/front/item_cluster.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\BadRequestHttpException; Session::checkCentralAccess(); diff --git a/front/item_device.common.form.php b/front/item_device.common.form.php index 9c6e59184c5..bb0ccb22529 100644 --- a/front/item_device.common.form.php +++ b/front/item_device.common.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\AccessDeniedHttpException; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/item_device.php b/front/item_device.php index ddd7f168cb3..de39cad193d 100644 --- a/front/item_device.php +++ b/front/item_device.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\AccessDeniedHttpException; /** @var array $CFG_GLPI */ diff --git a/front/item_devicebattery.form.php b/front/item_devicebattery.form.php index cd8b0db207b..16503487fa2 100644 --- a/front/item_devicebattery.form.php +++ b/front/item_devicebattery.form.php @@ -33,5 +33,7 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $item_device = new Item_DeviceBattery(); include(GLPI_ROOT . "/front/item_device.common.form.php"); diff --git a/front/item_devicecamera.form.php b/front/item_devicecamera.form.php index dc00776f42e..5340413fd14 100644 --- a/front/item_devicecamera.form.php +++ b/front/item_devicecamera.form.php @@ -33,5 +33,7 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $item_device = new Item_DeviceCamera(); include(GLPI_ROOT . "/front/item_device.common.form.php"); diff --git a/front/item_devicecase.form.php b/front/item_devicecase.form.php index fc25c47fe3f..d6e732b58b0 100644 --- a/front/item_devicecase.form.php +++ b/front/item_devicecase.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/item_devicecontrol.form.php b/front/item_devicecontrol.form.php index b0e90a482f1..21e50726236 100644 --- a/front/item_devicecontrol.form.php +++ b/front/item_devicecontrol.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/item_devicedrive.form.php b/front/item_devicedrive.form.php index 4bd5b357aef..d39f7cd49e3 100644 --- a/front/item_devicedrive.form.php +++ b/front/item_devicedrive.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/item_devicefirmware.form.php b/front/item_devicefirmware.form.php index 0fc981ccce1..26cf666980d 100644 --- a/front/item_devicefirmware.form.php +++ b/front/item_devicefirmware.form.php @@ -33,5 +33,7 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $item_device = new Item_DeviceFirmware(); include(GLPI_ROOT . "/front/item_device.common.form.php"); diff --git a/front/item_devicegeneric.form.php b/front/item_devicegeneric.form.php index 14fc87a6706..62a0827414d 100644 --- a/front/item_devicegeneric.form.php +++ b/front/item_devicegeneric.form.php @@ -33,5 +33,7 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $item_device = new Item_DeviceGeneric(); include(GLPI_ROOT . "/front/item_device.common.form.php"); diff --git a/front/item_devicegraphiccard.form.php b/front/item_devicegraphiccard.form.php index 7815b13b80c..5a3f6f4b14a 100644 --- a/front/item_devicegraphiccard.form.php +++ b/front/item_devicegraphiccard.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/item_deviceharddrive.form.php b/front/item_deviceharddrive.form.php index 38219ca6a1b..6d0d7f6319f 100644 --- a/front/item_deviceharddrive.form.php +++ b/front/item_deviceharddrive.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/item_devicememory.form.php b/front/item_devicememory.form.php index b69bbca7167..262cce79600 100644 --- a/front/item_devicememory.form.php +++ b/front/item_devicememory.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/item_devicemotherboard.form.php b/front/item_devicemotherboard.form.php index a3f746d3d9e..eef77ef1fd0 100644 --- a/front/item_devicemotherboard.form.php +++ b/front/item_devicemotherboard.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/item_devicenetworkcard.form.php b/front/item_devicenetworkcard.form.php index 9752adbaa53..2c8615bd24d 100644 --- a/front/item_devicenetworkcard.form.php +++ b/front/item_devicenetworkcard.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/item_devicepci.form.php b/front/item_devicepci.form.php index e7b631383ca..09cce5b0e16 100644 --- a/front/item_devicepci.form.php +++ b/front/item_devicepci.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/item_devicepowersupply.form.php b/front/item_devicepowersupply.form.php index b2d25472603..ce09653db7f 100644 --- a/front/item_devicepowersupply.form.php +++ b/front/item_devicepowersupply.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/item_deviceprocessor.form.php b/front/item_deviceprocessor.form.php index cedf91423e6..144b4e67ee1 100644 --- a/front/item_deviceprocessor.form.php +++ b/front/item_deviceprocessor.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/item_devices.form.php b/front/item_devices.form.php index af10533a813..8754893d044 100644 --- a/front/item_devices.form.php +++ b/front/item_devices.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\BadRequestHttpException; /** diff --git a/front/item_devicesensor.form.php b/front/item_devicesensor.form.php index 975ecedf7c1..d7706a68832 100644 --- a/front/item_devicesensor.form.php +++ b/front/item_devicesensor.form.php @@ -33,5 +33,7 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $item_device = new Item_DeviceSensor(); include(GLPI_ROOT . "/front/item_device.common.form.php"); diff --git a/front/item_devicesimcard.form.php b/front/item_devicesimcard.form.php index 2d04dbb5738..536d31b4afb 100644 --- a/front/item_devicesimcard.form.php +++ b/front/item_devicesimcard.form.php @@ -33,5 +33,7 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $item_device = new Item_DeviceSimcard(); include(GLPI_ROOT . "/front/item_device.common.form.php"); diff --git a/front/item_devicesoundcard.form.php b/front/item_devicesoundcard.form.php index 756919554e8..5d542b26248 100644 --- a/front/item_devicesoundcard.form.php +++ b/front/item_devicesoundcard.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/item_disk.form.php b/front/item_disk.form.php index 5cb637b95bf..62ad2ba096e 100644 --- a/front/item_disk.form.php +++ b/front/item_disk.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkCentralAccess(); diff --git a/front/item_enclosure.form.php b/front/item_enclosure.form.php index 709a7ce555f..9873817a505 100644 --- a/front/item_enclosure.form.php +++ b/front/item_enclosure.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\BadRequestHttpException; Session::checkCentralAccess(); diff --git a/front/item_line.form.php b/front/item_line.form.php index 784f4dc5ee5..faca77bd6b7 100644 --- a/front/item_line.form.php +++ b/front/item_line.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\BadRequestHttpException; Session::checkCentralAccess(); diff --git a/front/item_operatingsystem.form.php b/front/item_operatingsystem.form.php index 50cf70dd5ab..5c6c6fe062a 100644 --- a/front/item_operatingsystem.form.php +++ b/front/item_operatingsystem.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\BadRequestHttpException; Session::checkCentralAccess(); diff --git a/front/item_plug.form.php b/front/item_plug.form.php index 451ceba6767..81dab6c7ac8 100644 --- a/front/item_plug.form.php +++ b/front/item_plug.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\BadRequestHttpException; Session::checkCentralAccess(); diff --git a/front/item_problem.form.php b/front/item_problem.form.php index e88bbbcb357..ba106c17352 100644 --- a/front/item_problem.form.php +++ b/front/item_problem.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $obj = new Problem(); $item_obj = new Item_Problem(); include(GLPI_ROOT . '/front/commonitilobject_item.form.php'); diff --git a/front/item_project.form.php b/front/item_project.form.php index b3facd023cb..4377cfbfde7 100644 --- a/front/item_project.form.php +++ b/front/item_project.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/item_rack.form.php b/front/item_rack.form.php index ee3fcd28c86..3a8c396ab2c 100644 --- a/front/item_rack.form.php +++ b/front/item_rack.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\BadRequestHttpException; use Glpi\Exception\Http\NotFoundHttpException; diff --git a/front/item_remotemanagement.form.php b/front/item_remotemanagement.form.php index 42ef0a08e54..41204f23587 100644 --- a/front/item_remotemanagement.form.php +++ b/front/item_remotemanagement.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkCentralAccess(); diff --git a/front/item_softwarelicense.form.php b/front/item_softwarelicense.form.php index b5d233f0882..9dbd392635f 100644 --- a/front/item_softwarelicense.form.php +++ b/front/item_softwarelicense.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/item_softwareversion.form.php b/front/item_softwareversion.form.php index 916db22c712..0e80865491c 100644 --- a/front/item_softwareversion.form.php +++ b/front/item_softwareversion.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/item_ticket.form.php b/front/item_ticket.form.php index 13c9455a105..94c58089373 100644 --- a/front/item_ticket.form.php +++ b/front/item_ticket.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $obj = new Ticket(); $item_obj = new Item_Ticket(); include(GLPI_ROOT . '/front/commonitilobject_item.form.php'); diff --git a/front/item_ticketrecurrent.form.php b/front/item_ticketrecurrent.form.php index 08e2e7617c7..d0a1d3555e4 100644 --- a/front/item_ticketrecurrent.form.php +++ b/front/item_ticketrecurrent.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $obj = new TicketRecurrent(); $item_obj = new Item_TicketRecurrent(); include(GLPI_ROOT . '/front/commonitilobject_item.form.php'); diff --git a/front/itemantivirus.form.php b/front/itemantivirus.form.php index e341eafd2c2..478485b923d 100644 --- a/front/itemantivirus.form.php +++ b/front/itemantivirus.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkCentralAccess(); diff --git a/front/itemvirtualmachine.form.php b/front/itemvirtualmachine.form.php index 45e334d32c9..6e99b5871e7 100644 --- a/front/itemvirtualmachine.form.php +++ b/front/itemvirtualmachine.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkCentralAccess(); diff --git a/front/itil_project.form.php b/front/itil_project.form.php index a9572b4585c..8e70898419b 100644 --- a/front/itil_project.form.php +++ b/front/itil_project.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/itilfollowup.form.php b/front/itilfollowup.form.php index 4969b09b9cd..62fda2b7eea 100644 --- a/front/itilfollowup.form.php +++ b/front/itilfollowup.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/itilsolution.form.php b/front/itilsolution.form.php index 78523e568c6..b8e880a67b7 100644 --- a/front/itilsolution.form.php +++ b/front/itilsolution.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; /** @var \DBmysql $DB */ diff --git a/front/itiltemplatefield.form.php b/front/itiltemplatefield.form.php index 471fb86af96..d92ada63ba8 100644 --- a/front/itiltemplatefield.form.php +++ b/front/itiltemplatefield.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/knowbaseitem.form.php b/front/knowbaseitem.form.php index 2ee0a9b9802..bb7e34544cd 100644 --- a/front/knowbaseitem.form.php +++ b/front/knowbaseitem.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; /** @var array $CFG_GLPI */ diff --git a/front/knowbaseitem.php b/front/knowbaseitem.php index 81a9c97667c..8e2b4a5bd28 100644 --- a/front/knowbaseitem.php +++ b/front/knowbaseitem.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\AccessDeniedHttpException; /** @var array $CFG_GLPI */ diff --git a/front/knowbaseitem_comment.form.php b/front/knowbaseitem_comment.form.php index 2a54969cdc3..7d9a236ebec 100644 --- a/front/knowbaseitem_comment.form.php +++ b/front/knowbaseitem_comment.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\AccessDeniedHttpException; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/knowbaseitem_item.form.php b/front/knowbaseitem_item.form.php index f9e5d63b9d4..2505ab29c04 100644 --- a/front/knowbaseitem_item.form.php +++ b/front/knowbaseitem_item.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/knowbaseitem_knowbaseitemcategory.form.php b/front/knowbaseitem_knowbaseitemcategory.form.php index b93e9a04fd5..a4aefd0ebf6 100644 --- a/front/knowbaseitem_knowbaseitemcategory.form.php +++ b/front/knowbaseitem_knowbaseitemcategory.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/knowbaseitemtranslation.form.php b/front/knowbaseitemtranslation.form.php index eb36b9aa67f..2b90197ff31 100644 --- a/front/knowbaseitemtranslation.form.php +++ b/front/knowbaseitemtranslation.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/ldap.group.import.php b/front/ldap.group.import.php index b6131d87ba6..e263366c2bb 100644 --- a/front/ldap.group.import.php +++ b/front/ldap.group.import.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkRightsOr('group', [CREATE, UPDATE]); Session::checkRight('user', User::UPDATEAUTHENT); AuthLDAP::manageRequestValues(false); diff --git a/front/ldap.group.php b/front/ldap.group.php index 5feb214c029..718a54c8682 100644 --- a/front/ldap.group.php +++ b/front/ldap.group.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Application\View\TemplateRenderer; $group = new Group(); diff --git a/front/ldap.import.php b/front/ldap.import.php index 876fe2b5190..79e43fd6f43 100644 --- a/front/ldap.import.php +++ b/front/ldap.import.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkRight("user", User::IMPORTEXTAUTHUSERS); AuthLDAP::manageRequestValues(); diff --git a/front/ldap.php b/front/ldap.php index 2081c04542e..8c360bd87a5 100644 --- a/front/ldap.php +++ b/front/ldap.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Application\View\TemplateRenderer; Session::checkRight("user", User::IMPORTEXTAUTHUSERS); diff --git a/front/link.send.php b/front/link.send.php index 9424c43aae9..59c27cec15b 100644 --- a/front/link.send.php +++ b/front/link.send.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** @var \DBmysql $DB */ global $DB; diff --git a/front/link_itemtype.form.php b/front/link_itemtype.form.php index 46de37232a7..c6ae8f557e1 100644 --- a/front/link_itemtype.form.php +++ b/front/link_itemtype.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkCentralAccess(); diff --git a/front/locale.php b/front/locale.php index aab2b7aeb72..a3a76143ecd 100644 --- a/front/locale.php +++ b/front/locale.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Application\Environment; use Glpi\Error\ErrorHandler; diff --git a/front/lock.form.php b/front/lock.form.php index f056be2235f..edef79adcc5 100644 --- a/front/lock.form.php +++ b/front/lock.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Plugin\Hooks; /** @var array $CFG_GLPI */ diff --git a/front/log/export.php b/front/log/export.php index 1968bcd83ce..e2266e4bd99 100644 --- a/front/log/export.php +++ b/front/log/export.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/../_check_webserver_config.php'); + use Glpi\Csv\CsvResponse; use Glpi\Csv\LogCsvExport; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/login.php b/front/login.php index de978f9a330..6f8a5ff1ca9 100644 --- a/front/login.php +++ b/front/login.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\AuthenticationFailedException; /** diff --git a/front/logout.php b/front/logout.php index 2f9148b3c53..ea8441f32a4 100644 --- a/front/logout.php +++ b/front/logout.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/logs.php b/front/logs.php index 524d05efce3..dffcf6a81e9 100644 --- a/front/logs.php +++ b/front/logs.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\System\Log\LogViewer; Session::checkRight("logs", READ); diff --git a/front/logviewer.php b/front/logviewer.php index f66557e5c4b..97c83cc6a13 100644 --- a/front/logviewer.php +++ b/front/logviewer.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\NotFoundHttpException; use Glpi\System\Log\LogParser; use Glpi\System\Log\LogViewer; diff --git a/front/lostpassword.php b/front/lostpassword.php index bde6c845349..8adf8a7aaad 100644 --- a/front/lostpassword.php +++ b/front/lostpassword.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Application\View\TemplateRenderer; /** diff --git a/front/manuallink.form.php b/front/manuallink.form.php index a495092e56e..b4db815e78f 100644 --- a/front/manuallink.form.php +++ b/front/manuallink.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; use Glpi\Exception\Http\NotFoundHttpException; diff --git a/front/marketplace.download.php b/front/marketplace.download.php index 5c6b8ccdfc2..0f189de1850 100644 --- a/front/marketplace.download.php +++ b/front/marketplace.download.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\AccessDeniedHttpException; use Glpi\Marketplace\Controller as MarketplaceController; diff --git a/front/marketplace.php b/front/marketplace.php index a9c2749e1e9..c2823951419 100644 --- a/front/marketplace.php +++ b/front/marketplace.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkRight("config", UPDATE); if (!Glpi\Marketplace\Controller::isWebAllowed()) { diff --git a/front/massiveaction.php b/front/massiveaction.php index 4e8012b661f..e5374eda23d 100644 --- a/front/massiveaction.php +++ b/front/massiveaction.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** @var array $CFG_GLPI */ global $CFG_GLPI; diff --git a/front/networkalias.form.php b/front/networkalias.form.php index 822155c026e..48017e55148 100644 --- a/front/networkalias.form.php +++ b/front/networkalias.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; /** @var array $CFG_GLPI */ diff --git a/front/networkequipment.form.php b/front/networkequipment.form.php index 985f00c75f5..4199a055b5a 100644 --- a/front/networkequipment.form.php +++ b/front/networkequipment.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkRightsOr(NetworkEquipment::$rightname, [READ, READ_ASSIGNED, READ_OWNED]); diff --git a/front/networkname.form.php b/front/networkname.form.php index 1cf4d183d40..c6375ba2c19 100644 --- a/front/networkname.form.php +++ b/front/networkname.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\NotFoundHttpException; diff --git a/front/networkport.form.php b/front/networkport.form.php index 354116c9dd3..b296470ae4f 100644 --- a/front/networkport.form.php +++ b/front/networkport.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.84 */ diff --git a/front/networkport_vlan.form.php b/front/networkport_vlan.form.php index e3cdb5f7e76..cae659724ad 100644 --- a/front/networkport_vlan.form.php +++ b/front/networkport_vlan.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/notepad.form.php b/front/notepad.form.php index c6d8f7fb178..0cfb8dc6574 100644 --- a/front/notepad.form.php +++ b/front/notepad.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/notification.form.php b/front/notification.form.php index 5985d3ee9fc..e87c95b50ec 100644 --- a/front/notification.form.php +++ b/front/notification.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkRight("notification", READ); diff --git a/front/notification.tags.php b/front/notification.tags.php index 49b78b97c5d..0ad7dfb0d3e 100644 --- a/front/notification.tags.php +++ b/front/notification.tags.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\BadRequestHttpException; Html::popHeader(__('List of available tags')); diff --git a/front/notification_notificationtemplate.form.php b/front/notification_notificationtemplate.form.php index cb11b364da0..86d38e1d604 100644 --- a/front/notification_notificationtemplate.form.php +++ b/front/notification_notificationtemplate.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkCentralAccess(); //Html::back(); diff --git a/front/notificationajaxsetting.form.php b/front/notificationajaxsetting.form.php index a584cd64ed3..6a43f12612e 100644 --- a/front/notificationajaxsetting.form.php +++ b/front/notificationajaxsetting.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkRight("config", UPDATE); diff --git a/front/notificationmailingsetting.form.php b/front/notificationmailingsetting.form.php index 5145b3814d7..6d16c9fe0c9 100644 --- a/front/notificationmailingsetting.form.php +++ b/front/notificationmailingsetting.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Error\ErrorHandler; use Glpi\Event; use Glpi\Mail\SMTP\OauthConfig; diff --git a/front/notificationtarget.form.php b/front/notificationtarget.form.php index 16ba0af50eb..31aa77cd213 100644 --- a/front/notificationtarget.form.php +++ b/front/notificationtarget.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkCentralAccess(); NotificationTarget::updateTargets($_POST); diff --git a/front/notificationtemplate.form.php b/front/notificationtemplate.form.php index 4aad0d9199d..21402f7abbd 100644 --- a/front/notificationtemplate.form.php +++ b/front/notificationtemplate.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkCentralAccess(); diff --git a/front/notificationtemplatetranslation.form.php b/front/notificationtemplatetranslation.form.php index 5621f9b9aa4..0ec37745d47 100644 --- a/front/notificationtemplatetranslation.form.php +++ b/front/notificationtemplatetranslation.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkCentralAccess(); diff --git a/front/oauthclient.form.php b/front/oauthclient.form.php index b1ed1028a1a..7451157925c 100644 --- a/front/oauthclient.form.php +++ b/front/oauthclient.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** @var array $CFG_GLPI */ global $CFG_GLPI; diff --git a/front/olalevel.form.php b/front/olalevel.form.php index 44a0cf959df..b935a89f5ef 100644 --- a/front/olalevel.form.php +++ b/front/olalevel.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 9.2 */ diff --git a/front/olalevelaction.form.php b/front/olalevelaction.form.php index c4f39d1ac74..b5760920171 100644 --- a/front/olalevelaction.form.php +++ b/front/olalevelaction.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 9.2 */ diff --git a/front/olalevelcriteria.form.php b/front/olalevelcriteria.form.php index ebfd742f94d..1024e88dab8 100644 --- a/front/olalevelcriteria.form.php +++ b/front/olalevelcriteria.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 9.2 */ diff --git a/front/palette_preview.php b/front/palette_preview.php index 4e662e12498..46e44dd72d6 100644 --- a/front/palette_preview.php +++ b/front/palette_preview.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\UI\ThemeManager; $theme = ThemeManager::getInstance()->getTheme($_GET['key']); diff --git a/front/pdu_rack.form.php b/front/pdu_rack.form.php index 9848e241db5..651e60bdc73 100644 --- a/front/pdu_rack.form.php +++ b/front/pdu_rack.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkCentralAccess(); $pra = new \PDU_Rack(); diff --git a/front/planning.form.php b/front/planning.form.php index 00488493f4b..9f0184de6eb 100644 --- a/front/planning.form.php +++ b/front/planning.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 9.1 */ diff --git a/front/planning.php b/front/planning.php index ae6398d23b7..8981d710617 100644 --- a/front/planning.php +++ b/front/planning.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + if (!isset($_GET['genical'])) { Session::checkRight("planning", READ); } diff --git a/front/planningcsv.php b/front/planningcsv.php index 2be7ada60ff..c5dd355bb30 100644 --- a/front/planningcsv.php +++ b/front/planningcsv.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Csv\CsvResponse; use Glpi\Csv\PlanningCsv; diff --git a/front/planningexternalevent.form.php b/front/planningexternalevent.form.php index 969798146fd..184b940ab32 100644 --- a/front/planningexternalevent.form.php +++ b/front/planningexternalevent.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkRight("planning", READ); if (empty($_GET["id"])) { diff --git a/front/planningrecall.form.php b/front/planningrecall.form.php index 2bda71971d4..5dbbbec0e5b 100644 --- a/front/planningrecall.form.php +++ b/front/planningrecall.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\BadRequestHttpException; /** diff --git a/front/plugin.form.php b/front/plugin.form.php index b94715e92eb..d7994ab1e22 100644 --- a/front/plugin.form.php +++ b/front/plugin.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\BadRequestHttpException; /** diff --git a/front/plugin.php b/front/plugin.php index 6b515876972..70d9289239e 100644 --- a/front/plugin.php +++ b/front/plugin.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkRight("config", UPDATE); // This has to be called before search process is called, in order to add diff --git a/front/pluginimage.send.php b/front/pluginimage.send.php index 81e07c897b2..aed4dd45939 100644 --- a/front/pluginimage.send.php +++ b/front/pluginimage.send.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * Send image generated by a plugin to browser * diff --git a/front/preference.php b/front/preference.php index 1f46bce387c..f73e3acebbd 100644 --- a/front/preference.php +++ b/front/preference.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Security\TOTPManager; diff --git a/front/printerlogcsv.php b/front/printerlogcsv.php index 94d1c386144..a24bf704538 100644 --- a/front/printerlogcsv.php +++ b/front/printerlogcsv.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Csv\CsvResponse; use Glpi\Csv\PrinterLogCsvExport; use Glpi\Csv\PrinterLogCsvExportComparison; diff --git a/front/problem.form.php b/front/problem.form.php index cf29df770b7..b1459872d93 100644 --- a/front/problem.form.php +++ b/front/problem.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; if (empty($_GET["id"])) { diff --git a/front/problem_supplier.form.php b/front/problem_supplier.form.php index d529c85f2f5..160133e7973 100644 --- a/front/problem_supplier.form.php +++ b/front/problem_supplier.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/problem_ticket.form.php b/front/problem_ticket.form.php index 56cd758830c..f428c2a6b3f 100644 --- a/front/problem_ticket.form.php +++ b/front/problem_ticket.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/problem_user.form.php b/front/problem_user.form.php index a4cd47e218e..ee2ecaff81a 100644 --- a/front/problem_user.form.php +++ b/front/problem_user.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/problemcost.form.php b/front/problemcost.form.php index 38d6cf3b2d5..444baa63a69 100644 --- a/front/problemcost.form.php +++ b/front/problemcost.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/problemtask.form.php b/front/problemtask.form.php index e383af420fd..da1b2f64bde 100644 --- a/front/problemtask.form.php +++ b/front/problemtask.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $task = new ProblemTask(); include(GLPI_ROOT . "/front/commonitiltask.form.php"); diff --git a/front/problemtemplatehiddenfield.form.php b/front/problemtemplatehiddenfield.form.php index c09edad32ea..7e8a88f9bd0 100644 --- a/front/problemtemplatehiddenfield.form.php +++ b/front/problemtemplatehiddenfield.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $itiltype = 'Problem'; $fieldtype = 'Hidden'; include __DIR__ . '/itiltemplatefield.form.php'; diff --git a/front/problemtemplatemandatoryfield.form.php b/front/problemtemplatemandatoryfield.form.php index 0c4ac4842db..3aac5df0d7d 100644 --- a/front/problemtemplatemandatoryfield.form.php +++ b/front/problemtemplatemandatoryfield.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $itiltype = 'Problem'; $fieldtype = 'Mandatory'; include __DIR__ . '/itiltemplatefield.form.php'; diff --git a/front/problemtemplatepredefinedfield.form.php b/front/problemtemplatepredefinedfield.form.php index 93913062f96..0b9629ee171 100644 --- a/front/problemtemplatepredefinedfield.form.php +++ b/front/problemtemplatepredefinedfield.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $itiltype = 'Problem'; $fieldtype = 'Predefined'; include __DIR__ . '/itiltemplatefield.form.php'; diff --git a/front/problemtemplatereadonlyfield.form.php b/front/problemtemplatereadonlyfield.form.php index bc21f133cb9..01c25a4466c 100644 --- a/front/problemtemplatereadonlyfield.form.php +++ b/front/problemtemplatereadonlyfield.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $itiltype = 'Problem'; $fieldtype = 'Readonly'; include __DIR__ . '/itiltemplatefield.form.php'; diff --git a/front/profile.form.php b/front/profile.form.php index cb0ac039aba..d3d573dbdcb 100644 --- a/front/profile.form.php +++ b/front/profile.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkRight("profile", READ); diff --git a/front/profile_user.form.php b/front/profile_user.form.php index 5b8f72f8425..ef4a1bd703a 100644 --- a/front/profile_user.form.php +++ b/front/profile_user.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/project.form.php b/front/project.form.php index 2f8491465fe..52ac2f598e9 100644 --- a/front/project.form.php +++ b/front/project.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/projectcost.form.php b/front/projectcost.form.php index d83a16a63c5..bbc9d055205 100644 --- a/front/projectcost.form.php +++ b/front/projectcost.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/projecttask.form.php b/front/projecttask.form.php index 3e829b08cb9..d340fd52cd6 100644 --- a/front/projecttask.form.php +++ b/front/projecttask.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/projecttask_ticket.form.php b/front/projecttask_ticket.form.php index 4bca71e0ad9..a1e8344bd4a 100644 --- a/front/projecttask_ticket.form.php +++ b/front/projecttask_ticket.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/projecttaskteam.form.php b/front/projecttaskteam.form.php index ad115e5041e..24508274ec0 100644 --- a/front/projecttaskteam.form.php +++ b/front/projecttaskteam.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/projectteam.form.php b/front/projectteam.form.php index 2e4f5f27344..178a9c07b34 100644 --- a/front/projectteam.form.php +++ b/front/projectteam.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/queuednotification.form.php b/front/queuednotification.form.php index 2d8312dc85c..51b1d92e384 100644 --- a/front/queuednotification.form.php +++ b/front/queuednotification.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/queuedwebhook.form.php b/front/queuedwebhook.form.php index 39e295ccf2f..ffec17a84cf 100644 --- a/front/queuedwebhook.form.php +++ b/front/queuedwebhook.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/rack.form.php b/front/rack.form.php index de55be3b744..bbeaa8ae0ad 100644 --- a/front/rack.form.php +++ b/front/rack.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkRight("datacenter", READ); diff --git a/front/refusedequipment.form.php b/front/refusedequipment.form.php index 83b18845dc4..6dc27c766c5 100644 --- a/front/refusedequipment.form.php +++ b/front/refusedequipment.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkRight("refusedequipment", READ); diff --git a/front/reminder.form.php b/front/reminder.form.php index 842c6a04676..b60f3ea1eac 100644 --- a/front/reminder.form.php +++ b/front/reminder.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; if (!isset($_GET["id"])) { diff --git a/front/remindertranslation.form.php b/front/remindertranslation.form.php index 17a7f16eeb3..6406611000d 100644 --- a/front/remindertranslation.form.php +++ b/front/remindertranslation.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 9.5 */ diff --git a/front/report.contract.php b/front/report.contract.php index e1ee4961de5..97bf0b2f6e6 100644 --- a/front/report.contract.php +++ b/front/report.contract.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkRight("reports", READ); Html::header(Report::getTypeName(Session::getPluralNumber()), '', "tools", "report"); diff --git a/front/report.default.php b/front/report.default.php index d2e349abd67..d04d5835611 100644 --- a/front/report.default.php +++ b/front/report.default.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkRight("reports", READ); Html::header(Report::getTypeName(Session::getPluralNumber()), '', "tools", "report"); diff --git a/front/report.dynamic.php b/front/report.dynamic.php index 6161ce393b1..b684d26f1d7 100644 --- a/front/report.dynamic.php +++ b/front/report.dynamic.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\AccessDeniedHttpException; if (!isset($_GET['item_type']) || !is_string($_GET['item_type']) || !is_a($_GET['item_type'], CommonGLPI::class, true)) { diff --git a/front/report.infocom.conso.php b/front/report.infocom.conso.php index 8e4ecd2aca8..c80221b8b78 100644 --- a/front/report.infocom.conso.php +++ b/front/report.infocom.conso.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkRight("reports", READ); Html::header(Report::getTypeName(Session::getPluralNumber()), '', "tools", "report"); diff --git a/front/report.infocom.php b/front/report.infocom.php index 0339e885a03..0d93ae5023b 100644 --- a/front/report.infocom.php +++ b/front/report.infocom.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkRight(Report::$rightname, READ); Session::checkRight(Infocom::$rightname, READ); diff --git a/front/report.networking.php b/front/report.networking.php index f00c62d9190..96ac6b6f908 100644 --- a/front/report.networking.php +++ b/front/report.networking.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkRight("reports", READ); Html::header(Report::getTypeName(Session::getPluralNumber()), '', "tools", "report"); diff --git a/front/report.php b/front/report.php index 6ef0befca06..8724dbb3f06 100644 --- a/front/report.php +++ b/front/report.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkRight("reports", READ); Html::header(Report::getTypeName(Session::getPluralNumber()), '', "tools", "report"); diff --git a/front/report.reservation.php b/front/report.reservation.php index 7e7802b45bc..5e981168423 100644 --- a/front/report.reservation.php +++ b/front/report.reservation.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkRight("reports", READ); Html::header(Report::getTypeName(Session::getPluralNumber()), '', "tools", "report"); diff --git a/front/report.state.php b/front/report.state.php index 63cef6f4f30..e623172aa69 100644 --- a/front/report.state.php +++ b/front/report.state.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.84 */ diff --git a/front/report.year.php b/front/report.year.php index 56110c1ce64..57765b030c9 100644 --- a/front/report.year.php +++ b/front/report.year.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkRight("reports", READ); Html::header(Report::getTypeName(Session::getPluralNumber()), '', "tools", "report"); diff --git a/front/reservation.form.php b/front/reservation.form.php index e33b304fbd7..278bdd285ab 100644 --- a/front/reservation.form.php +++ b/front/reservation.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; /** diff --git a/front/reservation.php b/front/reservation.php index 1effac7933f..96fa9b9142b 100644 --- a/front/reservation.php +++ b/front/reservation.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + if (!isset($_GET["reservationitems_id"])) { $_GET["reservationitems_id"] = 0; } diff --git a/front/reservationitem.form.php b/front/reservationitem.form.php index eadf7386523..86879b0f0d9 100644 --- a/front/reservationitem.form.php +++ b/front/reservationitem.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkCentralAccess(); diff --git a/front/reservationitem.php b/front/reservationitem.php index 651f60ca473..9e071955b2e 100644 --- a/front/reservationitem.php +++ b/front/reservationitem.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkRightsOr('reservation', [READ, ReservationItem::RESERVEANITEM]); if (Session::getCurrentInterface() == "helpdesk") { diff --git a/front/rssfeed.form.php b/front/rssfeed.form.php index ceb2bce6707..a14f369fae2 100644 --- a/front/rssfeed.form.php +++ b/front/rssfeed.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.84 */ diff --git a/front/rule.backup.php b/front/rule.backup.php index 833c70362c8..f83c52ccdfa 100644 --- a/front/rule.backup.php +++ b/front/rule.backup.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/rule.common.form.php b/front/rule.common.form.php index 6f9e7e46b79..ea38eac5ed9 100644 --- a/front/rule.common.form.php +++ b/front/rule.common.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * Following variables have to be defined before inclusion of this file: * @var RuleCollection $rulecollection diff --git a/front/rule.common.php b/front/rule.common.php index bdd8d3262c7..fe70579bf75 100644 --- a/front/rule.common.php +++ b/front/rule.common.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * Following variables have to be defined before inclusion of this file: * @var RuleCollection $rulecollection diff --git a/front/rule.generic.form.php b/front/rule.generic.form.php index 127c582520b..4b2b572cf4d 100644 --- a/front/rule.generic.form.php +++ b/front/rule.generic.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkCentralAccess(); if (isset($_GET["id"])) { diff --git a/front/rule.php b/front/rule.php index f5a7fa43fad..e6aeb0d1f0b 100644 --- a/front/rule.php +++ b/front/rule.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Application\View\TemplateRenderer; Session::checkCentralAccess(); diff --git a/front/rule.test.php b/front/rule.test.php index e58d02b50ab..1d180350416 100644 --- a/front/rule.test.php +++ b/front/rule.test.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\BadRequestHttpException; Session::checkCentralAccess(); diff --git a/front/ruleaction.form.php b/front/ruleaction.form.php index b61695714fb..fa2921dec48 100644 --- a/front/ruleaction.form.php +++ b/front/ruleaction.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/ruleasset.form.php b/front/ruleasset.form.php index 2abac25927e..785d464fd33 100644 --- a/front/ruleasset.form.php +++ b/front/ruleasset.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleAssetCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruleasset.php b/front/ruleasset.php index f961dbf8a79..31eb7f97835 100644 --- a/front/ruleasset.php +++ b/front/ruleasset.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleAssetCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/rulechange.form.php b/front/rulechange.form.php index 47eeba63f9f..d7c8a93f086 100644 --- a/front/rulechange.form.php +++ b/front/rulechange.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleChangeCollection($_SESSION['glpiactive_entity']); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/rulechange.php b/front/rulechange.php index 0a4ff8d92ab..ad6e78513d3 100644 --- a/front/rulechange.php +++ b/front/rulechange.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleChangeCollection($_SESSION['glpiactive_entity']); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/rulecriteria.form.php b/front/rulecriteria.form.php index c40793cd4cc..2089dded342 100644 --- a/front/rulecriteria.form.php +++ b/front/rulecriteria.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/ruledefineitemtype.form.php b/front/ruledefineitemtype.form.php index 5704955f5b1..ed22a8516f6 100644 --- a/front/ruledefineitemtype.form.php +++ b/front/ruledefineitemtype.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDefineItemtypeCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledefineitemtype.php b/front/ruledefineitemtype.php index 3a690efc737..23cd953aa87 100644 --- a/front/ruledefineitemtype.php +++ b/front/ruledefineitemtype.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDefineItemtypeCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnarycomputermodel.form.php b/front/ruledictionnarycomputermodel.form.php index 203f493064c..2ba0384ccbc 100644 --- a/front/ruledictionnarycomputermodel.form.php +++ b/front/ruledictionnarycomputermodel.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryComputerModelCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnarycomputermodel.php b/front/ruledictionnarycomputermodel.php index eebe0224a42..736a2fe04f1 100644 --- a/front/ruledictionnarycomputermodel.php +++ b/front/ruledictionnarycomputermodel.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryComputerModelCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnarycomputertype.form.php b/front/ruledictionnarycomputertype.form.php index 9ed7f8cff21..3d078b263b8 100644 --- a/front/ruledictionnarycomputertype.form.php +++ b/front/ruledictionnarycomputertype.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryComputerTypeCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnarycomputertype.php b/front/ruledictionnarycomputertype.php index 9ce5403d4bf..2808d6828d4 100644 --- a/front/ruledictionnarycomputertype.php +++ b/front/ruledictionnarycomputertype.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryComputerTypeCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnarymanufacturer.form.php b/front/ruledictionnarymanufacturer.form.php index bda407fe04c..1dfe01574a4 100644 --- a/front/ruledictionnarymanufacturer.form.php +++ b/front/ruledictionnarymanufacturer.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryManufacturerCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnarymanufacturer.php b/front/ruledictionnarymanufacturer.php index d7c5c6d85be..bc0d6a545c7 100644 --- a/front/ruledictionnarymanufacturer.php +++ b/front/ruledictionnarymanufacturer.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryManufacturerCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnarymonitormodel.form.php b/front/ruledictionnarymonitormodel.form.php index ef24712a1fa..afecba7db1a 100644 --- a/front/ruledictionnarymonitormodel.form.php +++ b/front/ruledictionnarymonitormodel.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryMonitorModelCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnarymonitormodel.php b/front/ruledictionnarymonitormodel.php index 42ffab49fad..98aa042bbdf 100644 --- a/front/ruledictionnarymonitormodel.php +++ b/front/ruledictionnarymonitormodel.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryMonitorModelCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnarymonitortype.form.php b/front/ruledictionnarymonitortype.form.php index 187537e0a0a..f299a28183d 100644 --- a/front/ruledictionnarymonitortype.form.php +++ b/front/ruledictionnarymonitortype.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryMonitorTypeCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnarymonitortype.php b/front/ruledictionnarymonitortype.php index 673a17cd510..fafd0248fb8 100644 --- a/front/ruledictionnarymonitortype.php +++ b/front/ruledictionnarymonitortype.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryMonitorTypeCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnarynetworkequipmentmodel.form.php b/front/ruledictionnarynetworkequipmentmodel.form.php index 1ffb29d1ac5..0fb975827b4 100644 --- a/front/ruledictionnarynetworkequipmentmodel.form.php +++ b/front/ruledictionnarynetworkequipmentmodel.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryNetworkEquipmentModelCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnarynetworkequipmentmodel.php b/front/ruledictionnarynetworkequipmentmodel.php index b1b9e6727a3..d6374ae490d 100644 --- a/front/ruledictionnarynetworkequipmentmodel.php +++ b/front/ruledictionnarynetworkequipmentmodel.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryNetworkEquipmentModelCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnarynetworkequipmenttype.form.php b/front/ruledictionnarynetworkequipmenttype.form.php index 05200168981..ecbf0409854 100644 --- a/front/ruledictionnarynetworkequipmenttype.form.php +++ b/front/ruledictionnarynetworkequipmenttype.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryNetworkEquipmentTypeCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnarynetworkequipmenttype.php b/front/ruledictionnarynetworkequipmenttype.php index fdf8a45bb7e..7b3b279e63e 100644 --- a/front/ruledictionnarynetworkequipmenttype.php +++ b/front/ruledictionnarynetworkequipmenttype.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryNetworkEquipmentTypeCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnaryoperatingsystem.form.php b/front/ruledictionnaryoperatingsystem.form.php index daddc5594c0..01ec54470a8 100644 --- a/front/ruledictionnaryoperatingsystem.form.php +++ b/front/ruledictionnaryoperatingsystem.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryOperatingSystemCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnaryoperatingsystem.php b/front/ruledictionnaryoperatingsystem.php index 566466cce55..9d678d49091 100644 --- a/front/ruledictionnaryoperatingsystem.php +++ b/front/ruledictionnaryoperatingsystem.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryOperatingSystemCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnaryoperatingsystemarchitecture.form.php b/front/ruledictionnaryoperatingsystemarchitecture.form.php index 820703a9de6..63370189658 100644 --- a/front/ruledictionnaryoperatingsystemarchitecture.form.php +++ b/front/ruledictionnaryoperatingsystemarchitecture.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryOperatingSystemArchitectureCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnaryoperatingsystemarchitecture.php b/front/ruledictionnaryoperatingsystemarchitecture.php index 3d4382f11aa..eb2849abe1e 100644 --- a/front/ruledictionnaryoperatingsystemarchitecture.php +++ b/front/ruledictionnaryoperatingsystemarchitecture.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryOperatingSystemArchitectureCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnaryoperatingsystemedition.form.php b/front/ruledictionnaryoperatingsystemedition.form.php index 0a414078389..6935fd3b132 100644 --- a/front/ruledictionnaryoperatingsystemedition.form.php +++ b/front/ruledictionnaryoperatingsystemedition.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryOperatingSystemEditionCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnaryoperatingsystemedition.php b/front/ruledictionnaryoperatingsystemedition.php index 46ed1163d2c..11460b1877c 100644 --- a/front/ruledictionnaryoperatingsystemedition.php +++ b/front/ruledictionnaryoperatingsystemedition.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryOperatingSystemEditionCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnaryoperatingsystemservicepack.form.php b/front/ruledictionnaryoperatingsystemservicepack.form.php index c40fae5c204..ec80517406b 100644 --- a/front/ruledictionnaryoperatingsystemservicepack.form.php +++ b/front/ruledictionnaryoperatingsystemservicepack.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryOperatingSystemServicePackCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnaryoperatingsystemservicepack.php b/front/ruledictionnaryoperatingsystemservicepack.php index 6cb10a67d38..f6a6375fb34 100644 --- a/front/ruledictionnaryoperatingsystemservicepack.php +++ b/front/ruledictionnaryoperatingsystemservicepack.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryOperatingSystemServicePackCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnaryoperatingsystemversion.form.php b/front/ruledictionnaryoperatingsystemversion.form.php index e1f59c86dad..e44e9d2f296 100644 --- a/front/ruledictionnaryoperatingsystemversion.form.php +++ b/front/ruledictionnaryoperatingsystemversion.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryOperatingSystemVersionCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnaryoperatingsystemversion.php b/front/ruledictionnaryoperatingsystemversion.php index 61c2e71116c..fd8eecf867d 100644 --- a/front/ruledictionnaryoperatingsystemversion.php +++ b/front/ruledictionnaryoperatingsystemversion.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryOperatingSystemVersionCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnaryperipheralmodel.form.php b/front/ruledictionnaryperipheralmodel.form.php index 8b04f5def73..abd2025c46e 100644 --- a/front/ruledictionnaryperipheralmodel.form.php +++ b/front/ruledictionnaryperipheralmodel.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryPeripheralModelCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnaryperipheralmodel.php b/front/ruledictionnaryperipheralmodel.php index 5d7ee45ac4d..f62b949eaa3 100644 --- a/front/ruledictionnaryperipheralmodel.php +++ b/front/ruledictionnaryperipheralmodel.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryPeripheralModelCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnaryperipheraltype.form.php b/front/ruledictionnaryperipheraltype.form.php index faf1f71c4f8..9d8183f7e9b 100644 --- a/front/ruledictionnaryperipheraltype.form.php +++ b/front/ruledictionnaryperipheraltype.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryPeripheralTypeCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnaryperipheraltype.php b/front/ruledictionnaryperipheraltype.php index f5dd8b527af..c8ac78183b5 100644 --- a/front/ruledictionnaryperipheraltype.php +++ b/front/ruledictionnaryperipheraltype.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryPeripheralTypeCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnaryphonemodel.form.php b/front/ruledictionnaryphonemodel.form.php index f1eab6b13b1..cea8fbdc774 100644 --- a/front/ruledictionnaryphonemodel.form.php +++ b/front/ruledictionnaryphonemodel.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryPhoneModelCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnaryphonemodel.php b/front/ruledictionnaryphonemodel.php index 794a32cba78..feea675f507 100644 --- a/front/ruledictionnaryphonemodel.php +++ b/front/ruledictionnaryphonemodel.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryPhoneModelCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnaryphonetype.form.php b/front/ruledictionnaryphonetype.form.php index bc2b8e87213..bf82faffbda 100644 --- a/front/ruledictionnaryphonetype.form.php +++ b/front/ruledictionnaryphonetype.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryPhoneTypeCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnaryphonetype.php b/front/ruledictionnaryphonetype.php index a345918e92f..39f8d4aaae0 100644 --- a/front/ruledictionnaryphonetype.php +++ b/front/ruledictionnaryphonetype.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryPhoneTypeCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnaryprinter.form.php b/front/ruledictionnaryprinter.form.php index 460217c6049..086a8a16c8c 100644 --- a/front/ruledictionnaryprinter.form.php +++ b/front/ruledictionnaryprinter.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryPrinterCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnaryprinter.php b/front/ruledictionnaryprinter.php index fe08144960e..f48474f942e 100644 --- a/front/ruledictionnaryprinter.php +++ b/front/ruledictionnaryprinter.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryPrinterCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnaryprintermodel.form.php b/front/ruledictionnaryprintermodel.form.php index 4eaf53652f6..797b8f763b7 100644 --- a/front/ruledictionnaryprintermodel.form.php +++ b/front/ruledictionnaryprintermodel.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryPrinterModelCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnaryprintermodel.php b/front/ruledictionnaryprintermodel.php index 0d0ebb9ca14..7526c59a821 100644 --- a/front/ruledictionnaryprintermodel.php +++ b/front/ruledictionnaryprintermodel.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryPrinterModelCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnaryprintertype.form.php b/front/ruledictionnaryprintertype.form.php index d76836899de..7d72ba9655e 100644 --- a/front/ruledictionnaryprintertype.form.php +++ b/front/ruledictionnaryprintertype.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryPrinterTypeCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnaryprintertype.php b/front/ruledictionnaryprintertype.php index ad0a8632ce5..3d4640bd40e 100644 --- a/front/ruledictionnaryprintertype.php +++ b/front/ruledictionnaryprintertype.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnaryPrinterTypeCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruledictionnarysoftware.form.php b/front/ruledictionnarysoftware.form.php index d400bea273e..a327c3abdae 100644 --- a/front/ruledictionnarysoftware.form.php +++ b/front/ruledictionnarysoftware.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnarySoftwareCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruledictionnarysoftware.php b/front/ruledictionnarysoftware.php index 95c2989e852..63d63b155be 100644 --- a/front/ruledictionnarysoftware.php +++ b/front/ruledictionnarysoftware.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleDictionnarySoftwareCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruleimportasset.form.php b/front/ruleimportasset.form.php index 8938524cab9..4987fc15cae 100644 --- a/front/ruleimportasset.form.php +++ b/front/ruleimportasset.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleImportAssetCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruleimportasset.php b/front/ruleimportasset.php index 715ce873739..97313233c69 100644 --- a/front/ruleimportasset.php +++ b/front/ruleimportasset.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleImportAssetCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruleimportentity.form.php b/front/ruleimportentity.form.php index 5b2140531a7..37745d46bec 100644 --- a/front/ruleimportentity.form.php +++ b/front/ruleimportentity.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleImportEntityCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruleimportentity.php b/front/ruleimportentity.php index 59428b17a34..b7335768981 100644 --- a/front/ruleimportentity.php +++ b/front/ruleimportentity.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleImportEntityCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/rulelocation.form.php b/front/rulelocation.form.php index 36146e70e71..a7c661e131d 100644 --- a/front/rulelocation.form.php +++ b/front/rulelocation.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleLocationCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/rulelocation.php b/front/rulelocation.php index 12f16054130..12512538add 100644 --- a/front/rulelocation.php +++ b/front/rulelocation.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleLocationCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/rulemailcollector.form.php b/front/rulemailcollector.form.php index 9010b223ef8..c08185e47e7 100644 --- a/front/rulemailcollector.form.php +++ b/front/rulemailcollector.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleMailCollectorCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/rulemailcollector.php b/front/rulemailcollector.php index a2d6545bab1..f5b9110e837 100644 --- a/front/rulemailcollector.php +++ b/front/rulemailcollector.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleMailCollectorCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruleproblem.form.php b/front/ruleproblem.form.php index 3487826fe6d..8241f53342b 100644 --- a/front/ruleproblem.form.php +++ b/front/ruleproblem.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleProblemCollection($_SESSION['glpiactive_entity']); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruleproblem.php b/front/ruleproblem.php index 7a94cf88f97..82ec5d72848 100644 --- a/front/ruleproblem.php +++ b/front/ruleproblem.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleProblemCollection($_SESSION['glpiactive_entity']); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruleright.form.php b/front/ruleright.form.php index 29906d430f0..36655246d73 100644 --- a/front/ruleright.form.php +++ b/front/ruleright.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleRightCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruleright.php b/front/ruleright.php index 23619538be9..cfdfc40c976 100644 --- a/front/ruleright.php +++ b/front/ruleright.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleRightCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/rulesengine.test.php b/front/rulesengine.test.php index caa5bdf113e..8df28c700d3 100644 --- a/front/rulesengine.test.php +++ b/front/rulesengine.test.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkCentralAccess(); if (isset($_POST["sub_type"])) { diff --git a/front/rulesoftwarecategory.form.php b/front/rulesoftwarecategory.form.php index 9614ee405f6..1ed3e7243ed 100644 --- a/front/rulesoftwarecategory.form.php +++ b/front/rulesoftwarecategory.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleSoftwareCategoryCollection(); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/rulesoftwarecategory.php b/front/rulesoftwarecategory.php index 87408a3b9f1..2a2bc26be4b 100644 --- a/front/rulesoftwarecategory.php +++ b/front/rulesoftwarecategory.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleSoftwareCategoryCollection(); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/ruleticket.form.php b/front/ruleticket.form.php index fe33299d15a..d9afa6d22a5 100644 --- a/front/ruleticket.form.php +++ b/front/ruleticket.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleTicketCollection($_SESSION['glpiactive_entity']); include(GLPI_ROOT . "/front/rule.common.form.php"); diff --git a/front/ruleticket.php b/front/ruleticket.php index 37951df1d8b..37d7c34d255 100644 --- a/front/ruleticket.php +++ b/front/ruleticket.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $rulecollection = new RuleTicketCollection($_SESSION['glpiactive_entity']); include(GLPI_ROOT . "/front/rule.common.php"); diff --git a/front/savedsearch.php b/front/savedsearch.php index 6cac622a7c4..72971a51082 100644 --- a/front/savedsearch.php +++ b/front/savedsearch.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + if (Session::getCurrentInterface() == "helpdesk") { Html::helpHeader(SavedSearch::getTypeName(Session::getPluralNumber())); } else { diff --git a/front/savedsearch_alert.form.php b/front/savedsearch_alert.form.php index e39b40b7d63..666744db110 100644 --- a/front/savedsearch_alert.form.php +++ b/front/savedsearch_alert.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkCentralAccess(); diff --git a/front/search.php b/front/search.php index ed6c322c702..0040b641b36 100644 --- a/front/search.php +++ b/front/search.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\AccessDeniedHttpException; /** @var array $CFG_GLPI */ diff --git a/front/setup.auth.php b/front/setup.auth.php index f81bb47759d..481e53864db 100644 --- a/front/setup.auth.php +++ b/front/setup.auth.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Application\View\TemplateRenderer; Session::checkRight("config", READ); diff --git a/front/setup.notification.php b/front/setup.notification.php index 79e1ae1c8aa..affb75d5827 100644 --- a/front/setup.notification.php +++ b/front/setup.notification.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** @var array $CFG_GLPI */ global $CFG_GLPI; diff --git a/front/setup.templates.php b/front/setup.templates.php index e99f764ae84..a39c6cacf97 100644 --- a/front/setup.templates.php +++ b/front/setup.templates.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Session::checkCentralAccess(); if (isset($_GET["itemtype"])) { diff --git a/front/slalevel.form.php b/front/slalevel.form.php index 9f4890c85c5..13b1f06f2a0 100644 --- a/front/slalevel.form.php +++ b/front/slalevel.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; $item = new SlaLevel(); diff --git a/front/slalevelaction.form.php b/front/slalevelaction.form.php index 637e7051c14..5e9525041ca 100644 --- a/front/slalevelaction.form.php +++ b/front/slalevelaction.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/slalevelcriteria.form.php b/front/slalevelcriteria.form.php index 7045e65e8f9..eb180c16462 100644 --- a/front/slalevelcriteria.form.php +++ b/front/slalevelcriteria.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + /** * @since 0.85 */ diff --git a/front/smtp_oauth2_callback.php b/front/smtp_oauth2_callback.php index 997fa7b04d7..e59c2de1e0e 100644 --- a/front/smtp_oauth2_callback.php +++ b/front/smtp_oauth2_callback.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Mail\SMTP\OauthConfig; /** @var array $CFG_GLPI */ diff --git a/front/snmpcredential.form.php b/front/snmpcredential.form.php index e41be7a79c0..c0e0bbca3f5 100644 --- a/front/snmpcredential.form.php +++ b/front/snmpcredential.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkRight("snmpcredential", READ); diff --git a/front/socket.form.php b/front/socket.form.php index e1705da6375..8a3218addc6 100644 --- a/front/socket.form.php +++ b/front/socket.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Socket; diff --git a/front/softwarelicense.form.php b/front/softwarelicense.form.php index 38c00a8654d..1237a906512 100644 --- a/front/softwarelicense.form.php +++ b/front/softwarelicense.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkRight("license", READ); diff --git a/front/softwareversion.form.php b/front/softwareversion.form.php index b3e86078e35..7b9cd08e4d1 100644 --- a/front/softwareversion.form.php +++ b/front/softwareversion.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; Session::checkRight("software", READ); diff --git a/front/stat.global.php b/front/stat.global.php index f1b643dc9c6..b233bc04ba5 100644 --- a/front/stat.global.php +++ b/front/stat.global.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\BadRequestHttpException; use Glpi\Stat\Data\Sglobal\StatDataAverageSatisfaction; use Glpi\Stat\Data\Sglobal\StatDataSatisfaction; diff --git a/front/stat.graph.php b/front/stat.graph.php index 913316ebe24..8204a6e5dea 100644 --- a/front/stat.graph.php +++ b/front/stat.graph.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Application\View\TemplateRenderer; use Glpi\Exception\Http\BadRequestHttpException; use Glpi\Stat\Data\Graph\StatDataSatisfaction; diff --git a/front/stat.item.php b/front/stat.item.php index 0b6a03ceeb7..c83e7c8af71 100644 --- a/front/stat.item.php +++ b/front/stat.item.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Application\View\TemplateRenderer; Html::header(__('Statistics'), '', "helpdesk", "stat"); diff --git a/front/stat.location.php b/front/stat.location.php index 86821dd2eb7..4b66c68b27c 100644 --- a/front/stat.location.php +++ b/front/stat.location.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Application\View\TemplateRenderer; use Glpi\Stat\Data\Location\StatDataClosed; use Glpi\Stat\Data\Location\StatDataLate; diff --git a/front/stat.php b/front/stat.php index ed74bd4f2d3..23d3a07d19c 100644 --- a/front/stat.php +++ b/front/stat.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + Html::header(__('Statistics'), '', "helpdesk", "stat"); Session::checkRight("statistic", READ); diff --git a/front/stat.tracking.php b/front/stat.tracking.php index ebcf308d121..36bc9c5f0c6 100644 --- a/front/stat.tracking.php +++ b/front/stat.tracking.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Application\View\TemplateRenderer; use Glpi\Exception\Http\BadRequestHttpException; use Glpi\Stat\Data\Location\StatDataClosed; diff --git a/front/stencil.form.php b/front/stencil.form.php index ed360aa5aca..99cbaf89692 100644 --- a/front/stencil.form.php +++ b/front/stencil.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\AccessDeniedHttpException; use Glpi\Exception\Http\NotFoundHttpException; diff --git a/front/supplier_ticket.form.php b/front/supplier_ticket.form.php index 27536d927b7..15371de9082 100644 --- a/front/supplier_ticket.form.php +++ b/front/supplier_ticket.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/ticket.form.php b/front/ticket.form.php index e81220822c5..36acc1d5843 100644 --- a/front/ticket.form.php +++ b/front/ticket.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\AccessDeniedHttpException; diff --git a/front/ticket.php b/front/ticket.php index fba96cf1391..1588d6a6581 100644 --- a/front/ticket.php +++ b/front/ticket.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + if (Session::getCurrentInterface() == "helpdesk") { Html::helpHeader(Ticket::getTypeName(Session::getPluralNumber()), 'tickets', 'ticket'); } else { diff --git a/front/ticket_contract.form.php b/front/ticket_contract.form.php index dbf5b5e83c0..ce4c794f4fe 100644 --- a/front/ticket_contract.form.php +++ b/front/ticket_contract.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\BadRequestHttpException; $item = new Ticket_Contract(); diff --git a/front/ticket_ticket.form.php b/front/ticket_ticket.form.php index ae8cbe54a15..051b9cf1287 100644 --- a/front/ticket_ticket.form.php +++ b/front/ticket_ticket.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/ticket_user.form.php b/front/ticket_user.form.php index 13279858058..6531d407570 100644 --- a/front/ticket_user.form.php +++ b/front/ticket_user.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/ticketcost.form.php b/front/ticketcost.form.php index 532d8d2a25b..b653b211a26 100644 --- a/front/ticketcost.form.php +++ b/front/ticketcost.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/ticketsatisfaction.form.php b/front/ticketsatisfaction.form.php index bc5cd25cd98..0d0213625aa 100644 --- a/front/ticketsatisfaction.form.php +++ b/front/ticketsatisfaction.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\BadRequestHttpException; diff --git a/front/tickettask.form.php b/front/tickettask.form.php index 523db59128d..f63d81e7e0c 100644 --- a/front/tickettask.form.php +++ b/front/tickettask.form.php @@ -33,5 +33,7 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $task = new TicketTask(); include(GLPI_ROOT . "/front/commonitiltask.form.php"); diff --git a/front/tickettemplatehiddenfield.form.php b/front/tickettemplatehiddenfield.form.php index b264ca01a5c..95cde4c9cdb 100644 --- a/front/tickettemplatehiddenfield.form.php +++ b/front/tickettemplatehiddenfield.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $itiltype = 'Ticket'; $fieldtype = 'Hidden'; include __DIR__ . '/itiltemplatefield.form.php'; diff --git a/front/tickettemplatemandatoryfield.form.php b/front/tickettemplatemandatoryfield.form.php index 275033a2cd2..36923f7b301 100644 --- a/front/tickettemplatemandatoryfield.form.php +++ b/front/tickettemplatemandatoryfield.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $itiltype = 'Ticket'; $fieldtype = 'Mandatory'; include __DIR__ . '/itiltemplatefield.form.php'; diff --git a/front/tickettemplatepredefinedfield.form.php b/front/tickettemplatepredefinedfield.form.php index ce35c6e7634..2f85712772c 100644 --- a/front/tickettemplatepredefinedfield.form.php +++ b/front/tickettemplatepredefinedfield.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $itiltype = 'Ticket'; $fieldtype = 'Predefined'; diff --git a/front/tickettemplatereadonlyfield.form.php b/front/tickettemplatereadonlyfield.form.php index c5289c0ffc1..3fa6acffd1c 100644 --- a/front/tickettemplatereadonlyfield.form.php +++ b/front/tickettemplatereadonlyfield.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $itiltype = 'Ticket'; $fieldtype = 'Readonly'; include __DIR__ . '/itiltemplatefield.form.php'; diff --git a/front/ticketvalidation.form.php b/front/ticketvalidation.form.php index 1c2d9250cb7..35665423eb8 100644 --- a/front/ticketvalidation.form.php +++ b/front/ticketvalidation.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + $validation = new TicketValidation(); include(GLPI_ROOT . "/front/commonitilvalidation.form.php"); diff --git a/front/transfer.action.php b/front/transfer.action.php index 0f5a85e02cc..e62e5c31f79 100644 --- a/front/transfer.action.php +++ b/front/transfer.action.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\AccessDeniedHttpException; Html::header(__('Transfer'), '', 'admin', 'rule', 'Transfer'); diff --git a/front/updatepassword.php b/front/updatepassword.php index bca97599f4f..c4a6a86ee9e 100644 --- a/front/updatepassword.php +++ b/front/updatepassword.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Exception\Http\AccessDeniedHttpException; // Cannot use `Session::checkLoginUser()` as it block users that have their password expired to be able to change it. diff --git a/front/user.form.php b/front/user.form.php index 269dae728fa..aa35a61356f 100644 --- a/front/user.form.php +++ b/front/user.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + use Glpi\Event; use Glpi\Exception\Http\NotFoundHttpException; diff --git a/front/validatorsubstitute.form.php b/front/validatorsubstitute.form.php index 9b0e22fb75a..238ae71c9a8 100644 --- a/front/validatorsubstitute.form.php +++ b/front/validatorsubstitute.form.php @@ -33,6 +33,8 @@ * --------------------------------------------------------------------- */ +require_once(__DIR__ . '/_check_webserver_config.php'); + if (isset($_POST['update'])) { $validator_substitute = new ValidatorSubstitute(); $validator_substitute->check(-1, UPDATE, $_POST);