Last change
on this file since 26099 was
26099,
checked in by mistic100, 11 years ago
|
typo in smiliessupport and bbcode_bar
|
File size:
1016 bytes
|
Line | |
---|
1 | <?php |
---|
2 | defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); |
---|
3 | |
---|
4 | class bbcode_bar_maintain extends PluginMaintain |
---|
5 | { |
---|
6 | private $installed = false; |
---|
7 | |
---|
8 | private $default_conf = array( |
---|
9 | 'b' => true, |
---|
10 | 'i' => true, |
---|
11 | 'u' => true, |
---|
12 | 's' => true, |
---|
13 | 'p' => true, |
---|
14 | 'center' => true, |
---|
15 | 'right' => true, |
---|
16 | 'quote' => true, |
---|
17 | 'ul' => true, |
---|
18 | 'ol' => true, |
---|
19 | 'img' => true, |
---|
20 | 'url' => true, |
---|
21 | 'email' => true, |
---|
22 | 'size' => true, |
---|
23 | 'color' => true, |
---|
24 | ); |
---|
25 | |
---|
26 | function install($plugin_version, &$errors=array()) |
---|
27 | { |
---|
28 | global $conf; |
---|
29 | |
---|
30 | if (!isset($conf['bbcode_bar'])) |
---|
31 | { |
---|
32 | $conf['bbcode_bar'] = serialize($this->default_conf); |
---|
33 | |
---|
34 | conf_update_param('bbcode_bar', $conf['bbcode_bar']); |
---|
35 | } |
---|
36 | |
---|
37 | $this->installed = true; |
---|
38 | } |
---|
39 | |
---|
40 | function activate($plugin_version, &$errors=array()) |
---|
41 | { |
---|
42 | if (!$this->installed) |
---|
43 | { |
---|
44 | $this->install($plugin_version, $errors); |
---|
45 | } |
---|
46 | } |
---|
47 | |
---|
48 | function deactivate() |
---|
49 | { |
---|
50 | } |
---|
51 | |
---|
52 | function uninstall() |
---|
53 | { |
---|
54 | conf_delete_param('bbcode_bar'); |
---|
55 | } |
---|
56 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.