common/functionfunction.php

公共函数库

Functions

get_ip_address()

get_ip_address(  $ip = '',   $type = null) 

Parameters

$ip
$type

get_visit_source()

get_visit_source() 

get_dir_chmod()

get_dir_chmod(  $dirName) 

Parameters

$dirName

pass_time()

pass_time(  $time) 

Parameters

$time

get_config()

get_config(  $field) : mixed

获取后台配置信息

Parameters

$field

Returns

mixed

is_default_password()

is_default_password() : boolean

判断当前登录永丰虎密码是否是默认密码

Returns

boolean

get_table_comment()

get_table_comment(  $table_name) : mixed

获取表备注

Parameters

$table_name

表名,包含前缀

Returns

mixed

id_encode()

id_encode(  $id) : string

id加密

Parameters

$id

Returns

string

id_decode()

id_decode(  $string) : string

id解密

Parameters

$string

Returns

string