Procedural File: functions.inc
Source Location: /plugins/spamx/functions.inc
Page Details:
File: functions.inc This is the functions.inc for the Geeklog Spam-X plugin
Copyright (C) 2004-2010 by the following authors: Authors Tom Willett tomw AT pigstye DOT net Dirk Haun dirk AT haun-online DOT de Licensed under GNU General Public License
Includes:
include_once($plugin_path.'language/english.php') [line 29]
include_once($langfile) [line 27]
Language file include
require_once($_CONF['path_system'].'classes/config.class.php') [line 36]
Check and see if we need to load the plugin configuration
plugin_autouninstall_spamx [line 432]
array plugin_autouninstall_spamx(
)
|
|
Automatic uninstall function for plugins This code is automatically uninstalling the plugin. It passes an array to the core code function that removes tables, groups, features and php blocks from the tables. Additionally, this code can perform special actions that cannot be foreseen by the core code (interactions with other plugins for example)
Tags:
plugin_cclabel_spamx [line 115]
array plugin_cclabel_spamx(
)
|
|
This will put an option for the plugin in the command and control block on moderation.php Add the plugin name, icon and link to the command and control block in moderation.php
Tags:
plugin_checkforSpam_spamx [line 293]
int plugin_checkforSpam_spamx(
string $comment, [int $action = -1])
|
|
Check a post for spam
Tags:
Parameters
| string |
$comment |
comment text |
| int |
$action |
(former spam action - not used any more) |
plugin_chkVersion_spamx [line 151]
string plugin_chkVersion_spamx(
)
|
|
Returns the current plugin code version
Tags:
plugin_getadminoption_spamx [line 136]
array plugin_getadminoption_spamx(
)
|
|
Returns the administrative option for this plugin Adds the plugin to the Admin menu
Tags:
plugin_getconfigtooltip_spamx [line 499]
mixed plugin_getconfigtooltip_spamx(
string $id)
|
|
Provides text for a Configuration tooltip
Tags:
Parameters
| string |
$id |
Id of config value |
plugin_getdocumentationurl_spamx [line 460]
mixed plugin_getdocumentationurl_spamx(
string $file)
|
|
Provide URL of a documentation file
Tags:
Parameters
| string |
$file |
documentation file being requested, e.g. 'config' |
plugin_geticon_spamx [line 413]
string plugin_geticon_spamx(
)
|
|
Returns the URL of the plugin's icon
Tags:
plugin_migrate_spamx [line 260]
void plugin_migrate_spamx(
array $old_conf, boolean 1)
|
|
Called during site migration - handle changed URLs or paths
Parameters
| array |
$old_conf |
contents of the $_CONF array on the old site |
| boolean |
1 |
true on success, otherwise false |
plugin_showstats_spamx [line 57]
string plugin_showstats_spamx(
int $showsitestats)
|
|
Shows the statistics for the plugin on stats.php. If $showsitestats is 1 then we are to only print the overall stats in the 'site statistics' box otherwise we show the detailed stats for the plugin
Tags:
Parameters
| int |
$showsitestats |
Flag to let us know which stats to get |
plugin_spamaction_spamx [line 340]
int plugin_spamaction_spamx(
string $comment, int $action)
|
|
Perform action after spam has been detected
Tags:
Parameters
| string |
$comment |
comment text |
| int |
$action |
which action modules to call (sum of module numbers) |
plugin_statssummary_spamx [line 99]
array(item plugin_statssummary_spamx(
)
|
|
New stats plugin API function for proper integration with the site stats
Tags:
plugin_upgrade_spamx [line 168]
int plugin_upgrade_spamx(
)
|
|
Update the Spam-X plugin
Tags:
SPAMX_log [line 387]
void SPAMX_log(
string $logentry)
|
|
Logs message to spamx.log This will print a message to the spamx log
Parameters
| string |
$logentry |
Message to write to log |
|