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

Revision 10986, 560 bytes checked in by mistic100, 9 years ago (diff)

code cleanup

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