4 * File: DeleteComment.Action.class.php
5 * This is the Delete Comment Action for the Geeklog Spam-X plugin
7 * Copyright (C) 2004-2005 by the following authors:
8 * Author Tom Willett tomw AT pigstye DOT net
10 * Licensed under GNU General Public License
16 if (strpos(strtolower($_SERVER['PHP_SELF']), 'deletecomment.action.class.php') !== false) {
17 die('This file can not be used on its own!');
21 * Include Abstract Action Class
23 require_once $_CONF['path'] . 'plugins/spamx/' . 'BaseCommand.class.php';
26 * Action Class which just discards comment
28 * @author Tom Willett tomw@pigstye.net
32 class DeleteComment extends BaseCommand {
35 * Numbers are always binary digits and added together to make call
37 function DeleteComment()
44 function execute($comment)
46 global $result, $_CONF, $_TABLES, $LANG_SX00;
49 // update count of deleted spam posts
50 DB_change ($_TABLES['vars'], 'value', 'value + 1', 'name', 'spamx.counter', '', true);
52 SPAMX_log($LANG_SX00['spamdeleted']);