*
* "htmlentities" - Use the function htmlentities()
* "utf8_decode" - Use the function ut8_decode() when you have UTF8 encoded text
+ * <empty> - Use non of both
*
* @access private
* @var string
*/
- var $_decoding_mode = 'utf8_decode';
+ var $_decoding_mode = '';
/**
* If $_link_target is set a target='xxx' attribute in each <a /> and <form accept-charset="utf-8" /> html tag will be added
* @return string Displays RDF Content ( using _display() )
* @see _remote_file, cache()
*/
- function finish($return = false)
- {
+ function finish($return = false) {
+ $this->out = str_replace('$', '$', $this->out);
+
if (!$return) {
echo $this->out;
} else {
* @return string Displays RDF Content ( using _display() )
* @see _remote_file, cache()
*/
- function use_dynamic_display( $bool )
- {
+ function use_dynamic_display( $bool ) {
$this->_use_dynamic_display = $bool;
return true;
}
* @param string $data RDF File XML Data
* @see _clear_Items()
*/
- function _parse_xRDF( $data )
- {
+ function _parse_xRDF( $data ) {
$this->_clear_Items();
$xml_parser = xml_parser_create();
xml_set_object($xml_parser,$this);
$this->_throw_exception(sprintf("XML error: %s at line %d",
xml_error_string(xml_get_error_code($xml_parser)),
xml_get_current_line_number($xml_parser)).'<br /><br />Exception in function parse_RDF().');
- }
+ } // END - if
xml_parser_free($xml_parser);
}
* @access public
* @author Stefan Saasen <s@fase4.com>
* @param int $seconds time files will be cached (in seconds).
- * @return boolean
- * @see _refresh
+ * @return boolean
+ * @see _refresh
*/
- function set_refresh( $seconds )
- {
+ function set_refresh( $seconds ) {
$this->_refresh = (time() - $seconds);
return true;
}
- function set_salt( $saltPara )
- {
+ function set_salt( $saltPara ) {
$this->salt = $saltPara;
return true;
}
case 'textinput':
if(isset($this->_display_opt['textinput']) && ($this->_display_opt['textinput'] != 'hidden') && $this->_item['name'] && $this->_item['link']) {
$this->_output .= "<tr><td class=\"fase4_rdf\">\n";
- $this->_output .= "<form accept-charset=\"utf-8\" action=\"".$this->_item['link']."\" ";
+ $this->_output .= "<form accept-charset=\"UTF-8\" action=\"".$this->_item['link']."\" ";
if(isset($this->_link_target)) { $this->_output .= "target=\"".$this->_link_target."\" "; }
$this->_output .= "method=\"get\">\n";
$this->_output .= "<div class=\"fase4_rdf_title\">".$this->_item['title']."</div>";
$_cache_f = $this->_cache_dir.$this->_cached_file;
- if ( (!file_exists($_cache_f)) || (filemtime($_cache_f) < $this->_refresh) || (filesize($_cache_f) == '0')) {
+ if ( (!file_exists($_cache_f)) || (filemtime($_cache_f) < $this->_refresh) || (filesize($_cache_f) == 0)) {
// We have to parse the remote file
$this->_use_cached_file = false;
// --> we want to provide proper Information for Use in
// get_cache_update_time()
clearstatcache();
if($this->_use_dynamic_display == true) {
- $_rdf = @implode(' ', $this->_rdf_data()); // -> proxy
+ $_rdf = implode(' ', $this->_rdf_data()); // -> proxy
if(!$_rdf) {
$this->_throw_exception( $this->_remote_file.' is not available' );
}
$this->_update_cache( $_rdf );
$data = $this->_output;
} else {
- $_rdf = @implode(' ', $this->_rdf_data()); // -> proxy
+ $_rdf = implode(' ', $this->_rdf_data()); // -> proxy
if(!$_rdf) {
$this->_throw_exception( $this->_remote_file.' is not available' );
}
$this->_parse_xRDF( implode(' ', file($_cache_f)) );
$data = $this->_output;
} else {
- $data = @implode(' ', file($_cache_f));
+ $data = implode(' ', file($_cache_f));
}
}
return trim($data);
if($arr[0]=='') {
$path = '/';
}
- for($i = '0';$i<$c;$i++)
- {
+ for($i = '0';$i<$c;$i++) {
if($arr[$i]!='') {
$path .= $arr[$i].'/';
if(!@is_dir($path)) {
}
$i++;
}
- if ((count($dummy) > 0) && (count($reply) == '0') && (!$isContent)) {
+ if ((count($dummy) > 0) && (count($reply) == 0) && (!$isContent)) {
// Transfer content from dummy
$reply = $content;
}