/sources/minikernel.php

Description
Functions
check_word_filter (line 541)

Check the specified text ($a) for banned words.

If any are found, and the member cannot bypass the word filter, an error message is displayed.

  • return: "Fixed" version
string check_word_filter (string $a, [?ID_TEXT $name = NULL], [boolean $no_die = false], [boolean $try_patterns = false], [boolean $perm_check = true])
  • string $a: The sentence to check
  • ?ID_TEXT $name: The name of the parameter this is coming from. Certain parameters are not checked, for reasons of efficiency (avoiding loading whole word check list if not needed) (NULL: don't know param, do not check to avoid)
  • boolean $no_die: Whether to avoid dying on fully blocked words (useful if importing, for instance)
  • boolean $try_patterns: Whether to try pattern matching (this takes more resources)
  • boolean $perm_check: Whether to allow permission-based skipping, and length-based skipping
init__minikernel (line 31)

Standard code module initialisation function.

void init__minikernel ()
is_guest (line 300)

Find whether the current member is a guest.

  • return: Whether the current member is a guest
boolean is_guest ([?MEMBER $member_id = NULL])
  • ?MEMBER $member_id: Member ID to check (NULL: current user)

Documentation generated on Sun, 02 Jan 2011 23:17:58 +0000 by phpDocumentor 1.4.3