aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/AdminTools/maintain.class.php
blob: 2e89968fde117ab39e26da1e539cd57ddb970676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');

class AdminTools_maintain extends PluginMaintain
{
  private $default_conf = array(
    'default_open' => true,
    'closed_position' => 'left',
    'public_quick_edit' => true,
    );

  function install($plugin_version, &$errors=array())
  {
    global $conf;

    if (empty($conf['AdminTools']))
    {
      conf_update_param('AdminTools', $this->default_conf, true);
    }
  }

  function update($old_version, $new_version, &$errors=array())
  {
    $this->install($new_version, $errors);
  }

  function uninstall()
  {
    conf_delete_param('AdminTools');
  }
}