Line | |
---|
1 | <?php |
---|
2 | defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); |
---|
3 | |
---|
4 | class SmiliesSupport_maintain extends PluginMaintain |
---|
5 | { |
---|
6 | private $default_conf = array( |
---|
7 | 'folder' => 'crystal', |
---|
8 | 'cols' => '6', |
---|
9 | 'representant' => 'smile.png', |
---|
10 | ); |
---|
11 | |
---|
12 | function install($plugin_version, &$errors=array()) |
---|
13 | { |
---|
14 | global $conf; |
---|
15 | |
---|
16 | if (!isset($conf['smiliessupport'])) |
---|
17 | { |
---|
18 | conf_update_param('smiliessupport', $this->default_conf, true); |
---|
19 | } |
---|
20 | } |
---|
21 | |
---|
22 | function update($old_version, $new_version, &$errors=array()) |
---|
23 | { |
---|
24 | $this->install($new_version, $errors); |
---|
25 | } |
---|
26 | |
---|
27 | function uninstall() |
---|
28 | { |
---|
29 | conf_delete_param('smiliessupport'); |
---|
30 | } |
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.