source: extensions/nbc_HistoryIPExcluder/trunk/maintain.inc.php @ 5121

Revision 5121, 454 bytes checked in by Eric, 10 years ago (diff)

[nbc_HistoryIPExcluder] Pre 2.0.0

  • Code cleaning
  • Translations improvement based on Tosca's FR correction
  • Property svn:eol-style set to LF
Line 
1<?php
2
3function plugin_install()
4{
5  global $conf;
6 
7  $default= array();
8
9  $q = '
10INSERT INTO '.CONFIG_TABLE.' (param,value,comment)
11VALUES ("nbc_HistoryIPExcluder","","Parametres nbc History IP Excluder");
12';
13     
14  pwg_query($q);
15}
16
17
18function plugin_uninstall()
19{
20  global $conf;
21
22  if (isset($conf['nbc_HistoryIPExcluder']))
23  {
24    $q = '
25DELETE FROM '.CONFIG_TABLE.'
26WHERE param="nbc_HistoryIPExcluder" LIMIT 1;
27';
28
29    pwg_query($q);
30  }
31}
32
33?>
Note: See TracBrowser for help on using the repository browser.