Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | function plugin_install() |
---|
4 | { |
---|
5 | global $prefixeTable; |
---|
6 | $q = ' |
---|
7 | INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) |
---|
8 | VALUES |
---|
9 | ("imgpreview" , "600#600" , "max-width#max-height");'; |
---|
10 | pwg_query($q); |
---|
11 | |
---|
12 | } |
---|
13 | |
---|
14 | |
---|
15 | |
---|
16 | function plugin_activate() |
---|
17 | { |
---|
18 | global $prefixeTable; |
---|
19 | }//fin active |
---|
20 | |
---|
21 | |
---|
22 | |
---|
23 | |
---|
24 | function plugin_uninstall() |
---|
25 | { |
---|
26 | global $prefixeTable; |
---|
27 | pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param IN (\'imgpreview\')'); |
---|
28 | }//fin uninstall |
---|
29 | |
---|
30 | |
---|
31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.