Last change
on this file since 27178 was
26099,
checked in by mistic100, 11 years ago
|
typo in smiliessupport and bbcode_bar
|
File size:
850 bytes
|
Line | |
---|
1 | <?php |
---|
2 | defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); |
---|
3 | |
---|
4 | class SmiliesSupport_maintain extends PluginMaintain |
---|
5 | { |
---|
6 | private $installed = false; |
---|
7 | |
---|
8 | private $default_conf = array( |
---|
9 | 'folder' => 'crystal', |
---|
10 | 'cols' => '6', |
---|
11 | 'representant' => 'smile.png', |
---|
12 | ); |
---|
13 | |
---|
14 | function install($plugin_version, &$errors=array()) |
---|
15 | { |
---|
16 | global $conf; |
---|
17 | |
---|
18 | if (!isset($conf['smiliessupport'])) |
---|
19 | { |
---|
20 | $conf['smiliessupport'] = serialize($this->default_conf); |
---|
21 | |
---|
22 | conf_update_param('smiliessupport', $conf['smiliessupport']); |
---|
23 | } |
---|
24 | |
---|
25 | $this->installed = true; |
---|
26 | } |
---|
27 | |
---|
28 | function activate($plugin_version, &$errors=array()) |
---|
29 | { |
---|
30 | if (!$this->installed) |
---|
31 | { |
---|
32 | $this->install($plugin_version, $errors); |
---|
33 | } |
---|
34 | } |
---|
35 | |
---|
36 | function deactivate() |
---|
37 | { |
---|
38 | } |
---|
39 | |
---|
40 | function uninstall() |
---|
41 | { |
---|
42 | conf_delete_param('smiliessupport'); |
---|
43 | } |
---|
44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.