mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-17 18:29:55 +09:00
merge from 1.7.3.5(r13153:r13167)
git-svn-id: http://xe-core.googlecode.com/svn/trunk@13168 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cc47d2b247
commit
2d3f149b5a
2042 changed files with 129266 additions and 126243 deletions
|
|
@ -1,60 +1,69 @@
|
|||
<?php
|
||||
/**
|
||||
* The admin view class of the rss module
|
||||
/**
|
||||
* The admin view class of the rss module
|
||||
*
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
*/
|
||||
class rssAdminView extends rss
|
||||
{
|
||||
/**
|
||||
* Initialization
|
||||
*
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
**/
|
||||
* @return void
|
||||
*/
|
||||
function init()
|
||||
{
|
||||
//Set template path
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
}
|
||||
|
||||
class rssAdminView extends rss {
|
||||
/**
|
||||
* Initialization
|
||||
*
|
||||
* @return void
|
||||
**/
|
||||
function init() {
|
||||
//Set template path
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
/**
|
||||
* In case an administrator page has been initialized
|
||||
*
|
||||
* @return Object
|
||||
*/
|
||||
function dispRssAdminIndex()
|
||||
{
|
||||
$oModuleModel = &getModel('module');
|
||||
$rss_config = $oModuleModel->getModulePartConfigs('rss');
|
||||
$total_config = $oModuleModel->getModuleConfig('rss');
|
||||
if(!$total_config)
|
||||
{
|
||||
$total_config =new stdClass();
|
||||
}
|
||||
$oRssModel = &getModel('rss');
|
||||
|
||||
|
||||
/**
|
||||
* In case an administrator page has been initialized
|
||||
*
|
||||
* @return Object
|
||||
**/
|
||||
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);
|
||||
$columnList = array('sites.domain');
|
||||
$site = $oModuleModel->getSiteInfo($module_info->site_srl, $columnList);
|
||||
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;
|
||||
$feed_config[$module_srl]['feed_description'] = $config->feed_description;
|
||||
}
|
||||
if($rss_config)
|
||||
{
|
||||
foreach($rss_config as $module_srl => $config)
|
||||
{
|
||||
if($config)
|
||||
{
|
||||
$module_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl);
|
||||
$columnList = array('sites.domain');
|
||||
$site = $oModuleModel->getSiteInfo($module_info->site_srl, $columnList);
|
||||
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;
|
||||
$feed_config[$module_srl]['feed_description'] = $config->feed_description;
|
||||
}
|
||||
}
|
||||
if(!$total_config->feed_document_count) $total_config->feed_document_count = 15;
|
||||
|
||||
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');
|
||||
}
|
||||
if(!$total_config->feed_document_count) $total_config->feed_document_count = 15;
|
||||
|
||||
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');
|
||||
}
|
||||
?>
|
||||
}
|
||||
/* End of file rss.admin.view.php */
|
||||
/* Location: ./modules/rss/rss.admin.view.php */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue