source:
extensions/Statistics/maintain.inc.php
@
4497
Last change on this file since 4497 was 3438, checked in by , 15 years ago | |
---|---|
File size: 512 bytes |
Line | |
---|---|
1 | <?php |
2 | |
3 | |
4 | |
5 | function plugin_install() |
6 | |
7 | { |
8 | |
9 | global $prefixeTable; |
10 | |
11 | $q = ' |
12 | |
13 | INSERT INTO '.CONFIG_TABLE.' (param,value,comment) |
14 | |
15 | VALUES ("statistics","off,on, ,off,off","Parameters of Statistics plugin"); |
16 | |
17 | '; |
18 | |
19 | |
20 | |
21 | pwg_query($q); |
22 | |
23 | |
24 | |
25 | } |
26 | |
27 | |
28 | |
29 | function plugin_uninstall() |
30 | |
31 | { |
32 | |
33 | global $prefixeTable; |
34 | |
35 | $q = ' |
36 | |
37 | DELETE FROM '.CONFIG_TABLE.' |
38 | |
39 | WHERE param="statistics" LIMIT 1; |
40 | |
41 | '; |
42 | |
43 | |
44 | |
45 | pwg_query($q); |
46 | |
47 | |
48 | |
49 | } |
50 | |
51 | ?> |
Note: See TracBrowser
for help on using the repository browser.