source: extensions/bbcode_bar/maintain.inc.php @ 3417

Revision 3305, 538 bytes checked in by patdenice, 11 years ago (diff)

New extension added:
BBCode Bar (2.0.a)

Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5function plugin_install()
6{ 
7  global $conf;
8
9  if (!isset($conf['bbcode_bar']))
10  {
11    $q = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
12VALUES ("bbcode_bar","1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,plugins/bbcode_bar/icon","Parametres BBCode_bar");';
13    pwg_query($q);
14  }
15}
16
17function plugin_uninstall()
18{
19    global $conf;
20
21    if (isset($conf['bbcode_bar']))
22    {
23      pwg_query('DELETE FROM ' . CONFIG_TABLE . ' WHERE param="bbcode_bar" LIMIT 1;');
24    }
25}
Note: See TracBrowser for help on using the repository browser.