Procedural File: kernel_lib.php
Source Location: /kernel/kernel_lib.php
Page Details:
Tags:
Includes:
EMAIL_ADDRESS_REGEX [line 357]
array_diff_keys [line 707]
bit_http_request [line 556]
FALSE bit_http_request(
string $pUrl, [boolean $pNoCurl = FALSE])
|
|
Fetch the contents of a file on a remote host
Tags:
Parameters
string |
$pUrl |
url to file to fetch |
boolean |
$pNoCurl |
skip the use of curl if this causes problems |
bit_redirect [line 672]
void bit_redirect(
string $pUrl, [ $pStatusCode = HttpStatusCodes::HTTP_FOUND])
|
|
Redirect to another page or site
Parameters
string |
$pUrl |
The url to redirect to |
|
$pStatusCode |
|
bw_is_writeable [line 200]
TRUE bw_is_writeable(
array $pPath)
|
|
check to see if particular directories are wroteable by bitweaver added check for Windows - wolff_borg - see http://bugs.php.net/bug.php?id=27609
Tags:
Parameters
array |
$pPath |
path to file or dir |
chkgd2 [line 895]
clean_file_path [line 775]
TRUE clean_file_path(
array $pPath)
|
|
Cleans file path according to system we're on
Tags:
Parameters
compare_backlinks [line 846]
void compare_backlinks(
$ar1, $ar2)
|
|
Parameters
compare_changed [line 882]
void compare_changed(
$ar1, $ar2)
|
|
Parameters
compare_files [line 866]
void compare_files(
$ar1, $ar2)
|
|
Parameters
compare_images [line 858]
void compare_images(
$ar1, $ar2)
|
|
Parameters
compare_links [line 842]
void compare_links(
$ar1, $ar2)
|
|
Parameters
compare_versions [line 874]
void compare_versions(
$ar1, $ar2)
|
|
Parameters
copy_r [line 524]
void copy_r(
array $pSource, array $pTarget)
|
|
recursively copy the contents of a directory to a new location akin to copy -r
Tags:
Parameters
array |
$pSource |
source directory |
array |
$pTarget |
target directory |
deprecated [line 292]
void deprecated(
[array $pReplace = NULL])
|
|
simple function to include in deprecated function calls. makes the developer replace with newer code
Tags:
Parameters
array |
$pReplace |
code that needs replacing |
detoxify [line 235]
void detoxify(
&$pParamHash, [boolean $pHtml = FALSE], [boolean $pUrldecode = TRUE], array $pParamHash)
|
|
clean up an array of values and remove any dangerous html - particularly useful for cleaning up $_GET and $_REQUEST. Turn off urldecode when detoxifying $_GET or $_REQUEST - these two are always urldecoded done by PHP itself (check docs). If you urldecode $_GET twice there might be unexpected consequences (like page One%2BTwo --(PHP)--> One+Two --(you)--> One Two).
Tags:
Parameters
array |
$pParamHash |
array to be cleaned |
boolean |
$pHtml |
set true to escape HTML code as well |
boolean |
$pUrldecode |
set true to urldecode as well |
|
&$pParamHash |
|
encode_email_addresses [line 358]
void encode_email_addresses(
$pData)
|
|
Parameters
file_get_contents [line 72]
void file_get_contents(
$pFile)
|
|
Parameters
file_name_to_title [line 259]
clean file_name_to_title(
string $pFileName)
|
|
file_name_to_title
Tags:
Parameters
function_enabled [line 317]
TRUE function_enabled(
$pName)
|
|
Check that function is enabled on server.
Tags:
Parameters
get_include_contents [line 468]
a get_include_contents(
$pFile $pFile)
|
|
get_include_contents -- handy function for getting the contents of a php include as a string
Tags:
Parameters
$pFile |
$pFile |
the file to include |
get_temp_dir [line 94]
Return system defined temporary directory. In Unix, this is usually /tmp In Windows, this is usually c:\windows\temp or c:\winnt\temp
Tags:
httpPrefix [line 784]
httpScheme [line 780]
install_error [line 795]
none install_error(
[ $pMsg = null], string $)
|
|
If an unrecoverable error has occurred, this method should be invoked. script exist occurs
Tags:
Parameters
string |
$ |
pMsg error message to be displayed |
|
$pMsg |
|
is_windows [line 121]
mb_substr [line 31]
void mb_substr(
$str, $start, [ $len = ''], [ $encoding = "UTF-8"])
|
|
Check mb_substr availability
Parameters
|
$str |
|
|
$start |
|
|
$len |
|
|
$encoding |
|
mkdir_p [line 137]
TRUE mkdir_p(
array $pTarget, [float $pPerms = 0755])
|
|
Recursively create directories
Tags:
Parameters
array |
$pTarget |
target directory |
float |
$pPerms |
octal permissions |
ordinalize [line 749]
void ordinalize(
numeric $num)
|
|
ordinalize
Tags:
Parameters
numeric |
$num |
Number to append th, st, nd, rd to - only makes sense when languages is english |
parse_xml_attributes [line 630]
TRUE parse_xml_attributes(
array $pString)
|
|
Parse XML Attributes and return an array this function has a whopper of a RegEx. I nabbed it from http://www.phpbuilder.com/annotate/message.php3?id=1000234 - XOXO spiderr
Tags:
Parameters
array |
$pString |
XML type string of parameters |
pear_check [line 815]
string pear_check(
[string $pPearModule = NULL])
|
|
pear_check will check to see if a given PEAR module is installed
Tags:
Parameters
string |
$pPearModule |
The name of the module in the format: Image/GraphViz.php |
r_compare_backlinks [line 854]
void r_compare_backlinks(
$ar1, $ar2)
|
|
Parameters
r_compare_changed [line 886]
void r_compare_changed(
$ar1, $ar2)
|
|
Parameters
r_compare_files [line 870]
void r_compare_files(
$ar1, $ar2)
|
|
Parameters
r_compare_images [line 862]
void r_compare_images(
$ar1, $ar2)
|
|
Parameters
r_compare_links [line 850]
void r_compare_links(
$ar1, $ar2)
|
|
Parameters
r_compare_versions [line 878]
void r_compare_versions(
$ar1, $ar2)
|
|
Parameters
storage_path_to_url [line 280]
a storage_path_to_url(
string $pPath)
|
|
path_to_url
Tags:
Parameters
string |
$pPath |
Relative path starting in the bitweaver root directory |
tra [line 487]
void tra(
string $pString)
|
|
Translate a string
Tags:
Parameters
string |
$pString |
String that needs to be translated |
trim_array [line 732]
void trim_array(
&$pArray, array $pArray)
|
|
trim_array
Tags:
Parameters
unlink_r [line 500]
TRUE unlink_r(
string $pPath, [boolean $pFollowLinks = FALSE])
|
|
recursively remove files and directories
Tags:
Parameters
string |
$pPath |
directory we want to remove |
boolean |
$pFollowLinks |
follow symlinks or not |
usort_by_title [line 834]
TRUE usort_by_title(
array $ar1, array $ar2)
|
|
A set of compare functions that can be used in conjunction with usort() type functions
Tags:
Parameters
validate_email_syntax [line 457]
a validate_email_syntax(
$pEmail $pEmail)
|
|
validate email syntax php include as a string
Tags:
Parameters
$pEmail |
$pEmail |
the file to include |
verify_hex_color [line 330]
void verify_hex_color(
$pColor)
|
|
Parameters
xmlentities [line 652]
TRUE xmlentities(
array $string, [array $quote_style = ENT_QUOTES])
|
|
XML Entity Mandatory Escape Characters
Tags:
Parameters
array |
$string |
|
array |
$quote_style |
|
|
|