base
[ class tree: base ] [ index: base ] [ all elements ]

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)



[ Top ]



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




[ Top ]



kimono_constant_to_string [line 184]

void kimono_constant_to_string( mixed $constant)

convert known constants to strings, for more comprehensive xml files



[ Top ]



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



[ Top ]



kimono_debug_load_all_services [line 373]

void kimono_debug_load_all_services( )



[ Top ]



kimono_disabled_service [line 102]

void kimono_disabled_service( mixed $service)

returns TRUE if service is disabled in config, else FALSE



[ Top ]



kimono_dump_var [line 213]

void kimono_dump_var( mixed $var)

convert known strings to constants, for more comprehensive xml files



[ Top ]



kimono_generate_id [line 76]

void kimono_generate_id( [mixed $size = 8])

generate a semi-random id



[ Top ]



kimono_get_ip [line 312]

void kimono_get_ip( )



[ Top ]



kimono_get_permission_type [line 228]

void kimono_get_permission_type( mixed $value)



[ Top ]



kimono_http_post [line 417]

void kimono_http_post( mixed $host, mixed $data_to_send)



[ Top ]



kimono_mem_usage [line 145]

void kimono_mem_usage( )



[ Top ]



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:

todo:  ability to use another SMTP than system?
todo:  should we validate email addresses?


[ Top ]



kimono_send_statistics [line 399]

void kimono_send_statistics( )

send anonymous statistics to downshift.org



Tags:

todo:  send language as well?


[ Top ]



kimono_translate_daemon_command [line 153]

void kimono_translate_daemon_command( mixed $command)



[ Top ]



kimono_translate_service_status [line 167]

void kimono_translate_service_status( mixed $status)



[ Top ]



kimono_uptime [line 115]

void kimono_uptime( mixed $seconds)



[ Top ]



kimono_validate_email [line 289]

void kimono_validate_email( mixed $email)



[ Top ]



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



[ Top ]



timer_endtime [line 135]

void timer_endtime( )



[ Top ]



timer_starttime [line 128]

void timer_starttime( )



[ Top ]



Documentation generated on Fri, 8 Apr 2005 18:27:50 +0200 by phpDocumentor 1.3.0RC3