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

Inherits LEPTON_abstract.

Public Member Functions

 accessFiles ( $newFileNames=array())
 
 getAllowedFiles ()
 
 getAdminDir ()
 
 testFile (string $sFilename="")
 
- Public Member Functions inherited from LEPTON_abstract
 getHeadInfo ()
 
 showmodinfo (array $modvalues=[], bool $bPrompt=true)
 
 getEditorSettings ()
 
 getAdditionalClass (string $basename="settings", string $classname="")
 

Data Fields

 $bCalledByModule = false
 
- Data Fields inherited from LEPTON_abstract
const NOT_SET_IN_INFO = "(unknown - not set in info.php)"
 
array $language = []
 
array $parents = []
 
string $module_directory = ""
 
string $module_name = ""
 
string $module_function = ""
 
string $module_version = ""
 
string $module_platform = ""
 
int $module_delete = 1
 
string $module_author = ""
 
string $module_license = ""
 
string $module_license_terms = ""
 
string $module_description = ""
 
string $module_guid = ""
 
string $module_home = ""
 

Static Public Attributes

static $instance
 
- Static Public Attributes inherited from LEPTON_abstract
static $instance
 

Protected Member Functions

 initialize ()
 
- Protected Member Functions inherited from LEPTON_abstract
 getParents ()
 
 getModuleInfo ()
 
 getLanguageFile ()
 
 getMainClassNames ( $sAnyClassname)
 

Additional Inherited Members

- Static Public Member Functions inherited from LEPTON_abstract
static getInstance (mixed $value=null)
 
static saveLastEditSection (int $iSectionID=0)
 
static getConstants ()
 

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_secure.php.

Member Function Documentation

◆ accessFiles()

accessFiles ( $newFileNames = array())

Replace the current internal list of allowed files with new ones.

Parameters
arrayA list of filenames (by default from the "called" module inside 'register_class_secure.php'.

@notice call inside "register_class_secure.php" like e.g.

    LEPTON_secure::getInstance()->accessFiles( $files_to_register );

Test if we reacht the maximum if repeated times ... or in other words have the max of folders searched and no "modules" directory found! So we "reset" the $prefix and break ... to avoid an endless repeat!

Definition at line 150 of file lepton_secure.php.

◆ getAdminDir()

getAdminDir ( )

As the admin_directory is private we need this function to get the current value inside secure.php this time.

Returns
string Path to the admin_directory.

Definition at line 214 of file lepton_secure.php.

◆ getAllowedFiles()

getAllowedFiles ( )

Returns the internal list of direct_access_allowed

Returns
array List of direct access allowed filepaths.

Definition at line 203 of file lepton_secure.php.

◆ initialize()

initialize ( )
protected

Prepare/fill the internal "direct_access_allowed"

Reimplemented from LEPTON_abstract.

Definition at line 110 of file lepton_secure.php.

◆ testFile()

testFile ( string $sFilename = "")

Test a filename against the internal filename-list.

Parameters
stringA given filename/path - default is "".
Returns
bool True, if file is in list, false if unknown at all.

Definition at line 226 of file lepton_secure.php.

Field Documentation

◆ $bCalledByModule

$bCalledByModule = false

Definition at line 27 of file lepton_secure.php.

◆ $instance

$instance
static

Definition at line 24 of file lepton_secure.php.


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