4 * File: SLV.Examine.class.php
5 * This is the Spam Link Verification Examine 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']), 'slv.examine.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) for examination
29 * @author Dirk Haun dirk AT haun-online DOT de
30 * based on the works of Tom Willet (Spam-X) and Russ Jones (SLV)
34 class SLV extends BaseCommand {
36 * No Constructor Use BaseCommand constructor
42 function execute ($comment)
44 global $_USER, $LANG_SX00;
48 if (isset ($_USER['uid']) && ($_USER['uid'] > 1)) {
55 if ($slv->CheckForSpam ($comment)) {
57 SPAMX_log ($LANG_SX00['foundspam'] . 'Spam Link Verification (SLV)'.
58 $LANG_SX00['foundspam2'] . $uid .
59 $LANG_SX00['foundspam3'] . $_SERVER['REMOTE_ADDR']);
62 // tell the Action module that we've already been triggered
63 $GLOBALS['slv_triggered'] = true;