forked from stdonato/glpi-modifications
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.php
executable file
·42 lines (29 loc) · 919 Bytes
/
setup.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
function plugin_init_mod() {
global $PLUGIN_HOOKS, $LANG ;
$PLUGIN_HOOKS['csrf_compliant']['mod'] = true;
$PLUGIN_HOOKS['config_page']['mod'] = 'config.php';
}
function plugin_version_mod(){
global $DB, $LANG;
return array('name' => __('GLPI Modifications'),
'version' => '1.0.4',
'author' => '<a href="mailto:[email protected]"> Stevenes Donato </b> </a>',
'license' => 'GPLv2+',
'homepage' => 'https://forge.glpi-project.org/projects/mod',
'minGlpiVersion' => '9.1.2');
}
function plugin_mod_check_prerequisites(){
if (GLPI_VERSION == '9.1.2'){
return true;
} else {
echo "GLPI version not compatible need 9.1.2";
}
}
function plugin_mod_check_config($verbose=false){
if ($verbose) {
echo 'Installed / not configured';
}
return true;
}
?>