forked from PluginsOCSInventory-NG/officepack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.php
34 lines (26 loc) · 826 Bytes
/
install.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
<?php
function plugin_version_officepack()
{
return array('name' => 'officepack',
'version' => '1.0',
'author'=> 'Gilles Dubois, Nicolas Derouet',
'license' => 'GPLv2',
'verMinOcs' => '2.2');
}
function plugin_init_officepack()
{
$object = new plugins;
$object -> add_cd_entry("officepack","software");
$object -> add_menu ("officepack","14000","officepack","Office Key Management","plugins");
// Officepack table creation
include 'sql/officepack.php';
include 'sql/officepack-guid-fr.php';
}
function plugin_delete_officepack()
{
$object = new plugins;
$object -> del_cd_entry("officepack");
$object -> del_menu ("officepack","14000","Office Key Management","plugins");
$object -> sql_query("DROP TABLE IF EXISTS `officepack_sku` , `officepack_lang` , `officepack_type` , `officepack_version` , `officepack`;");
}
?>