-function _rss_encode_date($d) {
- if (preg_match('/^\d{14}$/', $d)) {
- $t = mktime(substr($d,8,2), substr($d,10,2), substr($d,12,2), substr($d,4,2), substr($d,6,2), substr($d,0,4));
- } else {
- $t = strtotime($d);
- }
- return utf8_encode(date('r', $t));
-}
-
-function to_rss ($s)
-{
- if(is_string($s)) {
- return iconv('ISO_8859-15', 'UTF8', $s);
- } else {
- return $s;
- }
-}
-