MkFramework
 All Data Structures Functions
Public Member Functions
plugin_xsrf Class Reference

Public Member Functions

 __construct ()
 
 enableSession ()
 
 disableSession ()
 
 getMessage ()
 
 getToken ()
 
 checkToken ($sInputToken)
 

Detailed Description

plugin_check classe pour verifier un lot de valeurs (verification de formulaire par exemple)

Author
Mika http://mkf.mkdevs.com/

Definition at line 23 of file plugin_xsrf.php.

Constructor & Destructor Documentation

__construct ( )

constructeur public

Parameters
string$sToken

Definition at line 37 of file plugin_xsrf.php.

Here is the call graph for this function:

Member Function Documentation

checkToken (   $sInputToken)

verifie si le token est valide public

Parameters
string$sInputToken
Returns
bool retourne true/false selon

Definition at line 113 of file plugin_xsrf.php.

disableSession ( )

desactive l'utilisation de la session pour les token xrf (moins securise) public

Definition at line 56 of file plugin_xsrf.php.

enableSession ( )

active l'utilisation de la session pour les token xrf (plus securise: permet une utilisation unique du jeton) public

Definition at line 49 of file plugin_xsrf.php.

getMessage ( )

recupere le message d'erreur public

Returns
string retourne le token

Definition at line 70 of file plugin_xsrf.php.

getToken ( )

recupere le token (a inclure dans le formulaire en hidden) public

Returns
string retourne le token

Definition at line 78 of file plugin_xsrf.php.


The documentation for this class was generated from the following file: