source: extensions/captcha/maintain.inc.php @ 8040

Last change on this file since 8040 was 8034, checked in by patdenice, 13 years ago

Display corrected in IE8.
Add theme interface select in admin pannel.

File size: 773 bytes
RevLine 
[8030]1<?php
2function plugin_install()
3{
4  $q = '
5INSERT INTO '.CONFIG_TABLE.' (param,value,comment)
6  VALUES
7  ("captcha_publickey","","Captcha public key")
8;';
9  pwg_query($q);
10  $q = '
11INSERT INTO '.CONFIG_TABLE.' (param,value,comment)
12  VALUES
13  ("captcha_privatekey","","Captcha private key")
14;';
15  pwg_query($q);
16}
17
[8034]18function plugin_activate()
19{
20  global $conf;
[8030]21
[8034]22  if (!isset($conf['captcha_theme']))
23  {
24    $q = '
25INSERT INTO '.CONFIG_TABLE.' (param,value,comment)
26  VALUES
27  ("captcha_theme","red","Captcha theme")
28;';
29    pwg_query($q);
30  }
31}
32
33
[8030]34function plugin_uninstall()
35{
[8034]36  foreach (array('captcha_publickey','captcha_privatekey', 'captcha_theme') as $param)
[8030]37  {
38    $q = '
39DELETE 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.