LEPTON CMS 7.2.0
feel free to keep it strictly simple...
Loading...
Searching...
No Matches
function.scan_current_dir.php File Reference

Go to the source code of this file.

Functions

 scan_current_dir (string $root='', string $file_type='')
 

Variables

if(!defined("SEC_FILE")) if(defined('LEPTON_PATH')) else
 
 $root = $oneback
 
 $level = 1
 

Function Documentation

◆ scan_current_dir()

scan_current_dir ( string $root = '',
string $file_type = '' )

Scan a given directory for dirs and files.

Used inside e.g. 'admins/addons/reload.php'

Parameters
string$rootOptional path to be scanned; default is the current working directory (getcwd()).
string$file_typeOptional pattern for file types, e.g. 'png' or '(jpg|jpeg|gif)'. Default is an empty string for all file(-types).
Returns
array Returns an assoc. array with the keys 'path' and 'filename'.

Definition at line 50 of file function.scan_current_dir.php.

Variable Documentation

◆ $level

$level = 1

Definition at line 25 of file function.scan_current_dir.php.

◆ $root

$root = $oneback

Definition at line 24 of file function.scan_current_dir.php.

◆ else

while(($level< 10) &&(!file_exists($root.SEC_FILE))) if (file_exists( $root.SEC_FILE)) else
Initial value:
{
$oneback = "../"

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 22 of file function.scan_current_dir.php.