LEPTON CMS 7.2.0
feel free to keep it strictly simple...
Loading...
Searching...
No Matches
LEPTON_securecms Class Reference

Public Member Functions

 __construct ()
 
 _generate_salt ()
 
 createLepToken ()
 
 checkLepToken ()
 

Static Public Member Functions

static clearLepTokens ()
 

Data Fields

string $_salt = ''
 

Detailed Description

This file is part of LEPTON Core, released under the GNU GPL Please see LICENSE and COPYING files in your package for details, specially for terms and warranties.

NOTICE:LEPTON CMS Package has several different licenses. Please see the individual license in the header of each single file or info.php of modules and templates.

Author
LEPTON Project

Definition at line 20 of file lepton_securecms.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Constructor of the class.

Definition at line 28 of file lepton_securecms.php.

Member Function Documentation

◆ _generate_salt()

_generate_salt ( )

Generating the random "salt" string.

Returns
void

Definition at line 38 of file lepton_securecms.php.

◆ checkLepToken()

checkLepToken ( )

checks received token against session-stored tokens @access public

Returns
bool True if numbers matches against one of the stored tokens.

Requirements: an active session must be available this check will prevent from multiple sending a form. history.back() also will never work

Definition at line 89 of file lepton_securecms.php.

◆ clearLepTokens()

static clearLepTokens ( )
static

Definition at line 152 of file lepton_securecms.php.

◆ createLepToken()

createLepToken ( )

creates Tokens for CSRF protection @access public

Returns
string

requirements: an active session must be available should be called only once for a page!

Definition at line 57 of file lepton_securecms.php.

Field Documentation

◆ $_salt

string $_salt = ''

Definition at line 22 of file lepton_securecms.php.


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