base64_decode_safe (line 167)
Decodes a string in a format similar to base64.
void
base64_decode_safe
( $text)
base64_encode_safe (line 157)
Encodes a string in a format similar to base64, but that can be used as a filename.
void
base64_encode_safe
( $text)
check_in_filetype (line 202)
Checks to see if the given filename has a passed extension. $filename does not have to be an actual existing file.
true
check_in_filetype
(string $filename, [mixed $ext = array()])
-
string
$filename: filename to check
-
mixed
$ext: string extension or array of extensions to check. Should not include a period.
collapse_dir (line 225)
This function takes all files under $start_dir and places them in
$dest_dir. All files are transformed from: ./foo/bar/quux to ./foo_bar_quux If there are any naming conflicts, the conflicts' basename will have a random (non-conflicting) 4-character string appended to it.
void
collapse_dir
( $dest_dir, [ $file_type_list = array()], [ $start_dir = "."], &$translation)
-
$dest_dir
-
$file_type_list
-
$start_dir
-
&$translation
ellipsize (line 30)
void
ellipsize
( $string, $limit, [ $repl = "..."], [ $strip_tags = true])
-
$string
-
$limit
-
$repl
-
$strip_tags
endsWith (line 18)
void
endsWith
( $str, $sub)
file_put_contents (line 112)
void
file_put_contents
( $n, $d, [ $flag = false])
find_matching_prefix_length (line 355)
void
find_matching_prefix_length
( $a, $b)
find_similar_text (line 337)
void
find_similar_text
( $haystack, $needle, [ $minimum_similarity = 0])
-
$haystack
-
$needle
-
$minimum_similarity
flatten_array (line 22)
void
flatten_array
( $value, $key, &$array)
fnmatch (line 248)
void
fnmatch
( $pattern, $string)
get_class_from_file (line 370)
Extracts class name from a file.
void
get_class_from_file
(string $filename)
-
string
$filename: filename to scan
get_owasp_vulnerability_content (line 312)
Loads an external vulnerability from OWASP
void
get_owasp_vulnerability_content
( $url)
memory_get_usage (line 81)
void
memory_get_usage
()
mime_extract_rfc2822_address (line 268)
void
mime_extract_rfc2822_address
( $string)
random_string (line 259)
Generates a random alphanumeric string.
void
random_string
([ $length = 10])
startsWith (line 14)
Does the provided string start with a specific substring? Case sensitive.
true
startsWith
(string $str, string $sub)
-
string
$str: string to search
-
string
$sub: substring to look for in $str
stripos (line 75)
void
stripos
( $haystack, $needle, [ $offset = 0])
-
$haystack
-
$needle
-
$offset
strripos (line 57)
void
strripos
( $haystack, $needle, [ $offset = 0])
-
$haystack
-
$needle
-
$offset
substr_in_array (line 179)
Checks to see if $needle is anywhere within any of the components of $haystack.
Works recursively.
void
substr_in_array
( $needle, $haystack)
sys_get_temp_dir (line 130)
void
sys_get_temp_dir
()
unlink_recursive (line 42)
void
unlink_recursive
( $dir, [ $del_self = false])