\Phpcmf\LibraryInput

http://www.kaiqibao.net 本文件是框架系统文件,二次开发时不可以修改本文件,可以通过继承类方法来重写此文件

Summary

Methods
Properties
Constants
request()
post()
get()
get_post_ids()
set_cookie()
get_cookie()
ip_address()
ip2address()
ip_address_info()
get_user_agent()
system_log()
server_ip()
page()
table_page()
xss_clean()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$ip_address
N/A

Properties

$ip_address

$ip_address : 

Type

Methods

request()

request(  $name,   $xss = true) 

Parameters

$name
$xss

post()

post(  $name,   $xss = true) 

Parameters

$name
$xss

get()

get(  $name = '',   $xss = true) 

Parameters

$name
$xss

get_post_ids()

get_post_ids(  $name = 'ids') 

Parameters

$name

set_cookie()

set_cookie(  $name,   $value = '',   $expire = '') 

Parameters

$name
$value
$expire

get_cookie()

get_cookie(  $name) 

Parameters

$name

ip_address()

ip_address() 

ip2address()

ip2address(  $ip) 

Parameters

$ip

ip_address_info()

ip_address_info() 

get_user_agent()

get_user_agent() 

system_log()

system_log(  $action,   $insert) 

后台日志

Parameters

$action
$insert

server_ip()

server_ip() 

page()

page(  $url,   $total,   $dir = '') 

Parameters

$url
$total
$dir

table_page()

table_page(  $url,   $total,   $config,   $size) 

Parameters

$url
$total
$config
$size

xss_clean()

xss_clean(string|array<mixed,string>  $str, boolean  $is_image = FALSE) : string

XSS Clean

Parameters

string|array<mixed,string> $str

Input data

boolean $is_image

Whether the input is an image

Returns

string