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

Revision 3304, 558 bytes checked in by patdenice, 11 years ago (diff)

New extension added:
Smilies Support (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['smiliessupport']))
10  {
11    $q = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
12VALUES ("smiliessupport","plugins/SmiliesSupport/smilies,5,sourire.gif","Parametres SmiliesSupport");';
13    pwg_query($q);
14  }
15}
16
17function plugin_uninstall()
18{
19  global $conf;
20
21  if (isset($conf['smiliessupport']))
22  {
23    pwg_query('DELETE FROM ' . CONFIG_TABLE . ' WHERE param="smiliessupport" LIMIT 1;');
24  }
25}
Note: See TracBrowser for help on using the repository browser.