-
Notifications
You must be signed in to change notification settings - Fork 0
/
monolithimport_plugin_class.php
84 lines (71 loc) · 2.46 KB
/
monolithimport_plugin_class.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
/* Project: EQdkp-Plus
* Package: monolithimport Plugin
* Link: http://eqdkp-plus.eu
*
* Copyright (C) 2006-2015 EQdkp-Plus Developer Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
if ( !defined('EQDKP_INC') ) {
die('You cannot access this file directly.');
}
class monolithimport extends plugin_generic {
public $vstatus = 'Stable';
public $version = '1.0.1';
protected static $apiLevel = 23;
public function __construct() {
parent::__construct();
$this->add_dependency(array(
'plus_version' => '2.3',
'games' => array('wow', 'wowclassic')
));
$this->add_data(array(
'name' => 'MonolithDKP-Import',
'code' => 'monolithimport',
'path' => 'monolithimport',
'contact' => 'https://eqdkp-plus.eu',
'template_path' => 'plugins/monolithimport/templates/',
'version' => $this->version,
'author' => 'GodMod',
'description' => $this->user->lang('monolithimport_short_desc'),
'long_description' => $this->user->lang('monolithimport_long_desc'),
'homepage' => EQDKP_PROJECT_URL,
'manuallink' => 'https://wiki.eqdkp-plus.eu/',
'icon' => 'fa-list-alt',
)
);
//permissions
$this->add_permission('a', 'import', 'N', $this->user->lang('monolithimport_import'), array(2,3));
//menu
$this->add_menu('admin', $this->gen_admin_menu());
}
public function pre_install() {
//initialize config
$this->config->set('last_lootimport', 0, 'monolithimport');
$this->config->set('last_dkpimport', 0, 'monolithimport');
}
public function gen_admin_menu() {
return array(array(
'icon' => 'fa-list-alt',
'name' => $this->user->lang('monolithimport'),
1 => array(
'link' => 'plugins/' . $this->code . '/admin/import.php'.$this->SID,
'text' => $this->user->lang('monolithimport_import'),
'check' => 'a_monolithimport_import',
'icon' => 'fa-upload')
));
}
}
?>