source: extensions/rv_akismet/maintain.inc.php @ 20153

Last change on this file since 20153 was 6506, checked in by rvelices, 14 years ago

added rv_akismet extension to svn

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 713 bytes
Line 
1<?php
2function plugin_install()
3{
4  $q = '
5INSERT INTO '.CONFIG_TABLE.' (param,value,comment)
6  VALUES
7  ("akismet_api_key","","Akismet online service API key")
8;';
9  pwg_query($q);
10  $q = '
11INSERT INTO '.CONFIG_TABLE.' (param,value,comment)
12  VALUES
13  ("akismet_spam_action","moderate","Action when akismet detects spam")
14;';
15  pwg_query($q);
16  $q = '
17INSERT INTO '.CONFIG_TABLE.' (param,value,comment)
18  VALUES
19  ("akismet_counters","0/0","Akismet counters")
20;';
21  pwg_query($q);
22}
23
24
25function plugin_uninstall()
26{
27  foreach (array('akismet_api_key','akismet_spam_action','akismet_counters') as $param)
28  {
29    $q = '
30DELETE FROM '.CONFIG_TABLE.' WHERE param="'.$param.'" LIMIT 1';
31    pwg_query( $q );
32  }
33}
34
35?>
Note: See TracBrowser for help on using the repository browser.