framework/functionglobal.func.php

[WeEngine System] Copyright (c) 2014 WE7.CC WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.

Functions

ver_compare()

ver_compare(  $version1,   $version2) 

Parameters

$version1
$version2

iget_headers()

iget_headers(  $url,   $format) 

Parameters

$url
$format

igetimagesize()

igetimagesize(  $filename,   $imageinfo = array()) 

Parameters

$filename
$imageinfo

istripslashes()

istripslashes(  $var) 

Parameters

$var

ihtmlspecialchars()

ihtmlspecialchars(  $var) 

Parameters

$var

isetcookie()

isetcookie(  $key,   $value,   $expire,   $httponly = false) 

Parameters

$key
$value
$expire
$httponly

igetcookie()

igetcookie(  $key) 

Parameters

$key

getip()

getip() 

token()

token(  $specialadd = '') 

Parameters

$specialadd

random()

random(  $length,   $numeric = FALSE) 

Parameters

$length
$numeric

checksubmit()

checksubmit(  $var = 'submit',   $allowget = false) 

Parameters

$var
$allowget

complex_authkey()

complex_authkey() 

checkcaptcha()

checkcaptcha(  $code) 

Parameters

$code

tablename()

tablename(  $table) 

Parameters

$table

array_elements()

array_elements(  $keys,   $src,   $default = FALSE) 

Parameters

$keys
$src
$default

iarray_sort()

iarray_sort(  $array,   $keys,   $type = 'asc') 

Parameters

$array
$keys
$type

range_limit()

range_limit(  $num,   $downline,   $upline,   $returnNear = true) 

Parameters

$num
$downline
$upline
$returnNear

ijson_encode()

ijson_encode(  $value,   $options) 

Parameters

$value
$options

iserializer()

iserializer(  $value) 

Parameters

$value

iunserializer()

iunserializer(  $value) 

Parameters

$value

is_base64()

is_base64(  $str) 

Parameters

$str

is_serialized()

is_serialized(  $data,   $strict = true) 

Parameters

$data
$strict

wurl()

wurl(  $segment,   $params = array()) 

Parameters

$segment
$params

murl()

murl(  $segment,   $params = array(),   $noredirect = true,   $addhost = false) 

Parameters

$segment
$params
$noredirect
$addhost

pagination()

pagination(  $total,   $pageIndex,   $pageSize = 15,   $url = '',   $context = array('before' => 5, 'after' => 4, 'ajaxcallback' => '', 'callbackfuncname' => '')) 

Parameters

$total
$pageIndex
$pageSize
$url
$context

tomedia()

tomedia(  $src,   $local_path = false,   $is_cahce = false) 

Parameters

$src
$local_path
$is_cahce

to_global_media()

to_global_media(  $src) 

Parameters

$src

error()

error(  $errno,   $message = '') 

Parameters

$errno
$message

is_error()

is_error(  $data) 

Parameters

$data

detect_sensitive_word()

detect_sensitive_word(  $string) 

Parameters

$string

referer()

referer(  $default = '') 

Parameters

$default

strexists()

strexists(  $string,   $find) 

Parameters

$string
$find

cutstr()

cutstr(  $string,   $length,   $havedot = false,   $charset = '') 

Parameters

$string
$length
$havedot
$charset

istrlen()

istrlen(  $string,   $charset = '') 

Parameters

$string
$charset

emotion()

emotion(  $message = '',   $size = '24px') 

Parameters

$message
$size

authcode()

authcode(  $string,   $operation = 'DECODE',   $key = '',   $expiry) 

Parameters

$string
$operation
$key
$expiry

sizecount()

sizecount(  $size,   $unit = false) 

Parameters

$size
$unit

bytecount()

bytecount(  $str) 

Parameters

$str

array2xml()

array2xml(  $arr,   $level = 1) 

Parameters

$arr
$level

xml2array()

xml2array(  $xml) 

Parameters

$xml

scriptname()

scriptname() 

utf8_bytes()

utf8_bytes(  $cp) 

Parameters

$cp

media2local()

media2local(  $media_id,   $all = false) 

Parameters

$media_id
$all

aes_decode()

aes_decode(  $message,   $encodingaeskey = '',   $appid = '') 

Parameters

$message
$encodingaeskey
$appid

aes_encode()

aes_encode(  $message,   $encodingaeskey = '',   $appid = '') 

Parameters

$message
$encodingaeskey
$appid

aes_pkcs7_decode()

aes_pkcs7_decode(  $encrypt_data,   $key,   $iv = false) 

Parameters

$encrypt_data
$key
$iv

isimplexml_load_string()

isimplexml_load_string(  $string,   $class_name = 'SimpleXMLElement',   $options,   $ns = '',   $is_prefix = false) 

Parameters

$string
$class_name
$options
$ns
$is_prefix

ihtml_entity_decode()

ihtml_entity_decode(  $str) 

Parameters

$str

iarray_change_key_case()

iarray_change_key_case(  $array,   $case = CASE_LOWER) 

Parameters

$array
$case

parse_path()

parse_path(  $path) 

Parameters

$path

dir_size()

dir_size(  $dir) 

Parameters

$dir

get_first_pinyin()

get_first_pinyin(  $str) 

Parameters

$str

strip_emoji()

strip_emoji(  $nickname) 

Parameters

$nickname

emoji_unicode_decode()

emoji_unicode_decode(  $string) 

Parameters

$string

emoji_unicode_encode()

emoji_unicode_encode(  $string) 

Parameters

$string

starts_with()

starts_with(  $haystack,   $needles) 

Parameters

$haystack
$needles

icall_user_func()

icall_user_func(  $callback) 

Parameters

$callback