Skip to content

Commit

Permalink
Removed more SLV code and docs from Spam-X plugin
Browse files Browse the repository at this point in the history
For feature #926
  • Loading branch information
eSilverStrike committed Apr 6, 2022
1 parent bf77977 commit 9dc25e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
3 changes: 1 addition & 2 deletions plugins/spamx/functions.inc
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,7 @@ function plugin_spamaction_spamx($comment, $action)
if ($dir = @opendir($spamx_path)) {
while (($file = readdir($dir)) !== false) {
if (is_file($spamx_path . $file)) {
if ((substr($file, -17) === '.Action.class.php') &&
(stripos($file, 'SLVreport.') !== 0)) {
if (substr($file, -17) === '.Action.class.php') {
$sfile = str_replace('.Action.class.php', '', $file);
require_once $spamx_path . $file;
$CM = new $sfile;
Expand Down
23 changes: 8 additions & 15 deletions public_html/docs/english/spamx.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,12 @@ <h3>Example</h3>
module has the value 8. So to activate both modules, add 128 + 8 = 136 and
enter that in the Configuration admin panel.</p>

<p>The SLV Examine module is complemented by a <strong>SLV Action</strong>
module that ensures that SLV is notified of spam posts caught by other examine
modules. It "piggybacks" on the Delete Action module, i.e. when you activate
the Delete Action module, you'll also enable the SLV Action module.</p>

<p>Modules like the SNL Examine module (Spam Number of Links) is complemented by a <strong>SNL Action</strong>
module that ensures that SNL is notified of spam posts caught by other examine
modules. These modules can be enabled or disabled in the Spam-X configuration.</p>

<p>Some modules may "piggyback" on the Delete Action module, i.e. when you activate
the Delete Action module, you'll also enable these relevant Action module.</p>

<h2><a name="admin">Admin Modules</a></h2>

Expand All @@ -203,13 +204,6 @@ <h2><a name="admin">Admin Modules</a></h2>
href="#header">HTTP Header Filter</a> modules provide you with a form to add
new entries. To delete an existing entry, simply click on it.</p>

<p>With the <strong>SLV Whitelist</strong> admin module you can add URLs that
you don't want to be reported to SLV. This is useful when posts on your site
happen to contain certain URLs quite often but you don't want those to be
considered spam by SLV.<br/>Note that your site's URL (i.e. <a
href="config.html#desc_site_url">$_CONF['site_url']</a>) is automatically
whitelisted, so you don't need to add it here.</p>

<p>The <strong>Log View</strong> module lets you inspect and clear the Spam-X
logfile. The logfile contains additional information about the spam posts, e.g.
which IP address they came from, the user id (if posted by a logged-in user),
Expand Down Expand Up @@ -273,7 +267,7 @@ <h3><a name="main">Spam-X Main Settings</a></h3>
<tr>
<td><a name="desc_timeout">timeout</a></td>
<td>5</td>
<td>Timeout (in seconds) for contacting external services such as SLV and SFS.</td>
<td>Timeout (in seconds) for contacting external services such as Akismet and SFS.</td>
</tr>
<tr>
<td><a name="desc_notification_email">notification_email</a></td>
Expand All @@ -294,8 +288,7 @@ <h3><a name="main">Spam-X Main Settings</a></h3>
<tr>
<td><a name="desc_max_age">max_age</a></td>
<td>0</td>
<td>The max age in days to keep Spam-X records since there last update (0 = infinite). SLV Whitelist records
will not be deleted.
<td>The max age in days to keep Spam-X records since there last update (0 = infinite).
</td>
</tr>
<tr>
Expand Down

0 comments on commit 9dc25e1

Please sign in to comment.