"; $arr[] = rawurlencode($key."[]")."=".rawurlencode($value); } } else $arr[] = $key."=".rawurlencode($val); } return implode("&", $arr); } /* * return all values of a mapping as an array */ function values($arr) { $res = array(); while(list($k, $v) = each($arr)) $res[] = $v; return $res; } /* * format date */ function makedate($time) { return date("F d, Y H:i:s", $time); } function get_remote() { global $REMOTE_HOST, $REMOTE_ADDR; if($REMOTE_HOST) $ip = $REMOTE_HOST; else $ip = $REMOTE_ADDR; return $ip; } function htmlify_urls($text) { //FIXME: wonder what the syntax is, this doesn't seem to work // $text = strip_tags($text, ",,,