[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/plugins/spamx/ -> functions.inc (sommaire)

File: functions.inc This is the functions.inc for the Geeklog Spam-X plugin Copyright (C) 2004-2006 by the following authors: Authors      Tom Willett     tomw AT pigstye DOT net Dirk Haun       dirk AT haun-online DOT de

Poids: 384 lignes (12 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 11 fonctions

  plugin_showstats_spamx()
  plugin_statssummary_spamx()
  plugin_cclabel_spamx()
  plugin_getadminoption_spamx()
  plugin_chkVersion_spamx()
  plugin_upgrade_spamx()
  plugin_checkforSpam_spamx()
  plugin_spamaction_spamx()
  SPAMX_log()
  plugin_geticon_spamx()
  plugin_uninstall_spamx()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

plugin_showstats_spamx($showsitestats)   X-Ref
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

param: int     $showsitestats  Flag to let us know which stats to get
return: string  returns formatted HTML to insert in stats page

plugin_statssummary_spamx()   X-Ref
New stats plugin API function for proper integration with the site stats

return: array(item text, item count);

plugin_cclabel_spamx()   X-Ref
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

return: array Array containing (plugin name, admin url, url of plugin icon)

plugin_getadminoption_spamx()   X-Ref
Returns the administrative option for this plugin

Adds the plugin to the Admin menu

return: array Array containing (plugin name, plugin admin url, # of items in plugin or '')

plugin_chkVersion_spamx()   X-Ref
Returns the current plugin code version

return: string    plugin version

plugin_upgrade_spamx()   X-Ref
Update the Spam-X plugin

return: int     Number of message to display

plugin_checkforSpam_spamx($comment, $action = -1)   X-Ref
Check a post for spam

param: string  $comment    comment text
param: int     $action     (former spam action - not used any more)
return: int                 > 0: spam detected, == 0: no spam

plugin_spamaction_spamx($comment, $action)   X-Ref
Perform action after spam has been detected

param: string  $comment    comment text
param: int     $action     which action modules to call (sum of module numbers)
return: int                 number of message to display to the spammer

SPAMX_log($logentry)   X-Ref
Logs message to spamx.log

This will print a message to the spamx log

param: string  $logentry   Message to write to log

plugin_geticon_spamx()   X-Ref
Returns the URL of the plugin's icon

return: string      URL of the icon

plugin_uninstall_spamx($installCheck = '')   X-Ref
Removes the datastructures for this plugin from the Geeklog database.
This routine will get called from the Plugin install program if user select De-Install or if Delete is used in the Plugin Editor.
The Plugin Installer will also call this routine upon and install error to remove anything it has created.
The Plugin installer will pass the optional parameter which will then double check that plugin has first been disabled.

Returns True if all Plugin related data is removed without error

param: string $installCheck Default is blank but if set, check if plugin is disabled first
return: boolean True if successful false otherwise



Généré le : Wed Nov 21 12:27:40 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics