$feedimport_result = $feedimport_result[0];
$feedimport_result['cnt_object'] = @unserialize($feedimport_result['cnt_object']);
}
if (isset($feedimport_result['cnt_object']['structure_level_id'])) {
// retrieve Feed now
// Load SimplePie
require_once PHPWCMS_ROOT . '/include/inc_ext/simplepie.inc.php';
$rss_obj = new SimplePie();
// Feed URL
$rss_obj->set_feed_url($feedimport_result['cnt_text']);
// Output Encoding Charset
$rss_obj->set_output_encoding(PHPWCMS_CHARSET);
// Disable Feed cache
$rss_obj->enable_cache(false);
// Remove surrounding DIV
$rss_obj->remove_div(true);
// Init Feed
$rss_obj->init();
if ($rss_obj->data) {
$feedimport_result['status'] = array('Feed Importer Status - ' . date('Y-m-d, H:i:s') . LF . '===========================================', $feedimport_result['cnt_name'] . LF . $feedimport_result['cnt_text'] . LF);
if (!empty($feedimport_result['cnt_object']['image_url_replace'])) {
$feedimport_result['cnt_object']['image_url_replace'] = explode('>', $feedimport_result['cnt_object']['image_url_replace']);
$feedimport_result['cnt_object']['image_url_replace'][0] = trim(trim($feedimport_result['cnt_object']['image_url_replace'][0]), '"');
if (isset($feedimport_result['cnt_object']['image_url_replace'][1])) {
$feedimport_result['cnt_object']['image_url_replace'][1] = trim(trim($feedimport_result['cnt_object']['image_url_replace'][1]), '"');
}
} else {
$feedimport_result['cnt_object']['image_url_replace'] = array(0 => '', 1 => '');
}
if (empty($feedimport_result['cnt_object']['image_folder_id'])) {
$feedimport_result['cnt_object']['image_folder_id'] = 0;