| version 1.50, 2007/02/01 12:45:35 |
version 1.51, 2007/02/01 18:12:24 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/functions.inc.php,v 1.49 2007-02-01 12:05:29 nepto Exp $ */ |
/* $Platon: Metafox/functions.inc.php,v 1.50 2007-02-01 12:45:35 nepto Exp $ */ |
| |
|
| function ezin_eval($evalcode) /* {{{ */ |
function ezin_eval($evalcode) /* {{{ */ |
| { |
{ |
| Line 342 function ezin_parse_allowed_tags($str) / |
|
| Line 342 function ezin_parse_allowed_tags($str) / |
|
| return $ret; |
return $ret; |
| } /* }}} */ |
} /* }}} */ |
| |
|
| |
function ezin_normalize_rss2_string($string) /* {{{ */ |
| |
{ |
| |
|
| |
$string = strip_tags($string); |
| |
$string = Platon::undo_htmlspecialchars($string); |
| |
$string = str_replace('&', '&', $string); |
| |
return $string; |
| |
} /* }}} */ |
| |
|
| /* |
/* |
| * Register access function |
* Register access function |
| */ |
*/ |
| Line 811 function ezin_load_template($template_ke |
|
| Line 820 function ezin_load_template($template_ke |
|
| <!-- <webMaster>webmaster@example.com</webMaster> --> |
<!-- <webMaster>webmaster@example.com</webMaster> --> |
| <|$article_items|> |
<|$article_items|> |
| </channel> |
</channel> |
| </rss>'; |
</rss>'."\n"; |
| } /* }}} */ |
} /* }}} */ |
| else if ($template_key == 'article_item.rss2') { /* {{{ */ |
else if ($template_key == 'article_item.rss2') { /* {{{ */ |
| return '<item> |
return '<item> |
| <title><|str_replace("&", "&", strip_tags($article_atitle))|></title> |
<title><| ezin_normalize_rss2_string($article_atitle) |></title> |
| <link>http://<|$_SERVER["HTTP_HOST"]|><|$article_link|></link> |
<link>http://<|$_SERVER["HTTP_HOST"]|><|$article_link|></link> |
| <pubDate><| gmdate("D, d M Y H:i:s", $article_timestamp) |> GMT</pubDate> |
<pubDate><| gmdate("D, d M Y H:i:s", $article_timestamp) |> GMT</pubDate> |
| <guid isPermaLink="false">article-item-<|$article_id|></guid> |
<guid isPermaLink="false">article-item-<|$article_id|></guid> |
| Line 825 function ezin_load_template($template_ke |
|
| Line 834 function ezin_load_template($template_ke |
|
| <|CMD| if (strlen($article_author_email) > 0): |> |
<|CMD| if (strlen($article_author_email) > 0): |> |
| <author><|$article_author_name|> <<|$article_author_email|>></author> |
<author><|$article_author_name|> <<|$article_author_email|>></author> |
| <|CMD| endif; |> |
<|CMD| endif; |> |
| <description><|str_replace("&", "&", strip_tags($article_hometext))|></description> |
<description><| ezin_normalize_rss2_string($article_hometext) |></description> |
| </item>'; |
</item>'."\n"; |
| } /* }}} */ |
} /* }}} */ |
| if (($pos = strrpos($template_key, '.')) === false) { |
if (($pos = strrpos($template_key, '.')) === false) { |
| break; |
break; |