17 include XOOPS_ROOT_PATH.
'/header.php';
18 $xoopsTpl->assign(
'xoops_pagetitle',
__(
'RSS Center',
'rmcommon'));
21 $feeds =
RMEvents::get()->run_event(
'rmcommon.get.feeds.list', $feeds);
24 include
RMTemplate::get()->get_template(
'rmc_rss_center.php',
'module',
'rmcommon');
26 include XOOPS_ROOT_PATH.
'/footer.php';
33 include_once
$GLOBALS[
'xoops']->path(
'class/template.php');
34 $tpl =
new XoopsTpl();
38 redirect_header(
'backend.php', 1,
__(
'Choose an option to see its feed',
'rmcommon'));
42 if (!file_exists(XOOPS_ROOT_PATH.
'/modules/'.$module.
'/rss.php')){
43 redirect_header(
'backend.php', 1,
__(
'This module does not support rss feeds',
'rmcommon'));
47 $GLOBALS[
'xoopsLogger']->activated =
false;
48 if (function_exists(
'mb_http_output')) {
49 mb_http_output(
'pass');
51 header(
'Content-Type:text/xml; charset=utf-8');
53 include XOOPS_ROOT_PATH.
'/modules/'.$module.
'/rss.php';
55 if (!isset($rss_channel[
'image'])){
57 $rss_channel[
'image'][
'url'] =
$rmc_config[
'rssimage'];
58 $dimention = getimagesize(XOOPS_ROOT_PATH .
'/images/logo.png');
59 $rss_channel[
'image'][
'width'] = ($dimention[0] > 144) ? 144 : $dimention[0];
60 $rss_channel[
'image'][
'height'] = ($dimention[1] > 400) ? 400 : $dimention[1];
63 include
RMTemplate::get()->get_template(
'rmc_rss.php',
'module',
'rmcommon');