*/
function finish($return = false)
{
+ $this->out = str_replace('$', '$', $this->out);
+
if (!$return) {
echo $this->out;
} else {
}
$this->_output .= "<a href=\"".$this->_citem['link']."\" ";
if(isset($this->_link_target)) { $this->_output .= "target=\"".$this->_link_target."\" "; }
- $this->_output .= ">".$this->_cut_string($this->_citem['link'])."</a>";
+ $this->_output .= ">".$this->_cut_string($this->_citem['link']) . '</a>';
$this->_output .= "</td></tr>\n";
$this->_output .= "<tr><td><hr noshade width=\"100%\" size=\"1\"></td></tr>\n";
$this->_output .= "</table></td></tr>";
$this->_item['link'] = trim($this->_item['link']);
if ((!empty($this->_display_opt['refid'])) && (!empty($this->_item['link'])))
{
- if (!ereg('refid=', $this->_item['link'])) $this->_item['link'] .= '?refid=' . $this->_display_opt['refid'];
+ if (!isInString('refid=', $this->_item['link'])) $this->_item['link'] .= '?refid=' . $this->_display_opt['refid'];
}
switch ($name) {
case 'item':
// First remove all \n
$this->_item['description'] = str_replace('\n', ' ', $this->_item['description']);
// Wrap with <br />\n
- $this->_item['description'] = wordwrap($this->_item['description'], $this->_word_wrap, "*<br>\n");
+ $this->_item['description'] = wordwrap($this->_item['description'], $this->_word_wrap, "*<br />\n");
}
elseif (($this->_word_wrap == '0') && (!$this->_use_nl2br))
{
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>";
- $this->_output .= strip_tags($this->_item['description'], '<a>, <img>')."<br><br>\n";
+ $this->_output .= strip_tags($this->_item['description'], '<a>, <img>')."<br /><br />\n";
$this->_output .= "<input class=\"fase4_rdf_input\" type=\"text\" name=\"".$this->_item['name']."\"> \n";
$this->_output .= "<input class=\"fase4_rdf_input\" type=\"submit\" value=\"go\">";
$this->_output .= "</form>\n";
$_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
}
$i++;
}
- if ((count($dummy) > 0) && (count($reply) == '0') && (!$isContent)) {
+ if ((count($dummy) > 0) && (count($reply) == 0) && (!$isContent)) {
// Transfer content from dummy
$reply = $content;
}