; List of allowed functions for Template Conditionals plugin
; Note that although comments start with a ";" character, they aren't exactly ignored by the plugin
;  rather, no function can start with a ";", so it'll never match

; Logical operators (dodgy fix for parser which could think these are functions)
and
or
xor

array_change_key_case
array_chunk
array_combine
array_count_values
array_diff_assoc
array_diff_key
array_diff
array_fill_keys
array_fill
array_flip
array_intersect_assoc
array_intersect_key
array_intersect
array_key_exists
array_keys
array_merge_recursive
array_merge
array_multisort
array_pad
array_product
array_rand
array_replace
array_replace_recursive
array_reverse
array_search
array_slice
array_sum
array_unique
array_values
array
compact
count
current
each
end
in_array
key
next
pos
prev
range
reset
sizeof
get_class
get_class_vars
get_object_vars
get_parent_class
is_a
is_subclass_of
class_exists
class_implements
class_parents
class_uses
method_exists
property_exists
function_exists
abs
acos
acosh
asin
asinh
atan2
atan
atanh
base_convert
bindec
ceil
cos
cosh
decbin
dechex
decoct
defined
deg2rad
exp
expm1
floor
fmod
getrandmax
hex2bin
hexdec
hypot
is_finite
is_infinite
is_nan
lcg_value
log10
log1p
log
max
min
mt_getrandmax
mt_rand
octdec
pi
pow
rad2deg
rand
round
sin
sinh
sqrt
tan
tanh
get_browser
highlight_string
pack
uniqid
unpack
version_compare
addcslashes
addslashes
bin2hex
chop
chr
chunk_split
convert_cyr_string
convert_uudecode
convert_uuencode
count_chars
crc32
crypt
explode
get_html_translation_table
hebrev
hebrevc
html_entity_decode
htmlentities
htmlspecialchars_decode
htmlspecialchars
implode
join
levenshtein
localeconv
ltrim
md5
metaphone
money_format
nl_langinfo
nl2br
number_format
ord
quoted_printable_decode
quotemeta
rtrim
sha1
soundex
sprintf
vsprintf
str_getcsv
str_ireplace
str_pad
str_repeat
str_replace
str_rot13
str_shuffle
str_split
str_word_count
strcasecmp
strchr
strcmp
strcoll
strcspn
strip_tags
stripcslashes
stripos
stripslashes
stristr
strlen
strnatcasecmp
strnatcmp
strncasecmp
strncmp
strpbrk
strpos
strrchr
strrev
strripos
strrpos
strspn
strstr
strtok
strtolower
strtoupper
strtr
substr_compare
substr_count
substr_replace
substr
trim
lcfirst
ucfirst
ucwords
wordwrap
unicode_decode
unicode_encode
base64_decode
base64_encode
get_headers
http_build_cookie
http_build_query
http_build_str
http_build_url
http_chunked_decode
http_date
http_deflate
http_inflate
http_parse_cookie
http_parse_headers
http_parse_message
http_parse_params
parse_url
rawurldecode
rawurlencode
urldecode
urlencode
doubleval
empty
floatval
gettype
intval
is_array
is_binary
is_bool
is_buffer
is_double
is_float
is_int
is_integer
is_long
is_null
is_numeric
is_object
is_real
is_resource
is_scalar
is_string
is_unicode
isset
strval
utf8_decode
utf8_encode
basename
escapeshellarg
escapeshellcmd
fnmatch
hash
image_type_to_extension
image_type_to_mime_type
json_decode
json_encode
json_last_error
parse_ini_string
pathinfo
recode_string
recode
simplexml_load_string
token_name
token_get_all

;GZip/BZip
gzcompress
gzdecode
gzdeflate
gzencode
gzinflate
gzuncompress
bzcompress
bzdecompress

;BCMath
bcadd
bccomp
bcdiv
bcmod
bcmul
bcpow
bcpowmod
bcsqrt
bcsub

;Calendar extension
cal_days_in_month
cal_from_jd
cal_info
cal_to_jd
easter_date
easter_days
frenchtojd
gregoriantojd
jddayofweek
jdmonthname
jdtofrench
jdtogregorian
jdtojewish
jdtojulian
jdtounix
jewishtojd
juliantojd
unixtojd

;Date/Time
checkdate
date
date_parse
date_sun_info
date_sunrise
date_sunset
getdate
gettimeofday
gmdate
gmmktime
gmstrftime
idate
localtime
microtime
mktime
strftime
strptime
strtotime
time

;CType
ctype_alnum
ctype_alpha
ctype_cntrl
ctype_digit
ctype_graph
ctype_lower
ctype_print
ctype_punct
ctype_space
ctype_upper
ctype_xdigit

;Networking
dns_check_record
checkdnsrr
dns_get_mx
getmxrr
dns_get_record
gethostbyaddr
gethostbyname
gethostbynamel
gethostname
headers_list
inet_ntop
inet_pton
ip2long
long2ip

;iconv
iconv
iconv_get_encoding
iconv_mime_decode
iconv_mime_decode_headers
iconv_mime_encode
iconv_strlen
iconv_strpos
iconv_strrpos
iconv_substr

;mbstring
mb_check_encoding
mb_convert_case
mb_convert_encoding
mb_convert_kana
mb_decode_mimeheader
mb_decode_numericentity
mb_detect_encoding
mb_detect_order
mb_encode_mimeheader
mb_encode_numericentity
mb_encoding_aliases
mb_ereg_match
mb_get_info
mb_http_input
mb_list_encodings
mb_output_handler
mb_preferred_mime_name
mb_regex_encoding
mb_split
mb_strcut
mb_strimwidth
mb_stripos
mb_stristr
mb_strlen
mb_strpos
mb_strrchr
mb_strrichr
mb_strripos
mb_strrpos
mb_strstr
mb_strtolower
mb_strtoupper
mb_strwidth
mb_substr_count
mb_substr

;mcrypt
mcrypt_cbc
mcrypt_cfb
mcrypt_ecb
mcrypt_ofb
mcrypt_create_iv
mcrypt_decrypt
mcrypt_encrypt
mcrypt_get_block_size
mcrypt_get_cipher_name
mcrypt_get_iv_size
mcrypt_get_key_size
mcrypt_list_algorithms
mcrypt_list_modes

;mhash
mhash
mhash_count
mhash_get_block_size
mhash_get_hash_name
mhash_keygen_s2k

;OpenSSL
openssl_cipher_iv_length
openssl_decrypt
openssl_digest
openssl_encrypt
openssl_error_string
openssl_get_cipher_methods
openssl_get_md_methods
openssl_verify
openssl_x509_check_private_key
openssl_x509_checkpurpose
openssl_x509_parse

;ssdeep
ssdeep_fuzzy_hash
ssdeep_fuzzy_compare

;stats
stats_absolute_deviation
stats_cdf_beta
stats_cdf_binomial
stats_cdf_cauchy
stats_cdf_chisquare
stats_cdf_exponential
stats_cdf_f
stats_cdf_gamma
stats_cdf_laplace
stats_cdf_logistic
stats_cdf_negative_binomial
stats_cdf_noncentral_chisquare
stats_cdf_noncentral_f
stats_cdf_poisson
stats_cdf_t
stats_cdf_uniform
stats_cdf_weibull
stats_covariance
stats_den_uniform
stats_dens_beta
stats_dens_cauchy
stats_dens_chisquare
stats_dens_exponential
stats_dens_f
stats_dens_gamma
stats_dens_laplace
stats_dens_logistic
stats_dens_negative_binomial
stats_dens_normal
stats_dens_pmf_binomial
stats_dens_pmf_hypergeometric
stats_dens_pmf_poisson
stats_dens_t
stats_dens_weibull
stats_harmonic_mean
stats_kurtosis
stats_rand_gen_beta
stats_rand_gen_chisquare
stats_rand_gen_exponential
stats_rand_gen_f
stats_rand_gen_funiform
stats_rand_gen_gamma
stats_rand_gen_ibinomial_negative
stats_rand_gen_ibinomial
stats_rand_gen_int
stats_rand_gen_ipoisson
stats_rand_gen_iuniform
stats_rand_gen_noncenral_chisquare
stats_rand_gen_noncentral_f
stats_rand_gen_noncentral_t
stats_rand_gen_normal
stats_rand_gen_t
stats_rand_ranf
stats_rand_setall
stats_skew
stats_standard_deviation
stats_stat_binomial_coef
stats_stat_correlation
stats_stat_gennch
stats_stat_independent_t
stats_stat_innerproduct
stats_stat_noncentral_t
stats_stat_paired_t
stats_stat_percentile
stats_stat_powersum
stats_variance

;PCRE
preg_grep
preg_quote
preg_split

;xdiff
xdiff_string_diff
xdiff_string_diff_binary
xdiff_string_bdiff
xdiff_string_bdiff_size
xdiff_string_bpatch
xdiff_string_patch_binary
xdiff_string_bdiff

;================
;MyBB functions
add_breadcrumb
alt_trow
ban_date2timestamp
build_archive_link
build_profile_link
convert_through_utf8
dec_to_utf8
;escaped_explode
fetch_ban_times
fetch_longipv4_range
fetch_page_url
fix_mktime
format_bdays
format_name
generate_post_check
get_age
get_announcement_link
get_attachment_icon
get_bdays
get_calendar_link
get_calendar_week_link
get_colored_warning_level
get_current_location
get_event_date
get_event_link
get_event_poster
get_extension
get_forum
get_forum_link
get_friendly_size
get_inactive_forums
get_ip
get_parent_list
get_post
get_post_link
get_profile_link
get_reputation
get_thread
get_thread_link
get_unviewable_forums
get_user
get_weekday
htmlspecialchars_uni
is_banned_email
is_banned_ip
is_banned_username
is_moderator
is_super_admin
match_sequence
multipage
my_date
my_get_array_cookie
my_ip2long
my_long2ip
my_number_format
my_rand
my_strlen
my_strpos
my_strtolower
my_strtoupper
my_substr
my_wordwrap
nice_time
random_str
reset_breadcrumb
signed
subforums_count
trim_blank_chrs
unhtmlentities
unichr
unicode_chr
user_permissions
usergroup_permissions
validate_email_format

;PHPTPL functions
phptpl_eval_expr
phptpl_eval_text

;ob_* ?
; yaml?