4 * File: SLV.Action.class.php
5 * This is the Spam Link Verification Action class for the Geeklog Spam-X plugin
7 * Copyright (C) 2006 by the following authors:
8 * Author Dirk Haun dirk AT haun-online DOT de
10 * Licensed under the GNU General Public License
16 if (strpos(strtolower($_SERVER['PHP_SELF']), 'slvreport.action.class.php') !== false) {
17 die('This file can not be used on its own!');
21 * Include Base Classes
23 require_once $_CONF['path'] . 'plugins/spamx/' . 'BaseCommand.class.php';
24 require_once $_CONF['path'] . 'plugins/spamx/' . 'SLVbase.class.php';
27 * Sends posts to SLV (linksleeve.org)
29 * Due to the way Spam-X works, the SLV Examine class may not have been
30 * triggered when some other module detected the spam first. SLV needs to
31 * see all links used in spam posts, though, to accurately detect spam. So
32 * this class ensures that SLV sees spam detected by other Spam-X modules, too.
34 * @author Dirk Haun dirk AT haun-online DOT de
35 * based on the works of Tom Willet (Spam-X) and Russ Jones (SLV)
39 class SLVreport extends BaseCommand {
42 * Numbers are always binary digits and added together to make call
48 // Actually, this is the code used by the DeleteComment class.
49 // We're piggybacking on the delete operation here.
56 function execute ($comment)
62 if (isset ($GLOBALS['slv_triggered']) && $GLOBALS['slv_triggered']) {
63 // the Examine class already reported these to SLV
68 $slv->CheckForSpam ($comment);