Constants

ACTAPPCODE

ACTAPPCODE = true

DAY_IN_SECONDS

DAY_IN_SECONDS = 24 * HOUR_IN_SECONDS

ESPCMS_ADD_ENCODE

ESPCMS_ADD_ENCODE = '7c9d84a1829cb876fd7bfbd9613b259f'

ESPCMS_ADMIN_DIRNAME

ESPCMS_ADMIN_DIRNAME = 'espcms_admin'

ESPCMS_ADMIN_PATH

ESPCMS_ADMIN_PATH = dirname(__FILE__) . '/'

ESPCMS_ADMIN_PATH_FILE

ESPCMS_ADMIN_PATH_FILE = dirname(__FILE__)

ESPCMS_ADMIN_RUN_MODULE

ESPCMS_ADMIN_RUN_MODULE = 'Portal/login'

ESPCMS_ADMIN_THEMES_NAME

ESPCMS_ADMIN_THEMES_NAME = 'espcms_admin_templates'

ESPCMS_ADMIN_URL

ESPCMS_ADMIN_URL = espcms_host('AP')

ESPCMS_CACHE_DBLIST_NAME

ESPCMS_CACHE_DBLIST_NAME = 'espcms_list_'

ESPCMS_CACHE_DBREAD_NAME

ESPCMS_CACHE_DBREAD_NAME = 'espcms_read_'

ESPCMS_CACHE_FIELD_NAME

ESPCMS_CACHE_FIELD_NAME = 'espcms_field_'

ESPCMS_CACHE_TIME

ESPCMS_CACHE_TIME = 60

ESPCMS_CREAT

ESPCMS_CREAT = $lng

ESPCMS_CREAT

ESPCMS_CREAT = $_POST['lng']

ESPCMS_CREAT

ESPCMS_CREAT = $_POST['lng']

ESPCMS_CREAT

ESPCMS_CREAT = $creat_lng

ESPCMS_CREAT

ESPCMS_CREAT = $lng

ESPCMS_DEBUG

ESPCMS_DEBUG = false

ESPCMS_DEBUG_LOG

ESPCMS_DEBUG_LOG = false

ESPCMS_DISPLAY_EER

ESPCMS_DISPLAY_EER = true

ESPCMS_FILE_ROOT

ESPCMS_FILE_ROOT = dirname(__FILE__) . '/'

ESPCMS_FILE_ROOT

ESPCMS_FILE_ROOT = str_replace(ESPCMS_ADMIN_DIRNAME, '', ESPCMS_ADMIN_PATH_FILE)

ESPCMS_FILE_ROOT

ESPCMS_FILE_ROOT = 'E:\\web\\ESPCMSV7_INSTALL\\'

ESPCMS_FILE_ROOT

ESPCMS_FILE_ROOT = 'E:\\web\\ESPCMSV7_INSTALL\\'

ESPCMS_FILE_ROOT

ESPCMS_FILE_ROOT = str_replace(ESPCMS_INSTALL_DIRNAME, '', ESPCMS_INSTALL_PATH)

ESPCMS_FUN_PREFIX

ESPCMS_FUN_PREFIX = 'in_'

ESPCMS_INSTALL_DIRNAME

ESPCMS_INSTALL_DIRNAME = 'espcms_install'

ESPCMS_INSTALL_PATH

ESPCMS_INSTALL_PATH = dirname(__FILE__)

ESPCMS_ISADMIN

ESPCMS_ISADMIN = true

ESPCMS_ISCACHE

ESPCMS_ISCACHE = true

ESPCMS_LANG

ESPCMS_LANG = 'zh_CN'

ESPCMS_QUERST_ADD

ESPCMS_QUERST_ADD = 'DregA4tGMzwHGhvl4OQDSW++dH1mNe/whkRMb01+9byquZMkff8jD2kaPbexzocK'

ESPCMS_QUERST_ADD_LONG

ESPCMS_QUERST_ADD_LONG = '25+iCO+h7QQOXLp2OoRlLpcOgqik9w2BKV0Fm2iEykLXBFvIpTZPEblkJYwTHpj22tyEOwm7IGIrn44seVwZeA=='

ESPCMS_SETUP_RUN_AC

ESPCMS_SETUP_RUN_AC = 'Setup'

ESPCMS_SETUP_RUN_AT

ESPCMS_SETUP_RUN_AT = 'SetupIndex'

ESPCMS_TEMPLATES_PATH

ESPCMS_TEMPLATES_PATH = ESPCMS_ADMIN_URL . ESPCMS_ADMIN_THEMES_NAME . '/'

ESPCMS_URL

ESPCMS_URL = str_replace(ESPCMS_ADMIN_DIRNAME . '/', '', ESPCMS_ADMIN_URL)

ESPCMS_URL

ESPCMS_URL = preg_replace('/' . str_replace('/', '\/', ESPCMS_INSTALL_DIRNAME) . '(.*)/i', '', espcms_host('AP'))

ESPCMS_URL

ESPCMS_URL = preg_replace('/' . str_replace('/', '\/', $espcms_command['FILE_HTMLDIR']) . '(.*)/i', '', espcms_host('AP'))

ESPCMS_URL_RT

ESPCMS_URL_RT = espcms_host('RT')

ESPCMS_URL_RT

ESPCMS_URL_RT = espcms_host('RT')

ESPCMS_URL_RT

ESPCMS_URL_RT = str_replace(ESPCMS_ADMIN_DIRNAME . '/', '', espcms_host('RT'))

ESPCMS_WEB_LAN

ESPCMS_WEB_LAN = 'big5'

ESPCMS_WEB_LAN

ESPCMS_WEB_LAN = 'en'

ESPCMS_WEB_LAN

ESPCMS_WEB_LAN = $_POST['lng']

ESPCMS_WEB_LAN

ESPCMS_WEB_LAN = 'cn'

ESPCMS_WEB_PATH

ESPCMS_WEB_PATH = dirname(__FILE__) . '/'

ESPCMS_WEB_PATH

ESPCMS_WEB_PATH = dirname(__FILE__) . '/'

ESPCMS_WEB_PATH

ESPCMS_WEB_PATH = dirname(__FILE__) . '/'

ESPCMS_WEB_PATH_FILE

ESPCMS_WEB_PATH_FILE = dirname(__FILE__)

ESPCMS_WEB_PATH_FILE

ESPCMS_WEB_PATH_FILE = dirname(__FILE__)

ESPCMS_WEB_PATH_FILE

ESPCMS_WEB_PATH_FILE = dirname(__FILE__)

ESPCMS_WEB_RUN_AC

ESPCMS_WEB_RUN_AC = 'MainLoad'

ESPCMS_WEB_RUN_AT

ESPCMS_WEB_RUN_AT = 'Portal'

ESPCMS_WWW_URL

ESPCMS_WWW_URL = espcms_host('WWW_RT')

ESPCMS_WWW_URL

ESPCMS_WWW_URL = espcms_host('WWW_RT')

ESPCMS_WWW_URL

ESPCMS_WWW_URL = espcms_host('WWW_RT')

HOUR_IN_SECONDS

HOUR_IN_SECONDS = 60 * MINUTE_IN_SECONDS

MINUTE_IN_SECONDS

MINUTE_IN_SECONDS = 60

WEEK_IN_SECONDS

WEEK_IN_SECONDS = 7 * DAY_IN_SECONDS

YEAR_IN_SECONDS

YEAR_IN_SECONDS = 365 * DAY_IN_SECONDS

Functions

__autoload()

__autoload(  $class) 

Parameters

$class

__autoload()

__autoload(  $class) 

Parameters

$class

__autoload()

__autoload(  $class) 

Parameters

$class

add_magic_quotes()

add_magic_quotes(  $array) 

Parameters

$array

app_admin_file_list()

app_admin_file_list() 

app_admin_file_list()

app_admin_file_list() 

app_admin_file_list()

app_admin_file_list() 

app_db_list()

app_db_list() 

app_db_list()

app_db_list() 

app_db_list()

app_db_list() 

app_menu()

app_menu() 

app_menu()

app_menu() 

app_menu()

app_menu() 

app_web_file_list()

app_web_file_list() 

app_web_file_list()

app_web_file_list() 

app_web_file_list()

app_web_file_list() 

cache_id()

cache_id() 

dump_escape_string()

dump_escape_string(  $str) 

Parameters

$str

dump_null_string()

dump_null_string(  $str) 

Parameters

$str

espcms_action_url()

espcms_action_url(  $action) 

Parameters

$action

espcms_add_self_url()

espcms_add_self_url(  $add_url_key = array()) 

Parameters

$add_url_key

espcms_admin_template()

espcms_admin_template() 

espcms_array_findkey()

espcms_array_findkey(  $array = array(),   $field = false) 

Parameters

$array
$field

espcms_array_getvalue()

espcms_array_getvalue(  $var = array()) 

Parameters

$var

espcms_array_ismatches()

espcms_array_ismatches(  $array,   $matches = "/^[0-9]+$/i") 

Parameters

$array
$matches

espcms_array_keytokey()

espcms_array_keytokey(  $array = array(),   $key1 = false,   $key2 = false,   $key3 = false) 

Parameters

$array
$key1
$key2
$key3

espcms_array_onedim()

espcms_array_onedim(  $array = array(),   $array_key = false) 

Parameters

$array
$array_key

espcms_array_to_xml()

espcms_array_to_xml(  $arr) 

Parameters

$arr

espcms_bug_mode()

espcms_bug_mode() 

espcms_cache_constant()

espcms_cache_constant() 

espcms_combine_url()

espcms_combine_url(  $baseURL,   $keysArr = array(),   $left_str = '?') 

Parameters

$baseURL
$keysArr
$left_str

espcms_command()

espcms_command() 

espcms_curl_post()

espcms_curl_post(  $url = '',   $postData = '',   $options = array()) 

Parameters

$url
$postData
$options

espcms_cuthtml()

espcms_cuthtml(  $sourcestr,   $cutlength = 20,   $lenstr = '',   $allow = '') 

Parameters

$sourcestr
$cutlength
$lenstr
$allow

espcms_cutstr()

espcms_cutstr(  $sourcestr,   $cutlength = 20,   $lenstr = '',   $x3) 

Parameters

$sourcestr
$cutlength
$lenstr
$x3

espcms_db_del()

espcms_db_del(  $tableName,   $fieldName,   $value) 

Parameters

$tableName
$fieldName
$value

espcms_db_delall()

espcms_db_delall(  $tableName,   $where) 

Parameters

$tableName
$where

espcms_db_drop_table()

espcms_db_drop_table(  $tableName) 

Parameters

$tableName

espcms_db_format_where()

espcms_db_format_where(  $array = array(),   $where_field = false,   $where_link = " AND ") 

Parameters

$array
$where_field
$where_link

espcms_db_install_array_save()

espcms_db_install_array_save(  $tableName,   $postdb_array = array()) 

Parameters

$tableName
$postdb_array

espcms_db_install_save()

espcms_db_install_save(  $tableName,   $postdb_array = array()) 

Parameters

$tableName
$postdb_array

espcms_db_lastid()

espcms_db_lastid(  $tableName,   $id_field,   $return_field = null,   $order_type = 'DESC',   $db_where = '') 

Parameters

$tableName
$id_field
$return_field
$order_type
$db_where

espcms_db_left_join_read()

espcms_db_left_join_read(  $tableName_a,   $tableName_b,   $db_where,   $talbe_field_array_a = array(),   $talbe_field_array_b = array(),   $on_where = false) 

Parameters

$tableName_a
$tableName_b
$db_where
$talbe_field_array_a
$talbe_field_array_b
$on_where

espcms_db_list_array()

espcms_db_list_array(  $tableName,   $talbe_field_array = array(),   $db_where = false,   $db_order = false,   $limit = false) 

Parameters

$tableName
$talbe_field_array
$db_where
$db_order
$limit

espcms_db_list_out()

espcms_db_list_out(  $db_table,   $db_where = false,   $order_key = false,   $order_rank = 'DESC',   $limit = false,   $per_page_num = false,   $field_key = false) 

Parameters

$db_table
$db_where
$order_key
$order_rank
$limit
$per_page_num
$field_key

espcms_db_num()

espcms_db_num(  $tableName,   $db_where = null,   $num_str = '*') 

Parameters

$tableName
$db_where
$num_str

espcms_db_read()

espcms_db_read(  $tableName,   $db_where,   $talbe_field_array = array(),   $is_field_str = false) 

Parameters

$tableName
$db_where
$talbe_field_array
$is_field_str

espcms_db_read_field()

espcms_db_read_field(  $tableName,   $db_where,   $db_field) 

Parameters

$tableName
$db_where
$db_field

espcms_db_read_field_array()

espcms_db_read_field_array(  $tableName,   $db_where,   $db_field_array = array()) 

Parameters

$tableName
$db_where
$db_field_array

espcms_db_sum()

espcms_db_sum(  $tableName,   $talbe_field = false,   $db_where = false) 

Parameters

$tableName
$talbe_field
$db_where

espcms_db_truncate()

espcms_db_truncate(  $tableName) 

Parameters

$tableName

espcms_db_update_save()

espcms_db_update_save(  $tableName,   $db_where,   $postdb_array = array()) 

Parameters

$tableName
$db_where
$postdb_array

espcms_db_update_set_save()

espcms_db_update_set_save(  $tableName,   $db_where,   $save_field) 

Parameters

$tableName
$db_where
$save_field

espcms_decrypt()

espcms_decrypt(  $data,   $key) 

Parameters

$data
$key

espcms_del_session()

espcms_del_session(  $key) 

Parameters

$key

espcms_encrypt()

espcms_encrypt(  $data,   $key) 

Parameters

$data
$key

espcms_field_out()

espcms_field_out(  $tableName,   $clear_auto_increment = false,   $out_field = false,   $ex_field = false) 

Parameters

$tableName
$clear_auto_increment
$out_field
$ex_field

espcms_file_attachment_save()

espcms_file_attachment_save(  $file_attachment_linkid,   $file_attachment_type,   $file_attachment_content,   $file_attachment_title,   $file_attachment_filepath,   $file_attachment_ext,   $file_attachment_size,   $isdel = false) 

Parameters

$file_attachment_linkid
$file_attachment_type
$file_attachment_content
$file_attachment_title
$file_attachment_filepath
$file_attachment_ext
$file_attachment_size
$isdel

espcms_find_array_key()

espcms_find_array_key(  $array = array(),   $string = null,   $field = null,   $refield = null) 

Parameters

$array
$string
$field
$refield

espcms_find_in_set()

espcms_find_in_set(  $val = false,   $explode_str = false) 

Parameters

$val
$explode_str

espcms_format_money()

espcms_format_money(  $money,   $len = 2,   $sign = '¥') 

Parameters

$money
$len
$sign

espcms_get_ac()

espcms_get_ac(  $isget = 'get') 

Parameters

$isget

espcms_get_act()

espcms_get_act(  $isget = 'get') 

Parameters

$isget

espcms_get_app()

espcms_get_app(  $isget = 'get') 

Parameters

$isget

espcms_get_at()

espcms_get_at(  $isget = 'get') 

Parameters

$isget

espcms_get_auto_start()

espcms_get_auto_start() 

espcms_get_session()

espcms_get_session(  $key) 

Parameters

$key

espcms_get_timemessage()

espcms_get_timemessage(  $timenow) 

Parameters

$timenow

espcms_guid()

espcms_guid(  $opt = true) 

Parameters

$opt

espcms_h2t()

espcms_h2t(  $text = false,   $type = false) 

Parameters

$text
$type

espcms_host()

espcms_host(  $urlkey = null,   $ishttp = true) 

Parameters

$urlkey
$ishttp

espcms_ip()

espcms_ip(  $str,   $type = 1) 

Parameters

$str
$type

espcms_is_dir_writeable()

espcms_is_dir_writeable(  $dir) 

Parameters

$dir

espcms_isact()

espcms_isact(  $value,   $matches = "/^[\w]+\/[\w]+\/[\w]+$/i") 

Parameters

$value
$matches

espcms_isdata()

espcms_isdata(  $value,   $matches = "/^[\d]{4}\-[\d]{1,2}\-[\d]{1,2}$/i") 

Parameters

$value
$matches

espcms_isemail()

espcms_isemail(  $value,   $matches = "/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/i") 

Parameters

$value
$matches

espcms_isip()

espcms_isip(  $value,   $matches = "/^((25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))$/i") 

Parameters

$value
$matches

espcms_islongfig()

espcms_islongfig(  $value,   $matches = "/^[\d]+(,[\d]+)*$/i") 

Parameters

$value
$matches

espcms_ismatches()

espcms_ismatches(  $value,   $matches = "/^[0-9]+$/i") 

Parameters

$value
$matches

espcms_ismoblie()

espcms_ismoblie(  $value,   $matches = "/^1[0-9]{10}$/i") 

Parameters

$value
$matches

espcms_ismoney()

espcms_ismoney(  $value,   $matches = "/^(([0-9]\d{0,20})|0)(\.\d{1,3})?$/i") 

Parameters

$value
$matches

espcms_istime()

espcms_istime(  $value,   $matches = "/^[\d]{4}\-[\d]{1,2}\-[\d]{1,2} [\d]{1,2}:[\d]{1,2}:[\d]{1,2}$/i") 

Parameters

$value
$matches

espcms_istime_long()

espcms_istime_long(  $value,   $matches = "/^[\d]{4}\-[\d]{1,2}\-[\d]{1,2} [\d]{1,2}:[\d]{1,2}$/i") 

Parameters

$value
$matches

espcms_isurl()

espcms_isurl(  $value,   $matches = "/^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+$/i") 

Parameters

$value
$matches

espcms_lan_pack()

espcms_lan_pack(  $language_pack_code,   $format_code = array()) 

Parameters

$language_pack_code
$format_code

espcms_lancode()

espcms_lancode() 

espcms_load_constant()

espcms_load_constant() 

espcms_loadcheck_mysql_versions()

espcms_loadcheck_mysql_versions() 

espcms_loadcheck_php_curl()

espcms_loadcheck_php_curl() 

espcms_loadcheck_php_versions()

espcms_loadcheck_php_versions() 

espcms_log_install()

espcms_log_install(  $message_code,   $extras_message = null,   $admin_member_id) 

Parameters

$message_code
$extras_message
$admin_member_id

espcms_long_array()

espcms_long_array(  $array = array(),   $cut_str = '/',   $link_str = ',') 

Parameters

$array
$cut_str
$link_str

espcms_magic_quotes()

espcms_magic_quotes() 

espcms_message_err()

espcms_message_err(  $message_code,   $format_code = array()) 

Parameters

$message_code
$format_code

espcms_message_page_err()

espcms_message_page_err(  $message_code,   $goback_url = '',   $format_code = array(),   $facetype = 1,   $isbutton = true,   $isgoback = true) 

Parameters

$message_code
$goback_url
$format_code
$facetype
$isbutton
$isgoback

espcms_message_window_err()

espcms_message_window_err(  $message_code,   $format_code = array()) 

Parameters

$message_code
$format_code

espcms_out()

espcms_out(  $str) 

Parameters

$str

espcms_page_db()

espcms_page_db(  $db_table = '',   $db_where = '',   $is_json = false,   $db_num = '*',   $page_num = false) 

Parameters

$db_table
$db_where
$is_json
$db_num
$page_num

espcms_post()

espcms_post(  $postdb_array = array(),   $field_array = array(),   $is_empty_value = false,   $is_addslashes = false,   $update_key_array = false) 

Parameters

$postdb_array
$field_array
$is_empty_value
$is_addslashes
$update_key_array

espcms_post_array()

espcms_post_array(  $postdb_array = array(),   $field_array = array(),   $is_empty_value = false) 

Parameters

$postdb_array
$field_array
$is_empty_value

espcms_postdb()

espcms_postdb(  $url,   $data = '') 

Parameters

$url
$data

espcms_public_dialog()

espcms_public_dialog(  $domid_name = 'espcms_public_dialog',   $message_code = null,   $err_code = '',   $format_code = array(),   $return_type = 'json',   $return_array = array(),   $istoken = false,   $width = 720) 

Parameters

$domid_name
$message_code
$err_code
$format_code
$return_type
$return_array
$istoken
$width

espcms_random()

espcms_random(  $style_str = false) 

Parameters

$style_str

espcms_replace_arraytostr()

espcms_replace_arraytostr(  $formatval,   $array = array()) 

Parameters

$formatval
$array

espcms_screening_key()

espcms_screening_key(  $content = false,   $badword = false,   $is_filter = false) 

Parameters

$content
$badword
$is_filter

espcms_server_url()

espcms_server_url(  $type = false) 

Parameters

$type

espcms_server_vars()

espcms_server_vars() 

espcms_set_cookie()

espcms_set_cookie(  $key,   $value,   $time) 

Parameters

$key
$value
$time

espcms_set_session()

espcms_set_session(  $key,   $value) 

Parameters

$key
$value

espcms_setup_template()

espcms_setup_template() 

espcms_sort_terms()

espcms_sort_terms(  $a,   $b) 

Parameters

$a
$b

espcms_start_cache()

espcms_start_cache() 

espcms_style()

espcms_style(  $title = false,   $style = false) 

Parameters

$title
$style

espcms_t2h()

espcms_t2h(  $txt = false,   $is_preg = true) 

Parameters

$txt
$is_preg

espcms_text_to_html()

espcms_text_to_html(  $txt,   $is_preg = true) 

Parameters

$txt
$is_preg

espcms_timeformat()

espcms_timeformat(  $time,   $type = 3,   $font = '-',   $ddstr = '') 

Parameters

$time
$type
$font
$ddstr

espcms_url()

espcms_url() 

espcms_url_html_out()

espcms_url_html_out(  $action_key = array(),   $lng = false,   $end_oblink = true,   $is_html_extension = false) 

Parameters

$action_key
$lng
$end_oblink
$is_html_extension

espcms_url_out()

espcms_url_out(  $action_key = array(),   $is_rewrite = false,   $lng = false,   $type_path = false) 

Parameters

$action_key
$is_rewrite
$lng
$type_path

espcms_val_array_key()

espcms_val_array_key(  $value = false) 

Parameters

$value

espcms_web_lan_pack()

espcms_web_lan_pack(  $lng,   $language_code,   $format_code = array()) 

Parameters

$lng
$language_code
$format_code

espcms_web_template()

espcms_web_template(  $lng = false) 

Parameters

$lng

espcms_week()

espcms_week(  $time,   $type = 'cn',   $weekEm = true) 

Parameters

$time
$type
$weekEm

format_array_replace_string()

format_array_replace_string(  $formatval,   $replace_array = array()) 

Parameters

$formatval
$replace_array

format_size()

format_size(  $size,   $type) 

Parameters

$size
$type

get_htmlfilename()

get_htmlfilename(  $readfiletemplates,   $filetext = array(),   $protectval = null) 

Parameters

$readfiletemplates
$filetext
$protectval

ip_shift()

ip_shift(  $str,   $type = 1) 

Parameters

$str
$type

is_token()

is_token(  $tokenname,   $tokenkey) 

Parameters

$tokenname
$tokenkey

linkOut()

linkOut(  $action_key = array()) 

Parameters

$action_key

random()

random(  $length = 6,   $numeric = false) 

Parameters

$length
$numeric

random_code()

random_code(  $len1 = 10,   $len2 = 8) 

Parameters

$len1
$len2

real_remote_ip()

real_remote_ip(  $iplong = false) 

Parameters

$iplong

real_server_ip()

real_server_ip(  $iplong = false) 

Parameters

$iplong

remove_comment()

remove_comment(  $var) 

Parameters

$var

request_url()

request_url() 

require_espcms_link_db()

require_espcms_link_db() 

stripslashes_deep()

stripslashes_deep(  $value) 

Parameters

$value

token()

token(  $token_px = false) 

Parameters

$token_px

treelist()

treelist(  $text,   $fontline = '─') 

Parameters

$text
$fontline

unArrayEmpty()

unArrayEmpty(  $array) 

Parameters

$array

unArrayValue()

unArrayValue(  $array,   $val) 

Parameters

$array
$val

zoom()

zoom(  $picfile,   $dstW = 200,   $dstH = 200,   $iszoom = 1,   $bgcolor = null) 

Parameters

$picfile
$dstW
$dstH
$iszoom
$bgcolor