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

Last change on this file since 9682 was 9682, checked in by mistic100, 13 years ago

[extentions] BBcode Bar

  • compatibility with Piwigo 2.2.0
  • many corrections
File size: 518 bytes
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)
12                        VALUES ("bbcode_bar","1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,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}
26
27?>
Note: See TracBrowser for help on using the repository browser.