$img\n";
$arr_result[$url] = $img;
}
}
return($arr_result);
}
// 20:13 2012/4/13
function parsing_filckr_rss($p_feed) {
$p = xml_parser_create();
xml_parse_into_struct($p, file_get_contents($p_feed), $vals, $index);
xml_parser_free($p);
for($i=0;$i', 'left');
$str = _str_cut($str, '$img\n";
$arr_result[$url] = $img;
}
}
return($arr_result);
}
// 20:39 2012/4/13
function parsing_gallery3_rss($p_feed) {
$p = xml_parser_create();
xml_parse_into_struct($p, file_get_contents($p_feed), $vals, $index);
xml_parser_free($p);
for($i=0;$i$img\n";
$arr_result[$url] = $img;
$url = '';
}
}
return($arr_result);
}
/* 00:04 2012/4/9 Jonathan Tsai
Add for CardioTrainer
*/
function _str_cut($src, $keyword, $mode)
{
$keyword_pos = strpos($src, $keyword);
if ($mode == 'right') {
$result = substr($src, 0, $keyword_pos);
}
else {
$result = substr($src, $keyword_pos+strlen($keyword));
}
return $result;
}
?>