b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (0.9.x) [ class tree: evocore ] [ index: evocore ] [ all elements ]

Procedural File: _functions_antispam.php

Source Location: /blogs/b2evocore/_functions_antispam.php

Page Details

Antispam handling functions

b2evolution - http://b2evolution.net/ Released under GNU GPL License - http://b2evolution.net/about/license.html

Copyright:  (c)2003-2005 by Francois PLANQUE - http://fplanque.net/
Filesource:  Source Code for this file
Functions
antispam_check  [line 78]

string antispam_check( $haystack  )

Check if a string contains abusive substrings

Note: Letting the database do the LIKE %% match is a little faster than doing in it PHP, not to mention the incredibly long overhead of preloading the list into PHP

Parameters:
   $haystack: 

API Tags:
Return:  balcklisted keyword found or false if no spam detected


[ Top ]
antispam_create  [line 19]

void antispam_create( $abuse_string, [ $aspm_source = 'local']  )

antispam_create(-)

Insert a new abuse string into DB

Parameters:
   $abuse_string: 
   $aspm_source: 


[ Top ]
antispam_delete  [line 60]

void antispam_delete( $string_ID  )
Parameters:
   $string_ID: 


[ Top ]
antiSpam_domain  [line 125]

void antiSpam_domain( [mixed $dispmax = 80]  )
Parameters:
mixed   $dispmax:  max length or false if we don't want to display


[ Top ]
antiSpam_ID  [line 114]

void antiSpam_ID( )


[ Top ]
antispam_source  [line 144]

void antispam_source( [ $disp = true], [ $raw = false]  )
Parameters:
   $disp: 
   $raw: 


[ Top ]
antispam_update_source  [line 45]

void antispam_update_source( $aspm_string, $aspm_source  )

antispam_update_source(-)

Note: We search by string because we sometimes don't know the ID (e-g when download already in list/cache)

Parameters:
   $aspm_string: 
   $aspm_source: 


[ Top ]
b2evonet_poll_abuse  [line 213]

void b2evonet_poll_abuse( [ $display = true]  )
Parameters:
   $display: 


[ Top ]
b2evonet_report_abuse  [line 164]

void b2evonet_report_abuse( $abuse_string, [ $display = true]  )
Parameters:
   $abuse_string: 
   $display: 


[ Top ]
list_antiSpam  [line 101]

void list_antiSpam( )


[ Top ]


Documentation generated on Tue, 20 May 2008 01:54:31 +0200 by phpDocumentor 1.4.2