-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.php
More file actions
39 lines (27 loc) · 1000 Bytes
/
setup.php
File metadata and controls
39 lines (27 loc) · 1000 Bytes
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
<?php
// Init the hooks of the plugins -Needed
function plugin_init_bonds() {
global $PLUGIN_HOOKS,$CFG_GLPI;
Plugin::registerClass('PluginBondsBond');
if (class_exists('PluginRacksRack'))
Plugin::registerClass('PluginBondsGraph');
$PLUGIN_HOOKS['post_init']['bonds'] = 'plugin_bonds_postinit';
// CSRF compliance : All actions must be done via POST and forms closed by Html::closeForm();
$PLUGIN_HOOKS['csrf_compliant']['bonds'] = true;
}
// Get the name and the version of the plugin - Needed
function plugin_version_bonds() {
return array('name' => 'Bonds',
'version' => '0.1.5',
'author' => 'Vadim Pisarev',
'homepage' => 'http://github.com/po1vo/glpi-bonds/',
'license' => 'GPLv2+',
'minGlpiVersion' => '0.85');
}
function plugin_bonds_check_prerequisites() {
return true;
}
function plugin_bonds_check_config() {
return true;
}
?>