LEPTON CMS 7.0.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 = ''
 
string $_reftoken = ''
 

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 29 of file lepton_securecms.php.

Member Function Documentation

◆ _generate_salt()

_generate_salt ( )

Generating the "salt" within $_SERVER vars|keys.

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 87 of file lepton_securecms.php.

◆ clearLepTokens()

static clearLepTokens ( )
static

Definition at line 168 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 59 of file lepton_securecms.php.

Field Documentation

◆ $_reftoken

string $_reftoken = ''

Definition at line 23 of file lepton_securecms.php.

◆ $_salt

string $_salt = ''

Definition at line 22 of file lepton_securecms.php.


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