Skip to content

Commit aeb59eb

Browse files
committed
fix: class should not be accessed directly
Signed-off-by: Thierry Bugier <[email protected]>
1 parent 480a8fa commit aeb59eb

4 files changed

+16
-0
lines changed

inc/conditionnableinterface.class.php

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
* ---------------------------------------------------------------------
3030
*/
3131

32+
if (!defined('GLPI_ROOT')) {
33+
die("Sorry. You can't access this file directly");
34+
}
35+
3236
interface PluginFormcreatorConditionnableInterface
3337
{
3438
/**

inc/duplicatableinterface.class.php

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
* ---------------------------------------------------------------------
3030
*/
3131

32+
if (!defined('GLPI_ROOT')) {
33+
die("Sorry. You can't access this file directly");
34+
}
35+
3236
interface PluginFormcreatorDuplicatableInterface
3337
{
3438
/**

inc/questionparameter.class.php

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
* @link http://plugins.glpi-project.org/#/plugin/formcreator
2929
* ---------------------------------------------------------------------
3030
*/
31+
32+
if (!defined('GLPI_ROOT')) {
33+
die("Sorry. You can't access this file directly");
34+
}
35+
3136
abstract class PluginFormcreatorQuestionParameter
3237
extends CommonDBChild
3338
implements PluginFormcreatorQuestionParameterInterface, PluginFormcreatorExportableInterface

inc/questionparameterinterface.class.php

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
* @link http://plugins.glpi-project.org/#/plugin/formcreator
2929
* ---------------------------------------------------------------------
3030
*/
31+
if (!defined('GLPI_ROOT')) {
32+
die("Sorry. You can't access this file directly");
33+
}
3134

3235
interface PluginFormcreatorQuestionParameterInterface {
3336
/**

0 commit comments

Comments
 (0)