1 ? $plitParam[1] : TRUE; } try { require_once('../providers/' . $provider . '.php'); $provider = '\\Providers\\' . $provider; $provider = new $provider($feed, $parsedParams); $content = $provider->get(); } catch (Exception $e) { print $e->getMessage(); die(); } require_once('../lib/smarty3/Smarty.class.php'); $smarty = new Smarty(); $smarty->setCacheDir('../cache/smarty'); $smarty->setCompileDir('../cache/smarty/compile'); $smarty->setTemplateDir('../templates'); $smarty->assign('feedID', 'http://rss.emkael.info'.$_SERVER['REQUEST_URI']); $smarty->assign('feedTitle', $provider->title()); $smarty->assign('cacheTime', $provider->cacheTime()); $smarty->assign('user', $feed); $smarty->assign('content', $provider->get()); switch ($format) { case 'rss': header('Content-Type: application/rss+xml'); $smarty->display('rss.tpl'); break; case 'atom': default: header('Content-Type: application/atom+xml'); $smarty->display('atom.tpl'); break; } ?>