source: extensions/nbc_HistoryIPExcluder/tags/2.0.0/maintain.inc.php @ 5132

Last change on this file since 5132 was 5132, checked in by Eric, 14 years ago

[nbc_HistoryIPExcluder] Creating tag 2.0.0 merged from branch 2.0

  • Property svn:eol-style set to LF
File size: 454 bytes
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.