diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-08-08 21:03:08 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-08-08 21:03:08 -0700 |
commit | d11c1c63c02e88b3c73336741a2240ccc18d3b02 (patch) | |
tree | af32bf9355c99c578f696aec91f66374acd82208 /boot.php | |
parent | 0bcd5522315649c8d4652b8bfaa9bec328b9d548 (diff) | |
download | volse-hubzilla-d11c1c63c02e88b3c73336741a2240ccc18d3b02.tar.gz volse-hubzilla-d11c1c63c02e88b3c73336741a2240ccc18d3b02.tar.bz2 volse-hubzilla-d11c1c63c02e88b3c73336741a2240ccc18d3b02.zip |
lots of fixes - most recent photo updates for contacts
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 23 |
1 files changed, 14 insertions, 9 deletions
@@ -177,19 +177,20 @@ function replace_macros($s,$r) { }} +if(! function_exists('load_translation_table')) { function load_translation_table($lang) { global $a; -} - +}} +if(! function_exists('t')) { function t($s) { global $a; if($a->strings[$s]) return $a->strings[$s]; return $s; -} +}} if(! function_exists('fetch_url')) { function fetch_url($url,$binary = false) { @@ -423,17 +424,20 @@ function xmlify($str) { return($buffer); }} +if(! function_exists('unxmlify')) { function unxmlify($s) { $ret = str_replace('&','&', $s); $ret = str_replace(array('<','>','"','''),array('<','>','"',"'"),$ret); return $ret; -} +}} +if(! function_exists('hex2bin')) { function hex2bin($s) { return(pack("H*",$s)); -} +}} +if(! function_exists('paginate')) { function paginate(&$a) { $o = ''; $stripped = ereg_replace("(&page=[0-9]*)","",$_SERVER['QUERY_STRING']); @@ -483,8 +487,9 @@ function paginate(&$a) { $o .= '</div>'."\r\n"; } return $o; -} +}} +if(! function_exists('expand_acl')) { function expand_acl($s) { if(strlen($s)) { @@ -495,9 +500,9 @@ function expand_acl($s) { return $a; } return array(); -} - +}} +if(! function_exists('sanitise_acl')) { function sanitise_acl(&$item) { $item = '<' . intval(notags(trim($item))) . '>'; -} +}} |