Last change
on this file since 14170 was
5131,
checked in by Eric, 15 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 | |
---|
3 | function plugin_install() |
---|
4 | { |
---|
5 | global $conf; |
---|
6 | |
---|
7 | $default= array(); |
---|
8 | |
---|
9 | $q = ' |
---|
10 | INSERT INTO '.CONFIG_TABLE.' (param,value,comment) |
---|
11 | VALUES ("nbc_HistoryIPExcluder","","Parametres nbc History IP Excluder"); |
---|
12 | '; |
---|
13 | |
---|
14 | pwg_query($q); |
---|
15 | } |
---|
16 | |
---|
17 | |
---|
18 | function plugin_uninstall() |
---|
19 | { |
---|
20 | global $conf; |
---|
21 | |
---|
22 | if (isset($conf['nbc_HistoryIPExcluder'])) |
---|
23 | { |
---|
24 | $q = ' |
---|
25 | DELETE FROM '.CONFIG_TABLE.' |
---|
26 | WHERE 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.