Last change
on this file since 8034 was
8034,
checked in by patdenice, 14 years ago
|
Display corrected in IE8.
Add theme interface select in admin pannel.
|
File size:
773 bytes
|
Line | |
---|
1 | <?php |
---|
2 | function plugin_install() |
---|
3 | { |
---|
4 | $q = ' |
---|
5 | INSERT INTO '.CONFIG_TABLE.' (param,value,comment) |
---|
6 | VALUES |
---|
7 | ("captcha_publickey","","Captcha public key") |
---|
8 | ;'; |
---|
9 | pwg_query($q); |
---|
10 | $q = ' |
---|
11 | INSERT INTO '.CONFIG_TABLE.' (param,value,comment) |
---|
12 | VALUES |
---|
13 | ("captcha_privatekey","","Captcha private key") |
---|
14 | ;'; |
---|
15 | pwg_query($q); |
---|
16 | } |
---|
17 | |
---|
18 | function plugin_activate() |
---|
19 | { |
---|
20 | global $conf; |
---|
21 | |
---|
22 | if (!isset($conf['captcha_theme'])) |
---|
23 | { |
---|
24 | $q = ' |
---|
25 | INSERT INTO '.CONFIG_TABLE.' (param,value,comment) |
---|
26 | VALUES |
---|
27 | ("captcha_theme","red","Captcha theme") |
---|
28 | ;'; |
---|
29 | pwg_query($q); |
---|
30 | } |
---|
31 | } |
---|
32 | |
---|
33 | |
---|
34 | function plugin_uninstall() |
---|
35 | { |
---|
36 | foreach (array('captcha_publickey','captcha_privatekey', 'captcha_theme') as $param) |
---|
37 | { |
---|
38 | $q = ' |
---|
39 | DELETE FROM '.CONFIG_TABLE.' WHERE param="'.$param.'" LIMIT 1'; |
---|
40 | pwg_query( $q ); |
---|
41 | } |
---|
42 | } |
---|
43 | |
---|
44 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.