forked from cconard96/glpi-cve-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.php
56 lines (52 loc) · 1.91 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/*
-------------------------------------------------------------------------
CVE
Copyright (C) 2020-2021 by Curtis Conard
https://github.com/cconard96/glpi-cve-plugin
-------------------------------------------------------------------------
LICENSE
This file is part of CVE.
CVE is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
CVE is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with CVE. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
define('PLUGIN_CVE_VERSION', '1.0.0');
define('PLUGIN_CVE_MIN_GLPI', '10.0.11');
define('PLUGIN_CVE_MAX_GLPI', '10.0.99');
function plugin_init_cve()
{
global $PLUGIN_HOOKS;
$PLUGIN_HOOKS['csrf_compliant']['cve'] = true;
$PLUGIN_HOOKS['menu_toadd']['cve'] = ['plugins' => PluginCveCve::class];
Plugin::registerClass(PluginCveConfig::class, ['addtabon' => Config::class]);
Plugin::registerClass(PluginCveCve::class, ['addtabon' => [
Software::class,
SoftwareVersion::class
]]);
$PLUGIN_HOOKS['dashboard_cards']['cve'] = 'plugin_cve_dashboardCards';
}
function plugin_version_cve()
{
return [
'name' => __('CVE', 'cve'),
'version' => PLUGIN_CVE_VERSION,
'author' => 'Curtis Conard',
'license' => 'GPLv2+',
'homepage' =>'https://github.com/cconard96/glpi-cve-plugin',
'requirements' => [
'glpi' => [
'min' => PLUGIN_CVE_MIN_GLPI,
'max' => PLUGIN_CVE_MAX_GLPI
]
]
];
}