Procedural File: misc.php
Source Location: /include/misc.php
Classes:
Kimono_Counter
simple counter class, increments up to max_value, executes the callback function if any and resets to 0
Page Details:
helper functions and classes
kimono_check_ip [line 320]
void kimono_check_ip(
mixed $ip)
|
|
accepts single IP, range (x.x.x.x-x.x.x.x) or CIDR network (x.x.x.x/xx)
kimono_check_ip_network [line 359]
void kimono_check_ip_network(
mixed $network, mixed $ip)
|
|
checks wether an ip address is part of a network usage: $network="200.100.50.0/23"; $ip="200.100.51.55"; $ip2="200.100.52.2"; kimono_check_ip_network($network, $ip); //return TRUE kimono_check_ip_network($network, $ip2); //return FALSE
kimono_constant_to_string [line 184]
void kimono_constant_to_string(
mixed $constant)
|
|
convert known constants to strings, for more comprehensive xml files
kimono_datetime [line 60]
void kimono_datetime(
mixed $datetime, [mixed $false_response = '-'])
|
|
return $datetime with a proper format, or the $false_response if date is 0
kimono_debug_load_all_services [line 373]
void kimono_debug_load_all_services(
)
|
|
kimono_disabled_service [line 102]
void kimono_disabled_service(
mixed $service)
|
|
returns TRUE if service is disabled in config, else FALSE
kimono_dump_var [line 213]
void kimono_dump_var(
mixed $var)
|
|
convert known strings to constants, for more comprehensive xml files
kimono_generate_id [line 76]
void kimono_generate_id(
[mixed $size = 8])
|
|
generate a semi-random id
kimono_get_ip [line 312]
kimono_get_permission_type [line 228]
void kimono_get_permission_type(
mixed $value)
|
|
kimono_http_post [line 417]
void kimono_http_post(
mixed $host, mixed $data_to_send)
|
|
kimono_mem_usage [line 145]
kimono_send_email [line 259]
void kimono_send_email(
mixed $to, mixed $subject, mixed $message, [mixed $cc = FALSE], [mixed $bcc = FALSE], [mixed $priority = FALSE])
|
|
email wrapper function
Tags:
kimono_send_statistics [line 399]
void kimono_send_statistics(
)
|
|
send anonymous statistics to downshift.org
Tags:
kimono_translate_daemon_command [line 153]
void kimono_translate_daemon_command(
mixed $command)
|
|
kimono_translate_service_status [line 167]
void kimono_translate_service_status(
mixed $status)
|
|
kimono_uptime [line 115]
void kimono_uptime(
mixed $seconds)
|
|
kimono_validate_email [line 289]
void kimono_validate_email(
mixed $email)
|
|
kimono_validate_name [line 300]
void kimono_validate_name(
mixed $string, [mixed $minlen = 1], [mixed $maxlen = 255], [mixed $alphanum = TRUE])
|
|
validate string according to given rules
timer_endtime [line 135]
timer_starttime [line 128]
|
|