mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@9269 201d5d3c-b55e-5fd7-737f-ddc643e51545
53 lines
2 KiB
PHP
53 lines
2 KiB
PHP
<?php
|
|
/**
|
|
* @class rssAdminView
|
|
* @author misol (misol@korea.ac.kr)
|
|
* @brief rss 모듈의 admin view class
|
|
**/
|
|
|
|
class rssAdminView extends rss {
|
|
/**
|
|
* @brief 초기화
|
|
**/
|
|
function init() {
|
|
// 템플릿 경로 지정
|
|
$this->setTemplatePath($this->module_path.'tpl');
|
|
}
|
|
|
|
|
|
/**
|
|
* @brief 관리자 페이지 초기화면
|
|
**/
|
|
function dispRssAdminIndex() {
|
|
$oModuleModel = &getModel('module');
|
|
$rss_config = $oModuleModel->getModulePartConfigs('rss');
|
|
$total_config = $oModuleModel->getModuleConfig('rss');
|
|
$oRssModel = &getModel('rss');
|
|
|
|
if($rss_config) {
|
|
foreach($rss_config as $module_srl => $config) {
|
|
if($config) {
|
|
$module_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl);
|
|
$site = $oModuleModel->getSiteInfo($module_info->site_srl);
|
|
if(!strpos($site->domain, '.')) $vid = $site->domain;
|
|
else $site = null;
|
|
if($site) $feed_config[$module_srl]['url'] = $oRssModel->getModuleFeedUrl($vid, $module_info->mid, 'rss');
|
|
$feed_config[$module_srl]['mid'] = $module_info->mid;
|
|
$feed_config[$module_srl]['open_feed'] = $config->open_rss;
|
|
$feed_config[$module_srl]['open_total_feed'] = $config->open_total_feed;
|
|
}
|
|
}
|
|
}
|
|
|
|
Context::set('feed_config', $feed_config);
|
|
Context::set('total_config', $total_config);
|
|
|
|
$security = new Security();
|
|
$security->encodeHTML('feed_config..mid','feed_config..url');
|
|
$security->encodeHTML('total_config..');
|
|
|
|
$this->setTemplatePath($this->module_path.'tpl');
|
|
$this->setTemplateFile('rss_admin_index');
|
|
}
|
|
}
|
|
?>
|