XF handles all low-level including initialization, database connection and basic abstraction layers
XF handles all low-level including initialization, database connection and basic abstraction layers
Located in /lb_private/class.root.php (line 57)
check if selected user can access an 'action'
check if selected user can access an 'action'
hash a bitstream e.
hash a bitstream e.g. plaintext password and use an (optional) better salting than before
narrows an array down to string
narrows an array down to string
transforms a bool to 'yes' or 'no'
transforms a bool to 'yes' or 'no'
store a checksum locally and compare it, if requested
store a checksum locally and compare it, if requested
clears a query string from unencoded chars
clears a query string from unencoded chars don't use it on $_GET and $_REQUEST as they are already decoded!
converts a string to unicode, if not already in this encoding
converts a string to unicode, if not already in this encoding
set a cookie. is automatically disabled, if suhosin is detected and it already encrypts cookies.
set a cookie. encrypted by default; not very tight, but (maybe) enough to beat junior black-hats ;) is automatically disabled, if suhosin is detected and it already encrypts cookies.
format a date output
format a date output
all-purpose file handler - abstracts common php code snippets
all-purpose file handler - abstracts common php code snippets flags: read,write,delete,noroot,local,remote,append,verify,compression=[none|auto|gz|bz2]
get a configuration value
get a configuration value
get current supported configuration values
get current supported configuration values
get vars from 'vault'
get vars from 'vault'
get group data
get group data
count set bits in input and returns them as hex
count set bits in input and returns them as hex
fetch a list of all tables currently stored in database
fetch a list of all tables currently stored in database
get user data - return data, if found, and caches it in class vars
get user data - return data, if found, and caches it in class vars
fetches user group from database and store them in class vars
fetches user group from database and store them in class vars
hash a bitstream e.
hash a bitstream e.g. plaintext password
calculate the hash from input - usuable on non-scalar values
calculate the hash from input - usuable on non-scalar values
returns value if is set otherwise a default
returns value if is set otherwise a default
well, prepare some fun for inconvenient users *haha*
well, prepare some fun for inconvenient users *haha*
initialize basics: check php settings and prepare user input arrays
initialize basics: check php settings and prepare user input arrays
initialize caching system
initialize caching system
process configuration
process configuration
initialize database connection
initialize database connection
set 'action' to run, access checks and set basic template vars
set 'action' to run, access checks and set basic template vars
intialize common variables and prepare database table array
intialize common variables and prepare database table array
fetch core language file and detect preferred language by browser settings
fetch core language file and detect preferred language by browser settings
load and prepare imageset along stylesheet definitions
load and prepare imageset along stylesheet definitions
run a scheduled task, if enabled.
run a scheduled task, if enabled.
prepare smarty template engine handing html outputs
prepare smarty template engine handing html outputs
initialize user data and cache group data
initialize user data and cache group data
parse a link
parse a link
forward an entry to log system deliver input as args: first is level 'system', 'info' or 'error'.
forward an entry to log system deliver input as args: first is level 'system', 'info' or 'error'. any following are combined as message. odd [1,3,5,...] become a 'description' for an entry. even [2,4,6,...] are its message. you may also pass all args in an array as first argument. example: logger('info','foo','bar','userid',3,'select','false') or logger(array('info','foo','bar','userid',3,'select','false'))
parse logging messages for (human readable) output
parse logging messages for (human readable) output
output maintenance message and end execution
output maintenance message and end execution
reload configuration table by using safe mode
reload configuration table by using safe mode
reset all template vars except common one
reset all template vars except common one
scan through folders recursively
scan through folders recursively
sanitize user inputs - very(!) important
sanitize user inputs - very(!) important available flags: okifempty,forcestr,enforce,stripspaces,notrim,restrict,fullascii,hex,oct,length=,range=,o= 'str,strwbr,path,file' are *sanitizing* (strip illegal chars), others are *validating* (return 'false' on illegal chars) normally we do not allow empty input (zero strlen), use 'okifempty' flag to change this! hex|oct do not support 'range='
(de)scramble a string using cryptography
(de)scramble a string using cryptography
forward input data through filtering api to detect unwanted messages ("spam")
forward input data through filtering api to detect unwanted messages ("spam")
transform result cache to marker for database storage
transform result cache to marker for database storage pd_spam_marker: 0=not scanned, 1=ham, 2=spam
return last inserted id after sql query
return last inserted id after sql query
perform a sql query
perform a sql query first char can be a flag: ?=debug selects, -=just simulate and !=only output query params === '-' -> do not log query in debug trace AND no check before execution if table exists
transaction abstraction layer
transaction abstraction layer mysql gets a simulation by locking because it (still/actually) lacks transactions *sigh* you should not use nested transactions to allow using databases not support them
increase statistic counter by one
increase statistic counter by one
strips trailing slashes
strips trailing slashes
store a transaction number to session for using in forms
store a transaction number to session for using in forms
returns a valid database table name for usage in sql queries
returns a valid database table name for usage in sql queries
terminate script execution and output error message
terminate script execution and output error message
create a token - useful on creating passwords or digests
create a token - useful on creating passwords or digests int=0-9, strict=a-f0-9, alnum=a-zA-Z0-9, binary=x00-xff
rewire template engine cache to 'pool' when required
rewire template engine cache to 'pool' when required
update the local caches like self::$user with new values
update the local caches like self::$user with new values
create an 'universal unique identifier'.
create an 'universal unique identifier'. if we didn't make a mistake on calculation, this should be about 120-bit of randomness... output example: 550e8400-e29b-11d4-a716-446655440000 (not really strict RFC!)
validates input array for rejected 'false' data
validates input array for rejected 'false' data
our 'vault': values can be stored here for class-wide reference
our 'vault': values can be stored here for class-wide reference flags: pub,rw,required,token=
start your engines :)
start your engines :) options: 'initcfg_file' - user defined path to initial configuration
well, clean up after work and turn off the lights.
well, clean up after work and turn off the lights...
Documentation generated on Sun, 20 Jun 2010 11:59:16 +0200 by phpDocumentor 1.4.3