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

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

[nbc_HistoryIPExcluder] Pre 2.0.0

  • Code cleaning
  • Translations improvement based on Tosca's FR correction
  • Property svn:eol-style set to LF
File size: 454 bytes
RevLine 
[5099]1<?php
2
3function plugin_install()
4{
5  global $conf;
6 
7  $default= array();
8
9  $q = '
10INSERT INTO '.CONFIG_TABLE.' (param,value,comment)
[5121]11VALUES ("nbc_HistoryIPExcluder","","Parametres nbc History IP Excluder");
[5099]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
[5121]33?>
Note: See TracBrowser for help on using the repository browser.