Class icms_core_Security
Class for managing security aspects such as checking referers, applying tokens and checking global variables for contamination
Package: Core\Security
Category: ICMS
Copyright: (c) 2000-2005 The Xoops Project - www.xoops.org
License: GNU General Public License (GPL)
Author: Jan Pedersen mithrandir@xoops.org
Located at core/Security.php
Category: ICMS
Copyright: (c) 2000-2005 The Xoops Project - www.xoops.org
License: GNU General Public License (GPL)
Author: Jan Pedersen mithrandir@xoops.org
Located at core/Security.php
public static
|
|
public
|
|
public
boolean
|
|
public
string
|
#
createToken( integer $timeout = 0, string $name = _CORE_TOKEN )
Create a token in the user's session |
public
boolean
|
#
validateToken( string $token = false, boolean $clearIfValid = true, string $name = _CORE_TOKEN )
Check if a token is valid. If no token is specified, $_REQUEST[$name . '_REQUEST'] is checked |
public
|
|
public
boolean
|
|
public
|
#
garbageCollection( string $name = _CORE_TOKEN )
Perform garbage collection, clearing expired tokens |
public
boolean
|
|
public
|
|
public
|
|
public
string
|
#
getTokenHTML( $name = _CORE_TOKEN )
Get the HTML code for a @link icms_form_elements_Hiddentoken object - used in forms that do not use XoopsForm elements |
public
|
|
public
array|string
&
|
public
array
|
$errors
|
#
array()
|