source: extensions/nbc_HistoryIPExcluder/branches/2.0/maintain.inc.php @ 5131

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

[nbc_HistoryIPExcluder] Merged from trunk to 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.