source: extensions/SmiliesSupport/maintain.inc.php @ 26099

Last change on this file since 26099 was 26099, checked in by mistic100, 10 years ago

typo in smiliessupport and bbcode_bar

File size: 850 bytes
RevLine 
[23234]1<?php
[26075]2defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
[23234]3
[26075]4class SmiliesSupport_maintain extends PluginMaintain
[23234]5{
[26075]6  private $installed = false;
7 
8  private $default_conf = array(
[23234]9    'folder'       => 'crystal',
10    'cols'         => '6',
11    'representant' => 'smile.png',
[26075]12    );
[23234]13
[26075]14  function install($plugin_version, &$errors=array())
[23234]15  {
[26075]16    global $conf;
[23234]17   
[26099]18    if (!isset($conf['smiliessupport']))
[23234]19    {
[26075]20      $conf['smiliessupport'] = serialize($this->default_conf);
21
22      conf_update_param('smiliessupport', $conf['smiliessupport']);
[23234]23    }
24   
[26075]25    $this->installed = true;
[23234]26  }
27
[26075]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  }
[23234]44}
Note: See TracBrowser for help on using the repository browser.