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
|
Rev | Line | |
---|
[3305] | 1 | <?php |
---|
[26076] | 2 | defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); |
---|
[3305] | 3 | |
---|
[26076] | 4 | class bbcode_bar_maintain extends PluginMaintain |
---|
| 5 | { |
---|
| 6 | private $installed = false; |
---|
[10983] | 7 | |
---|
[26076] | 8 | private $default_conf = array( |
---|
[10983] | 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, |
---|
[26076] | 24 | ); |
---|
[3305] | 25 | |
---|
[26076] | 26 | function install($plugin_version, &$errors=array()) |
---|
[10983] | 27 | { |
---|
[26076] | 28 | global $conf; |
---|
| 29 | |
---|
[26099] | 30 | if (!isset($conf['bbcode_bar'])) |
---|
[26076] | 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; |
---|
[10983] | 38 | } |
---|
[3305] | 39 | |
---|
[26076] | 40 | function activate($plugin_version, &$errors=array()) |
---|
[10983] | 41 | { |
---|
[26076] | 42 | if (!$this->installed) |
---|
| 43 | { |
---|
| 44 | $this->install($plugin_version, $errors); |
---|
| 45 | } |
---|
[10983] | 46 | } |
---|
[9965] | 47 | |
---|
[26076] | 48 | function deactivate() |
---|
| 49 | { |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | function uninstall() |
---|
| 53 | { |
---|
| 54 | conf_delete_param('bbcode_bar'); |
---|
| 55 | } |
---|
[3305] | 56 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.