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

Revision 6506, 713 bytes checked in by rvelices, 10 years ago (diff)

added rv_akismet extension to svn

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
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.