\

Namespaces

Verot

Classes

FM_Config Save Configuration
FM_Zipper Class to work with zip files (using ZipArchive)
FM_Zipper_Tar Class to work with Tar files (using PharData)
getVersion
Imgcompress
Imgs
Ip2Region class Ip2Region 为兼容老版本调度而创建
RexAction 回调方法类
RexHelper
RExplorer 页面主类
SnowFlake 分布式 id 生成类 组成: <毫秒级时间戳+机器id+序列号> 默认情况下41bit的时间戳可以支持该算法使用到2082年,10bit的工作机器id可以支持1023台机器,序列号支持1毫秒产生4095个自增序列id
Thumb
timthumb
TinyImg Created by PhpStorm.
XdbSearcher
Zebra_Image A single-file, lightweight PHP library designed for efficient image manipulation featuring methods for modifying images and applying filters Supports WEBP format.
ZipHelper 压缩类

Constants

ALLOW_ALL_EXTERNAL_SITES

ALLOW_ALL_EXTERNAL_SITES = \false

ALLOW_EXTERNAL

ALLOW_EXTERNAL = \TRUE

APP_TITLE

APP_TITLE = $config['title'] . ' Manager'

BLOCK_EXTERNAL_LEECHERS

BLOCK_EXTERNAL_LEECHERS = \false

BROWSER_CACHE_DISABLE

BROWSER_CACHE_DISABLE = \false

BROWSER_CACHE_MAX_AGE

BROWSER_CACHE_MAX_AGE = $cache_freq

BROWSER_CACHE_MAX_AGE

BROWSER_CACHE_MAX_AGE = 864000

CURL_TIMEOUT

CURL_TIMEOUT = 20

DEBUG_LEVEL

DEBUG_LEVEL = 1

DEBUG_ON

DEBUG_ON = \false

DEFAULT_CC

DEFAULT_CC = 'ffffff'

DEFAULT_F

DEFAULT_F = ''

DEFAULT_HEIGHT

DEFAULT_HEIGHT = $config['thumbnail_h']

DEFAULT_HEIGHT

DEFAULT_HEIGHT = 100

DEFAULT_Q

DEFAULT_Q = 90

DEFAULT_S

DEFAULT_S = 0

DEFAULT_WIDTH

DEFAULT_WIDTH = $config['thumbnail_w']

DEFAULT_WIDTH

DEFAULT_WIDTH = 100

DEFAULT_ZC

DEFAULT_ZC = 0

DEFAULT_ZC

DEFAULT_ZC = 1

DISPLAY_ERROR_MESSAGES

DISPLAY_ERROR_MESSAGES = \false

DISPLAY_ERROR_MESSAGES

DISPLAY_ERROR_MESSAGES = \true

ERROR_IMAGE

ERROR_IMAGE = $config['domain'] . '/public/images/404.png'

ERROR_IMAGE

ERROR_IMAGE = ''

FILE_CACHE_DIRECTORY

FILE_CACHE_DIRECTORY = \APP_ROOT . $config['path'] . 'cache/'

FILE_CACHE_DIRECTORY

FILE_CACHE_DIRECTORY = './cache'

FILE_CACHE_ENABLED

FILE_CACHE_ENABLED = \TRUE

FILE_CACHE_MAX_FILE_AGE

FILE_CACHE_MAX_FILE_AGE = $cache_freq

FILE_CACHE_MAX_FILE_AGE

FILE_CACHE_MAX_FILE_AGE = 86400

FILE_CACHE_PREFIX

FILE_CACHE_PREFIX = 'EasyImage'

FILE_CACHE_PREFIX

FILE_CACHE_PREFIX = 'workcontrol'

FILE_CACHE_SUFFIX

FILE_CACHE_SUFFIX = '.workcontrol.txt'

FILE_CACHE_TIME_BETWEEN_CLEANS

FILE_CACHE_TIME_BETWEEN_CLEANS = $cache_freq

FILE_CACHE_TIME_BETWEEN_CLEANS

FILE_CACHE_TIME_BETWEEN_CLEANS = 86400

FM_EDIT_FILE

FM_EDIT_FILE = $edit_files

FM_IS_WIN

FM_IS_WIN = \DIRECTORY_SEPARATOR == '\\'

FM_PATH

FM_PATH = $p

FM_READONLY

FM_READONLY = $use_auth && !empty($readonly_users) && isset($_SESSION[\FM_SESSION_ID]['logged']) && \in_array($_SESSION[\FM_SESSION_ID]['logged'], $readonly_users)

FM_SESSION_ID

FM_SESSION_ID = 'filemanager'

FM_THEME

FM_THEME = $theme

FM_USE_AUTH

FM_USE_AUTH = $use_auth

IMAGETYPE_WEBP

IMAGETYPE_WEBP = 18

IMG_WEBP

IMG_WEBP = 32

LOCAL_FILE_BASE_DIRECTORY

LOCAL_FILE_BASE_DIRECTORY = \APP_ROOT

MAX_FILE_SIZE

MAX_FILE_SIZE = $config['maxSize']

MAX_FILE_SIZE

MAX_FILE_SIZE = 10485760

MAX_HEIGHT

MAX_HEIGHT = 10240

MAX_HEIGHT

MAX_HEIGHT = 2000

MAX_UPLOAD_SIZE

MAX_UPLOAD_SIZE = $max_upload_size_bytes

MAX_WIDTH

MAX_WIDTH = 10240

MAX_WIDTH

MAX_WIDTH = 2000

MEMORY_LIMIT

MEMORY_LIMIT = '256M'

MEMORY_LIMIT

MEMORY_LIMIT = '30M'

NOT_FOUND_IMAGE

NOT_FOUND_IMAGE = $config['domain'] . '/public/images/404.png'

NOT_FOUND_IMAGE

NOT_FOUND_IMAGE = ''

OPTIPNG_ENABLED

OPTIPNG_ENABLED = \false

OPTIPNG_PATH

OPTIPNG_PATH = '/usr/bin/optipng'

PNG_IS_TRANSPARENT

PNG_IS_TRANSPARENT = \FALSE

PNGCRUSH_ENABLED

PNGCRUSH_ENABLED = \false

PNGCRUSH_PATH

PNGCRUSH_PATH = '/usr/bin/pngcrush'

VERSION

VERSION = '2.4.7'

H3K | Tiny File Manager V2.4.7 CCP Programmers | ccpprogrammers@gmail.com https://tinyfilemanager.github.io

VERSION

VERSION = '2.8.15'

TimThumb by Ben Gillbanks and Mark Maunder Based on work done by Tim McDaniels and Darren Hoyt http://code.google.com/p/timthumb/

GNU General Public License, version 2 http://www.gnu.org/licenses/old-licenses/gpl-2.0.html

Examples and documentation available on the project homepage http://www.binarymoon.co.uk/projects/timthumb/

$Rev$

WAIT_BETWEEN_FETCH_ERRORS

WAIT_BETWEEN_FETCH_ERRORS = 3600

WEBSHOT_COLOR_DEPTH

WEBSHOT_COLOR_DEPTH = '24'

WEBSHOT_CUTYCAPT

WEBSHOT_CUTYCAPT = '/usr/local/bin/CutyCapt'

WEBSHOT_ENABLED

WEBSHOT_ENABLED = \false

WEBSHOT_IMAGE_FORMAT

WEBSHOT_IMAGE_FORMAT = 'png'

WEBSHOT_JAVA_ON

WEBSHOT_JAVA_ON = \false

WEBSHOT_JAVASCRIPT_ON

WEBSHOT_JAVASCRIPT_ON = \true

WEBSHOT_PLUGINS_ON

WEBSHOT_PLUGINS_ON = \true

WEBSHOT_PROXY

WEBSHOT_PROXY = ''

WEBSHOT_SCREEN_X

WEBSHOT_SCREEN_X = '1024'

WEBSHOT_SCREEN_Y

WEBSHOT_SCREEN_Y = '768'

WEBSHOT_TIMEOUT

WEBSHOT_TIMEOUT = '20'

WEBSHOT_USER_AGENT

WEBSHOT_USER_AGENT = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18"

WEBSHOT_XVFB

WEBSHOT_XVFB = '/usr/bin/xvfb-run'

WEBSHOT_XVFB_RUNNING

WEBSHOT_XVFB_RUNNING = \false

ZEBRA_IMAGE_BOXED

ZEBRA_IMAGE_BOXED = 0

Methods used with the {@link resize()} method.

ZEBRA_IMAGE_CROP_BOTTOMCENTER

ZEBRA_IMAGE_CROP_BOTTOMCENTER = 9

ZEBRA_IMAGE_CROP_BOTTOMLEFT

ZEBRA_IMAGE_CROP_BOTTOMLEFT = 8

ZEBRA_IMAGE_CROP_BOTTOMRIGHT

ZEBRA_IMAGE_CROP_BOTTOMRIGHT = 10

ZEBRA_IMAGE_CROP_CENTER

ZEBRA_IMAGE_CROP_CENTER = 6

ZEBRA_IMAGE_CROP_MIDDLELEFT

ZEBRA_IMAGE_CROP_MIDDLELEFT = 5

ZEBRA_IMAGE_CROP_MIDDLERIGHT

ZEBRA_IMAGE_CROP_MIDDLERIGHT = 7

ZEBRA_IMAGE_CROP_TOPCENTER

ZEBRA_IMAGE_CROP_TOPCENTER = 3

ZEBRA_IMAGE_CROP_TOPLEFT

ZEBRA_IMAGE_CROP_TOPLEFT = 2

ZEBRA_IMAGE_CROP_TOPRIGHT

ZEBRA_IMAGE_CROP_TOPRIGHT = 4

ZEBRA_IMAGE_NOT_BOXED

ZEBRA_IMAGE_NOT_BOXED = 1

Functions

checkPASS()

checkPASS(mixed  $name) : mixed

Parameters

mixed $name

Returns

mixed —

compress()

compress(string  $floder, mixed  $type = 'Imgcompress', mixed  $source = '') : mixed

Parameters

string $floder

文件夹

mixed $type
mixed $source

Returns

mixed —

creat_json()

creat_json() : mixed

Returns

mixed —

event_callback()

event_callback(mixed  $message) : mixed

Parameters

mixed $message

Returns

mixed —

fm_clean_path()

fm_clean_path(string  $path, mixed  $trim = true) : string

Clean path

Parameters

string $path
mixed $trim

Returns

string —

fm_convert_win()

fm_convert_win(string  $filename) : string

Convert file name to UTF-8 in Windows

Parameters

string $filename

Returns

string —

fm_copy()

fm_copy(string  $f1, string  $f2, bool  $upd) : bool

Safely copy file

Parameters

string $f1
string $f2
bool $upd

Indicates if file should be updated with new content

Returns

bool —

fm_download_file()

fm_download_file(mixed  $fileLocation, mixed  $fileName, mixed  $chunkSize = 1024) : mixed

Parameters

mixed $fileLocation
mixed $fileName
mixed $chunkSize

Returns

mixed —

fm_enc()

fm_enc(string  $text) : string

Encode html entities

Parameters

string $text

Returns

string —

fm_get_audio_exts()

fm_get_audio_exts() : array

Get audio files extensions

Returns

array —

fm_get_directorysize()

fm_get_directorysize(string  $directory) : int

Get total size of directory tree.

Parameters

string $directory

Relative or absolute directory name.

Returns

int —

Total number of bytes.

fm_get_file_icon_class()

fm_get_file_icon_class(string  $path) : string

Get CSS classname for file

Parameters

string $path

Returns

string —

fm_get_file_mimes()

fm_get_file_mimes(mixed  $extension) : mixed

Parameters

mixed $extension

Returns

mixed —

fm_get_filesize()

fm_get_filesize(int  $size) : string

Get nice filesize

Parameters

int $size

Returns

string —

fm_get_image_exts()

fm_get_image_exts() : array

Get image files extensions

Returns

array —

fm_get_mime_type()

fm_get_mime_type(string  $file_path) : mixed|string

Get mime type

Parameters

string $file_path

Returns

mixed|string —

fm_get_onlineViewer_exts()

fm_get_onlineViewer_exts() : array

Get online docs viewer supported files extensions

Returns

array —

fm_get_parent_path()

fm_get_parent_path(string  $path) : bool|string

Get parent path

Parameters

string $path

Returns

bool|string —

fm_get_size()

fm_get_size( $file) : int|string

Parameters

$file

Recover all file sizes larger than > 2GB. Works on php 32bits and 64bits and supports linux

Returns

int|string —

fm_get_text_exts()

fm_get_text_exts() : array

Get text file extensions

Returns

array —

fm_get_text_mimes()

fm_get_text_mimes() : array

Get mime types of text files

Returns

array —

fm_get_text_names()

fm_get_text_names() : array

Get file names of text files w/o extensions

Returns

array —

fm_get_theme()

fm_get_theme() : mixed

Returns

mixed —

fm_get_translations()

fm_get_translations(int  $tr) : array

get language translations from json file

Parameters

int $tr

Returns

array —

fm_get_video_exts()

fm_get_video_exts() : array

Get video files extensions

Returns

array —

fm_get_zif_info()

fm_get_zif_info(string  $path, mixed  $ext) : array|bool

Get info about zip archive

Parameters

string $path
mixed $ext

Returns

array|bool —

fm_is_exclude_items()

fm_is_exclude_items(string  $file) : bool

Check file is in exclude list

Parameters

string $file

Returns

bool —

fm_is_file_allowed()

fm_is_file_allowed(string  $filename) : bool

Check if the filename is allowed.

Parameters

string $filename

Returns

bool —

fm_is_utf8()

fm_is_utf8(string  $string) : int

Check if string is in UTF-8

Parameters

string $string

Returns

int —

fm_is_valid_ext()

fm_is_valid_ext(string  $filename) : bool

Check the file extension which is allowed or not

Parameters

string $filename

Returns

bool —

fm_isvalid_filename()

fm_isvalid_filename(string  $text) : string

Prevent XSS attacks

Parameters

string $text

Returns

string —

fm_mkdir()

fm_mkdir(string  $dir, bool  $force) : bool

Safely create folder

Parameters

string $dir
bool $force

Returns

bool —

fm_object_to_array()

fm_object_to_array( $obj) : array

Parameters

$obj

Returns

array —

fm_rchmod()

fm_rchmod(string  $path, int  $filemode, int  $dirmode) : bool

Recursive chmod

Parameters

string $path
int $filemode
int $dirmode

Returns

bool —

fm_rcopy()

fm_rcopy(string  $path, string  $dest, bool  $upd = true, bool  $force = true) : bool

Copy file or folder (recursively).

Parameters

string $path
string $dest
bool $upd

Update files

bool $force

Create folder with same names instead file

Returns

bool —

fm_rdelete()

fm_rdelete(string  $path) : bool

Delete file or folder (recursively)

Parameters

string $path

Returns

bool —

fm_redirect()

fm_redirect(string  $url, int  $code = 302) : mixed

HTTP Redirect

Parameters

string $url
int $code

Returns

mixed —

fm_rename()

fm_rename(string  $old, string  $new) : bool|null

Safely rename

Parameters

string $old
string $new

Returns

bool|null —

fm_set_msg()

fm_set_msg(string  $msg, string  $status = 'ok') : mixed

Save message in session

Parameters

string $msg
string $status

Returns

mixed —

fm_show_footer()

fm_show_footer() : mixed

Show page footer

Returns

mixed —

fm_show_footer_login()

fm_show_footer_login() : mixed

Show page footer in Login Form

Returns

mixed —

fm_show_header()

fm_show_header() : mixed

Show Header after login

Returns

mixed —

fm_show_header_login()

fm_show_header_login() : mixed

Show page header in Login Form

Returns

mixed —

fm_show_message()

fm_show_message() : mixed

Show message from session

Returns

mixed —

fm_show_nav_path()

fm_show_nav_path(string  $path) : mixed

Show nav block

Parameters

string $path

Returns

mixed —

G()

G(string  $name, mixed  $defv = '') : mixed

获取参数

Parameters

string $name
mixed $defv

Returns

mixed —

get_absolute_path()

get_absolute_path( $path) : string

Path traversal prevention and clean the url It replaces (consecutive) occurrences of / and \\ with whatever is in DIRECTORY_SEPARATOR, and processes /. and /.. fine.

Parameters

$path

Returns

string —

get_file_path()

get_file_path() : mixed

Returns

mixed —

getChecked()

getChecked(mixed  $conf, mixed  $val, mixed  $txt) : mixed

Parameters

mixed $conf
mixed $val
mixed $txt

Returns

mixed —

getClientIP()

getClientIP() : mixed

Returns

mixed —

getLatelyTime()

getLatelyTime(mixed  $type = '') : mixed

统计最近一个月上传文件数与空间占用

Parameters

mixed $type

Returns

mixed —

getSelected()

getSelected(mixed  $l) : mixed

Parameters

mixed $l

Returns

mixed —

getUploadExt()

getUploadExt() : mixed

Returns

mixed —

grabImage()

grabImage( $url,  $filename = "") : mixed

远程抓取图片并保存

Parameters

$url

图片url

$filename

保存名称和路径

Returns

mixed —

lng()

lng(string  $txt) : string

Language Translation System

Parameters

string $txt

Returns

string —

read_chart_total()

read_chart_total() : mixed

Returns

mixed —

read_total_json()

read_total_json(mixed  $total) : mixed

Parameters

mixed $total

Returns

mixed —

scan()

scan(string  $dir, string  $filter = '') : \json

This function scans the files and folder recursively, and return matching files

Parameters

string $dir
string $filter

Returns

\json —

session_error_handling_function()

session_error_handling_function(mixed  $code, mixed  $msg, mixed  $file, mixed  $line) : mixed

Parameters

mixed $code
mixed $msg
mixed $file
mixed $line

Returns

mixed —

total_files()

total_files(mixed  $file) : mixed

Parameters

mixed $file

Returns

mixed —

write_chart_total()

write_chart_total() : mixed

Returns

mixed —