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

Last change on this file since 3304 was 3304, checked in by patdenice, 11 years ago

New extension added:
Smilies Support (2.0.a)

File size: 558 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['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.