diff --git a/modules/syndication/conf/info.xml b/modules/syndication/conf/info.xml deleted file mode 100644 index 730c68911a..0000000000 --- a/modules/syndication/conf/info.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - Syndication - 聯合供搞 - İçerik Paylaşımı - 검색서비스업체와 직접 통신을 통해 컨텐츠를 잘 검색되도록 하는 Syndication 규약을 따라 정보를 주고받는 모듈 - 검색서비스업체와 직접 통신을 통해 컨텐츠를 잘 검색되도록 하는 Syndication 규약을 따라 정보를 주고받는 모듈 - 검색서비스업체와 직접 통신을 통해 컨텐츠를 잘 검색되도록 하는 Syndication 규약을 따라 정보를 주고받는 모듈 - 6.0.0 - 2017-11-30 - interlock - - - NAVER - NAVER - NAVER - - diff --git a/modules/syndication/conf/module.xml b/modules/syndication/conf/module.xml deleted file mode 100644 index 22737f34ee..0000000000 --- a/modules/syndication/conf/module.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/modules/syndication/lang/lang.xml b/modules/syndication/lang/lang.xml deleted file mode 100644 index 39d856a95e..0000000000 --- a/modules/syndication/lang/lang.xml +++ /dev/null @@ -1,167 +0,0 @@ - - - - - - - - - - - 최소한의 요청만으로 효과적으로 컨텐츠를 검색 서비스 업체와 동기화합니다]]> - It will synchronize contents with search service providers with the least requests.]]> - 最小限の要求だけで、検索サービス業者とコンテンツを効果的に同期させます。]]> - Gerekli olan şeyleri en aza indirerek, arama hizmeti sunucusunu içeriklerle uygun hale getirir.]]> - - - - - - - - - - - - - - - - [적용하기] 버튼을 선택하시면 선택 또는 해제된 서비스에 Ping 을 통해서 결과를 통보하게 됩니다]]> - You will get Ping result from the selected (deselected) services if you apply.]]> - [適用]ボタンをクリックすると、選択、または解除されているサービスにPingを通じて結果を通報します。]]> - [應用] 透過 Ping 的方式]]> - Tercih edilen(edilmeyen) hizmetlerin Ping sonuçlarını başvurarak alabilirsiniz.]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/modules/syndication/queries/deleteExceptModules.xml b/modules/syndication/queries/deleteExceptModules.xml deleted file mode 100644 index 981cf5149a..0000000000 --- a/modules/syndication/queries/deleteExceptModules.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/modules/syndication/queries/deleteLog.xml b/modules/syndication/queries/deleteLog.xml deleted file mode 100644 index 8dd3e1d800..0000000000 --- a/modules/syndication/queries/deleteLog.xml +++ /dev/null @@ -1,9 +0,0 @@ - - -
- - - - - - diff --git a/modules/syndication/queries/getDeletedList.xml b/modules/syndication/queries/getDeletedList.xml deleted file mode 100644 index be8dc2386b..0000000000 --- a/modules/syndication/queries/getDeletedList.xml +++ /dev/null @@ -1,20 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - diff --git a/modules/syndication/queries/getDocumentList.xml b/modules/syndication/queries/getDocumentList.xml deleted file mode 100644 index a5916f0a6f..0000000000 --- a/modules/syndication/queries/getDocumentList.xml +++ /dev/null @@ -1,31 +0,0 @@ - - -
-
-
- - - -
-
- - - - - - - - - - - - - - - - - - - - -
diff --git a/modules/syndication/queries/getExceptModule.xml b/modules/syndication/queries/getExceptModule.xml deleted file mode 100644 index 68aec543d7..0000000000 --- a/modules/syndication/queries/getExceptModule.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/modules/syndication/queries/getExceptModuleSrls.xml b/modules/syndication/queries/getExceptModuleSrls.xml deleted file mode 100644 index 8742b68940..0000000000 --- a/modules/syndication/queries/getExceptModuleSrls.xml +++ /dev/null @@ -1,8 +0,0 @@ - - -
- - - - - diff --git a/modules/syndication/queries/getExceptModules.xml b/modules/syndication/queries/getExceptModules.xml deleted file mode 100644 index 5833501859..0000000000 --- a/modules/syndication/queries/getExceptModules.xml +++ /dev/null @@ -1,14 +0,0 @@ - - -
-
- - - - - - - - - - diff --git a/modules/syndication/queries/getGrantedModule.xml b/modules/syndication/queries/getGrantedModule.xml deleted file mode 100644 index 4bb67c2965..0000000000 --- a/modules/syndication/queries/getGrantedModule.xml +++ /dev/null @@ -1,17 +0,0 @@ - - -
- - - - - - - - - - - - - - diff --git a/modules/syndication/queries/getGrantedModules.xml b/modules/syndication/queries/getGrantedModules.xml deleted file mode 100644 index c72bd0a8a3..0000000000 --- a/modules/syndication/queries/getGrantedModules.xml +++ /dev/null @@ -1,19 +0,0 @@ - - -
- - - - - - - - - - - - - - - - diff --git a/modules/syndication/queries/getLang.xml b/modules/syndication/queries/getLang.xml deleted file mode 100644 index eb0c596722..0000000000 --- a/modules/syndication/queries/getLang.xml +++ /dev/null @@ -1,12 +0,0 @@ - - -
- - - - - - - - - diff --git a/modules/syndication/queries/getModuleSiteInfo.xml b/modules/syndication/queries/getModuleSiteInfo.xml deleted file mode 100644 index 921e334310..0000000000 --- a/modules/syndication/queries/getModuleSiteInfo.xml +++ /dev/null @@ -1,15 +0,0 @@ - - -
-
- - - - - - - - - - - diff --git a/modules/syndication/queries/getModules.xml b/modules/syndication/queries/getModules.xml deleted file mode 100644 index ecb397cf4b..0000000000 --- a/modules/syndication/queries/getModules.xml +++ /dev/null @@ -1,26 +0,0 @@ - - -
-
-
- - - -
-
- - - - - - - - - - - - - - - -
diff --git a/modules/syndication/queries/getSiteUpdatedTime.xml b/modules/syndication/queries/getSiteUpdatedTime.xml deleted file mode 100644 index e5ead1bbc9..0000000000 --- a/modules/syndication/queries/getSiteUpdatedTime.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/modules/syndication/queries/insertExceptModule.xml b/modules/syndication/queries/insertExceptModule.xml deleted file mode 100644 index f50e0b818d..0000000000 --- a/modules/syndication/queries/insertExceptModule.xml +++ /dev/null @@ -1,9 +0,0 @@ - - -
- - - - - - diff --git a/modules/syndication/queries/insertLog.xml b/modules/syndication/queries/insertLog.xml deleted file mode 100644 index d8bd170866..0000000000 --- a/modules/syndication/queries/insertLog.xml +++ /dev/null @@ -1,13 +0,0 @@ - - -
- - - - - - - - - - diff --git a/modules/syndication/ruleset/insertConfig.xml b/modules/syndication/ruleset/insertConfig.xml deleted file mode 100644 index c65f13bcb3..0000000000 --- a/modules/syndication/ruleset/insertConfig.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/modules/syndication/schemas/syndication_except_modules.xml b/modules/syndication/schemas/syndication_except_modules.xml deleted file mode 100644 index b7ae105a45..0000000000 --- a/modules/syndication/schemas/syndication_except_modules.xml +++ /dev/null @@ -1,4 +0,0 @@ -
- - -
diff --git a/modules/syndication/schemas/syndication_logs.xml b/modules/syndication/schemas/syndication_logs.xml deleted file mode 100644 index 1473face2a..0000000000 --- a/modules/syndication/schemas/syndication_logs.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - -
diff --git a/modules/syndication/syndication.admin.controller.php b/modules/syndication/syndication.admin.controller.php deleted file mode 100644 index 2daf564b92..0000000000 --- a/modules/syndication/syndication.admin.controller.php +++ /dev/null @@ -1,86 +0,0 @@ - */ - -/** - * @class syndicationAdminController - * @author NAVER (developers@xpressengine.com) - * @brief syndication module admin Controller class - **/ - -class syndicationAdminController extends syndication { - - function init() - { - } - - function procSyndicationAdminInsertConfig() - { - $oModuleController = getController('module'); - $oSyndicationController = getController('syndication'); - $oSyndicationModel = getModel('syndication'); - - $config = new stdClass; - $config->syndication_use = Context::get('syndication_use'); - $config->site_url = preg_replace('/\/+$/is','',Context::get('site_url')); - $config->year = Context::get('year'); - $config->syndication_token = Context::get('syndication_token'); - $config->syndication_password = urlencode(Context::get('syndication_password')); - - if(!$config->site_url) return $this->makeObject(-1,'msg_site_url_is_null'); - if(!$config->syndication_token) return $this->makeObject(-1,'msg_syndication_token_is_null'); - - $oModuleController->updateModuleConfig('syndication',$config); - - $except_module = Context::get('except_module'); - $output = executeQuery('syndication.deleteExceptModules'); - if(!$output->toBool()) return $output; - - if ($except_module){ - $modules = explode(',',$except_module); - for($i=0,$c=count($modules);$i<$c;$i++) { - $args->module_srl = $modules[$i]; - $output = executeQuery('syndication.insertExceptModule',$args); - if(!$output->toBool()) return $output; - } - } - - if(!$this->checkOpenSSLSupport()) - { - return $this->makeObject(-1, 'msg_need_openssl_support'); - } - - $this->setMessage('success_applied'); - if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) { - $returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispSyndicationAdminConfig'); - $this->setRedirectUrl($returnUrl); - return; - } - } - - function procSyndicationAdminCheckPingResult() - { - $oModuleModel = getModel('module'); - - $oSyndicationController = getController('syndication'); - $oSyndicationModel= getModel('syndication'); - - $module_config = $oModuleModel->getModuleConfig('syndication'); - - $site_url = trim(Context::get('site_url')); - if(!$module_config->site_url) return $this->makeObject(-1,'msg_site_url_is_null'); - if(!$module_config->syndication_token) return $this->makeObject(-1,'msg_syndication_token_is_null'); - - $id = $oSyndicationModel->getID('site'); - - // site_url 정보와 token 정보를 이용해서 ping 전송 테스트 - if($oSyndicationController->ping($id, 'site')===FALSE) - { - $this->setError(-1); - $this->setMessage($oSyndicationController->ping_message); - } - else - { - $this->setMessage('msg_success_ping_test'); - } - } -} diff --git a/modules/syndication/syndication.admin.view.php b/modules/syndication/syndication.admin.view.php deleted file mode 100644 index 44c3d1a179..0000000000 --- a/modules/syndication/syndication.admin.view.php +++ /dev/null @@ -1,72 +0,0 @@ - */ - -/** - * @class syndicationAdminView - * @author NAVER (developers@xpressengine.com) - * @brief syndication admin view class - **/ -class syndicationAdminView extends syndication -{ - function init() - { - } - - public function dispSyndicationAdminConfig() - { - $oModuleModel = getModel('module'); - - $module_config = $oModuleModel->getModuleConfig('syndication'); - - $oSyndicationModel = getModel('syndication'); - Context::set('ping_log', $oSyndicationModel->getResentPingLog()); - - if(!$module_config->syndication_use) - { - $module_config->syndication_use = 'Y'; - } - - if(!$module_config->site_url) - { - $module_config->site_url = Context::getDefaultUrl()?Context::getDefaultUrl():getFullUrl(); - } - - if(!$module_config->year) - { - $module_config->year = date("Y"); - } - - if(!isset($module_config->syndication_password)) - { - $module_config->syndication_password = uniqid(); - } - - Context::set('syndication_use', $module_config->syndication_use); - Context::set('site_url', preg_replace('/^(http|https):\/\//i','',$module_config->site_url)); - Context::set('year', $module_config->year); - Context::set('syndication_token', $module_config->syndication_token); - Context::set('syndication_password', $module_config->syndication_password); - Context::set('uri_scheme', (Context::getSslStatus() == 'always') ? 'https://' : 'http://'); - - $output = executeQueryArray('syndication.getExceptModules'); - $except_module_list = array(); - if($output->data && count($output->data) > 0) - { - foreach($output->data as $item) - { - $except_module_list[] = $item; - } - } - Context::set('except_module', $except_module_list); - - - //Security - $security = new Security(); - $security->encodeHTML('services..service','except_module..ping'); - $security->encodeHTML('except_module..mid','except_module..browser_title'); - - $this->setTemplatePath($this->module_path.'tpl'); - $this->setTemplateFile('config'); - } - -} diff --git a/modules/syndication/syndication.class.php b/modules/syndication/syndication.class.php deleted file mode 100644 index c203fe5f9a..0000000000 --- a/modules/syndication/syndication.class.php +++ /dev/null @@ -1,94 +0,0 @@ - */ - -/** - * @class syndication - * @author NAVER (developers@xpressengine.com) - * @brief syndication module's high class - * @todo site 전체의 문서를 연동하거나 게시판 메뉴 삭제 시 관련 게시판 내용 전체를 syndication과 연동하는 처리가 되어있지 않음. - * model 파일에서 처리 방식은 구현했으나 한번 시작되면 전체 문서를 종료할 때까지 계속 ping을 전송해야 하는 부담이 있음. - **/ - -define('SyndicationModule', 'M'); -define('SyndicationDocument', 'D'); - -define('SyndicationInserted', 'I'); -define('SyndicationUpdated', 'U'); -define('SyndicationDeleted', 'D'); - -class syndication extends ModuleObject { - - var $services = array( - 'Naver' => 'http://syndication.openapi.naver.com/ping/', - ); - - var $statuses = array( - 'Naver' => 'http://syndication.openapi.naver.com/status/?site=%s', - ); - - function moduleInstall() { - $oModuleController = getController('module'); - $oModuleController->insertTrigger('document.insertDocument', 'syndication', 'controller', 'triggerInsertDocument', 'after'); - $oModuleController->insertTrigger('document.updateDocument', 'syndication', 'controller', 'triggerUpdateDocument', 'after'); - $oModuleController->insertTrigger('document.deleteDocument', 'syndication', 'controller', 'triggerDeleteDocument', 'after'); - $oModuleController->insertTrigger('module.deleteModule', 'syndication', 'controller', 'triggerDeleteModule', 'after'); - - $oModuleController->insertTrigger('document.moveDocumentToTrash', 'syndication', 'controller', 'triggerMoveDocumentToTrash', 'after'); - // $oModuleController->insertTrigger('document.restoreTrash', 'syndication', 'controller', 'triggerRestoreTrash', 'after'); - $oModuleController->insertTrigger('document.moveDocumentModule', 'syndication', 'controller', 'triggerMoveDocumentModule', 'after'); - - $oAddonAdminModel = getAdminModel('addon'); - if($oAddonAdminModel->getAddonInfoXml('catpcha')){ - $oAddonAdminController = &addonAdminController::getInstance(); - $oAddonAdminController->doActivate('catpcha'); - $oAddonAdminController->makeCacheFile(); - } - } - - function checkUpdate() { - $oModuleModel = getModel('module'); - if(!$oModuleModel->getTrigger('document.moveDocumentToTrash', 'syndication', 'controller', 'triggerMoveDocumentToTrash', 'after')) return true; - // if(!$oModuleModel->getTrigger('document.restoreTrash', 'syndication', 'controller', 'triggerRestoreTrash', 'after')) return true; - if(!$oModuleModel->getTrigger('document.moveDocumentModule', 'syndication', 'controller', 'triggerMoveDocumentModule', 'after')) return true; - - return false; - } - - function moduleUpdate() { - $oModuleModel = getModel('module'); - $oModuleController = getController('module'); - - if(!$oModuleModel->getTrigger('document.moveDocumentToTrash', 'syndication', 'controller', 'triggerMoveDocumentToTrash', 'after')){ - $oModuleController->insertTrigger('document.moveDocumentToTrash', 'syndication', 'controller', 'triggerMoveDocumentToTrash', 'after'); - } - // if(!$oModuleModel->getTrigger('document.restoreTrash', 'syndication', 'controller', 'triggerRestoreTrash', 'after')){ - // $oModuleController->insertTrigger('document.restoreTrash', 'syndication', 'controller', 'triggerRestoreTrash', 'after'); - // } - if(!$oModuleModel->getTrigger('document.moveDocumentModule', 'syndication', 'controller', 'triggerMoveDocumentModule', 'after')){ - $oModuleController->insertTrigger('document.moveDocumentModule', 'syndication', 'controller', 'triggerMoveDocumentModule', 'after'); - } - - $oAddonAdminModel = getAdminModel('addon'); - if($oAddonAdminModel->getAddonInfoXml('catpcha')){ - $oAddonAdminController = &addonAdminController::getInstance(); - $oAddonAdminController->doActivate('catpcha'); - $oAddonAdminController->makeCacheFile(); - } - } - - function recompileCache() { - } - - function checkOpenSSLSupport() - { - if(!in_array('ssl', stream_get_transports())) { - return FALSE; - } - return TRUE; - } - - public function makeObject($code = 0, $message = 'success') - { - return class_exists('BaseObject') ? new BaseObject($code, $message) : new Object($code, $message); - } -} diff --git a/modules/syndication/syndication.controller.php b/modules/syndication/syndication.controller.php deleted file mode 100644 index 5fcca8b7ac..0000000000 --- a/modules/syndication/syndication.controller.php +++ /dev/null @@ -1,225 +0,0 @@ - */ - -/** - * @class syndicationController - * @author NAVER (developers@xpressengine.com) - * @brief syndication module's Controller class - **/ - -class syndicationController extends syndication -{ - var $ping_message = ''; - - function triggerInsertDocument(&$obj) { - if($obj->module_srl < 1) return $this->makeObject(); - if($obj->status !== 'PUBLIC') return $this->makeObject(); - - $oSyndicationModel = getModel('syndication'); - $oModuleModel = getModel('module'); - - if($oSyndicationModel->isExceptedModules($obj->module_srl)) return $this->makeObject(); - - $config = $oModuleModel->getModuleConfig('syndication'); - - if($config->syndication_use!='Y') return $this->makeObject(); - - $target_id = sprintf('%s-%s', $obj->module_srl, $obj->document_srl); - $id = $oSyndicationModel->getID('article', $target_id); - $this->ping($id, 'article'); - - return $this->makeObject(); - } - - function triggerUpdateDocument(&$obj) { - if($obj->module_srl < 1) return $this->makeObject(); - - $oSyndicationModel = getModel('syndication'); - $oModuleModel = getModel('module'); - - if($oSyndicationModel->isExceptedModules($obj->module_srl)) return $this->makeObject(); - - $config = $oModuleModel->getModuleConfig('syndication'); - - if($config->syndication_use!='Y') return $this->makeObject(); - - $target_id = sprintf('%s-%s', $obj->module_srl, $obj->document_srl); - $id = $oSyndicationModel->getID('article', $target_id); - - // PUBLIC 외 삭제 - if($obj->status === 'PUBLIC') - { - $this->ping($id, 'article'); - } - else - { - $this->ping($id, 'deleted'); - } - - return $this->makeObject(); - } - - function triggerDeleteDocument(&$obj) { - if($obj->module_srl < 1) return $this->makeObject(); - - $oModuleModel = getModel('module'); - $oSyndicationModel = getModel('syndication'); - - $config = $oModuleModel->getModuleConfig('syndication'); - if($config->syndication_use != 'Y') return $this->makeObject(); - if($oSyndicationModel->isExceptedModules($obj->module_srl)) return $this->makeObject(); - - $this->insertLog($obj->module_srl, $obj->document_srl, $obj->title, $obj->content); - - $target_id = sprintf('%s-%s', $obj->module_srl, $obj->document_srl); - $id = $oSyndicationModel->getID('article', $target_id); - $this->ping($id, 'deleted'); - - return $this->makeObject(); - } - - // @DEPRECATED - function triggerDeleteModule(&$obj) { - return $this->makeObject(); - } - - function triggerMoveDocumentModule(&$obj) - { - if($obj->module_srl < 1) return $this->makeObject(); - - $oSyndicationModel = getModel('syndication'); - $oModuleModel = getModel('module'); - - if($oSyndicationModel->isExceptedModules($obj->module_srl)) return $this->makeObject(); - - $config = $oModuleModel->getModuleConfig('syndication'); - - if($config->syndication_use!='Y') return $this->makeObject(); - - $arr_document_srl = explode(',', $obj->document_srls); - if(!$arr_document_srl) return $this->makeObject(); - - foreach($arr_document_srl as $document_srl) - { - // 기존 문서 삭제 - $source_module_srl = $obj->source_module_srl[$document_srl]; - if(!!$source_module_srl) - { - $target_id = sprintf('%s-%s', $source_module_srl, $document_srl); - $id = $oSyndicationModel->getID('article', $target_id); - $this->ping($id, 'deleted'); - } - - // 옮겨진 문서 추가 - $target_id = sprintf('%s-%s', $obj->module_srl, $document_srl); - $id = $oSyndicationModel->getID('article', $target_id); - $this->ping($id, 'article'); - } - - return $this->makeObject(); - } - - function triggerMoveDocumentToTrash(&$obj) { - $oSyndicationModel = getModel('syndication'); - $oModuleModel = getModel('module'); - - if($oSyndicationModel->isExceptedModules($obj->module_srl)) return $this->makeObject(); - - $config = $oModuleModel->getModuleConfig('syndication'); - - if($config->syndication_use!='Y') return $this->makeObject(); - - $this->insertLog($obj->module_srl, $obj->document_srl, '', ''); - - $target_id = sprintf('%s-%s', $obj->module_srl, $obj->document_srl); - $id = $oSyndicationModel->getID('article', $target_id); - $this->ping($id, 'deleted'); - - return $this->makeObject(); - } - - // @deprecated - function triggerRestoreTrash(&$obj) { - // 중복 전송으로 인해 중단 - return $this->makeObject(); - } - - function insertLog($module_srl, $document_srl, $title = null, $summary = null) - { - $args = new stdClass; - $args->module_srl = $module_srl; - $args->document_srl = $document_srl; - $args->title = $title; - $args->summary = $summary; - $output = executeQuery('syndication.insertLog', $args); - } - - function deleteLog($module_srl, $document_srl) - { - $args = new stdClass; - $args->module_srl = $module_srl; - $args->document_srl = $document_srl; - $output = executeQuery('syndication.deleteLog', $args); - } - - function ping($id, $type, $page=1) { - $this->ping_message = ''; - $oSyndicationModel = getModel('syndication'); - - $oModuleModel = getModel('module'); - $config = $oModuleModel->getModuleConfig('syndication'); - - if(!$config->syndication_token) - { - $this->ping_message = 'Syndication Token empty'; - $oSyndicationModel->setResentPingLog($this->ping_message); - return false; - } - - if(!$this->checkOpenSSLSupport()) - { - $lang = Context::get('lang'); - $this->ping_message = $lang->msg_need_openssl_support; - $oSyndicationModel->setResentPingLog($this->ping_message); - return false; - } - - if(substr($config->site_url,-1)!='/') - { - $config->site_url .= '/'; - } - - $ping_url = 'https://apis.naver.com/crawl/nsyndi/v2'; - $ping_header = array(); - $ping_header['Host'] = 'apis.naver.com'; - $ping_header['Pragma'] = 'no-cache'; - $ping_header['Accept'] = '*/*'; - $ping_header['Authorization'] = sprintf("Bearer %s", $config->syndication_token); - - $request_config = array(); - $request_config['ssl_verify_peer'] = false; - - $ping_body = getNotEncodedFullUrl('', 'module', 'syndication', 'act', 'getSyndicationList', 'id', $id, 'type', $type, 'page', $page, 'syndication_password', $config->syndication_password); - - $buff = FileHandler::getRemoteResource($ping_url, null, 10, 'POST', 'application/x-www-form-urlencoded', $ping_header, array(), array('ping_url'=>$ping_body), $request_config); - - $xml = new XmlParser(); - $xmlDoc= $xml->parse($buff); - - if($xmlDoc->result->error_code->body != '000') - { - if(!$buff) - { - $this->ping_message = 'Socket connection error. Check your Server Environment.'; - } - else - { - $this->ping_message = $xmlDoc->result->message->body; - } - - $oSyndicationModel->setResentPingLog($this->ping_message); - return false; - } - return true; - } -} diff --git a/modules/syndication/syndication.model.php b/modules/syndication/syndication.model.php deleted file mode 100644 index a35d0f5939..0000000000 --- a/modules/syndication/syndication.model.php +++ /dev/null @@ -1,658 +0,0 @@ - */ - -/** - * @class getSyndicationList - * @author NAVER (developers@xpressengine.com) - * @brief syndication model class of the module - **/ - -class syndicationModel extends syndication -{ - private $site_url = null; - private $uri_scheme = 'http://'; - private $syndication_password= null; - private $year = null; - private $langs = array(); - private $granted_modules = array(); - static private $modules = array(); - - function init() { - $oModuleModel = getModel('module'); - $config = $oModuleModel->getModuleConfig('syndication'); - if(Context::getSslStatus() == 'always') $this->uri_scheme = 'https://'; - - $this->site_url = preg_replace('/\/+$/is', '', $config->site_url); - $this->syndication_password = $config->syndication_password; - $this->year = $config->year; - - $output = executeQueryArray('syndication.getGrantedModules'); - if($output->data) { - foreach($output->data as $key => $val) { - $this->granted_modules[] = $val->module_srl; - } - } - - $this->gzhandler_enable = FALSE; - } - - function isExceptedModules($module_srl) { - $args = new stdClass; - $args->module_srl = $module_srl; - - $output = executeQuery('syndication.getExceptModule', $args); - if($output->data->count) return TRUE; - - $output = executeQuery('syndication.getGrantedModule', $args); - if($output->data->count) return TRUE; - - return FALSE; - } - - function getExceptModuleSrls() - { - $output = executeQueryArray('syndication.getExceptModuleSrls'); - $module_srls = array(); - if (is_array($output->data)) - { - foreach($output->data as $val) - { - $module_srls[] = $val->module_srl; - } - } - return $module_srls; - } - - function getLang($key, $site_srl) - { - if(!$this->langs[$site_srl]) - { - $this->langs[$site_srl] = array(); - $args = new stdClass; - $args->site_srl = $site_srl; - $args->lang_code = Context::getLangType(); - $output = executeQueryArray("syndication.getLang", $args); - if(!$output->toBool() || !$output->data) return $key; - - foreach($output->data as $value) - { - $this->langs[$site_srl][$value->name] = $value->value; - } - } - if($this->langs[$site_srl][$key]) - { - return $this->langs[$site_srl][$key]; - } - else return $key; - } - - function handleLang($title, $site_srl) - { - $matches = NULL; - if(!preg_match("/\\\$user_lang->(.+)/", $title, $matches)) - { - return $title; - } - else - { - return $this->getLang($matches[1], $site_srl); - } - } - - function getSyndicationList() { - $oModuleModel = getModel('module'); - $config = $oModuleModel->getModuleConfig('syndication'); - if(!$config->year || !$config->site_url || !$config->syndication_token) - { - return $this->makeObject(-1,'msg_check_syndication_config'); - } - - $id = Context::get('id'); - $type = Context::get('type'); - - $startTime = Context::get('start-time'); - $endTime = Context::get('end-time'); - - $page = Context::get('page'); - if(!$page) - { - $page = 1; - } - $vars = Context::getRequestVars(); - if(!$id || !$type) - { - return $this->makeObject(-1,'msg_invalid_request'); - } - - if(!preg_match('/^tag:([^,]+),([0-9]+):(site|channel|article)(.*)$/i',$id,$matches)) - { - return $this->makeObject(-1,'msg_invalid_request'); - } - - if($config->syndication_password != Context::get('syndication_password')) - { - return $this->makeObject(-1,'msg_invalid_request'); - } - - $url = $matches[1]; - $year = $matches[2]; - $target = $matches[3]; - $id = $matches[4]; - if($id && $id{0}==':') - { - $id = substr($id, 1); - } - - $module_srl = null; - $document_srl = null; - if($id && strpos($id,'-')!==false) - { - list($module_srl, $document_srl) = explode('-', $id); - } - elseif($id) - { - $module_srl = $id; - } - - if(!$url || !$year || !$target) - { - return $this->makeObject(-1,'msg_invalid_request'); - } - - $time_zone = substr($GLOBALS['_time_zone'], 0, 3).':'.substr($GLOBALS['_time_zone'], 3); - Context::set('time_zone', $time_zone); - - $site_module_info = Context::get('site_module_info'); - - if($target == 'channel' && !$module_srl) - { - $target = 'site'; - } - - if($module_srl) - { - $args = new stdClass; - $args->module_srls = $module_srl; - $output = executeQuery('syndication.getModules', $args); - $module_info = $output->data; - self::$modules[$module_srl] = $output->data; - } - - if($target == 'channel' && $module_srl) - { - if($module_info) - { - $args->module_srl = $module_srl; - $output = executeQuery('syndication.getExceptModules', $args); - if($output->data->count) - { - $error = 'target is not founded'; - } - } - else - { - $error = 'target is not founded'; - } - - unset($args); - } - - if(!$error) - { - Context::set('target', $target); - Context::set('type', $type); - - $oMemberModel = getModel('member'); - $member_config = $oMemberModel->getMemberConfig(); - - $oModuleModel = getModel('module'); - $site_config = $oModuleModel->getModuleConfig('module'); - - switch($target) - { - case 'site' : - $site_info = new stdClass; - $site_info->id = $this->getID('site'); - $site_info->site_url = getFullSiteUrl($this->uri_scheme . $this->site_url, ''); - $site_info->site_title = $this->handleLang($site_module_info->browser_title, $site_module_info->site_srl); - $site_info->title = $site_info->site_title; - - if($module_srl) - { - $args->module_srl = $module_srl; - $site_info->title = $this->handleLang($module_info->browser_title, $module_info->site_srl); - if(!$site_info->title) - { - $site_info->title = $site_info->site_title; - } - } - else - { - $except_module_output = executeQueryArray('syndication.getExceptModuleSrls'); - if(is_array($except_module_output->data)) - { - $except_module_srls = array(); - foreach($except_module_output->data as $val) - { - $except_module_srls[] = $val->module_srl; - } - $args->except_modules = implode(',', $except_module_srls); - } - } - - $output = executeQuery('syndication.getSiteUpdatedTime', $args); - - if($output->data) - { - $site_info->updated = date("Y-m-d\\TH:i:s", ztime($output->data->last_update)).$time_zone; - } - - $site_info->self_href = $this->getSelfHref($site_info->id,$type); - Context::set('site_info', $site_info); - - $this->setTemplateFile('site'); - switch($type) { - case 'article' : - // 문서 전체를 신디케이션에 추가 - Context::set('articles', $this->getArticles($module_srl, $page, $startTime, $endTime, 'article',$site_info->id)); - $next_url = Context::get('articles')->next_url; - - break; - case 'deleted' : - // 문서 전체를 신디케이션에서 삭제 - Context::set('deleted', $this->getArticles($module_srl, $page, $startTime, $endTime, 'deleted',$site_info->id)); - $next_url = Context::get('deleted')->next_url; - break; - default : - $this->setTemplateFile('site.info'); - break; - } - - // 다음 페이지가 있다면 다시 신디케이션 호출 - if($next_url) - { - $oSyndicationController = getController('syndication'); - $oSyndicationController->ping(Context::get('id'), Context::get('type'), ++$page); - } - break; - case 'channel' : - $channel_info = new stdClass; - $channel_info->id = $this->getID('channel', $module_info->module_srl); - $channel_info->site_title = $this->handleLang($site_module_info->browser_title, $site_module_info->site_srl); - $channel_info->title = $this->handleLang($module_info->browser_title, $module_info->site_srl); - $channel_info->updated = date("Y-m-d\\TH:i:s").$time_zone; - $channel_info->self_href = $this->getSelfHref($channel_info->id, $type); - $channel_info->site_url = getFullSiteUrl($this->uri_scheme . $this->site_url, ''); - $channel_info->alternative_href = $this->getChannelAlternativeHref($module_info->module_srl); - $channel_info->summary = $module_info->description; - if($module_info->module == "textyle") - { - $channel_info->type = "blog"; - $channel_info->rss_href = getFullSiteUrl($module_info->domain, '', 'mid', $module_info->mid, 'act', 'rss'); - } - else - { - $channel_info->type = "web"; - } - $except_module_srls = $this->getExceptModuleSrls(); - if($except_module_srls) - { - $args->except_modules = implode(',',$except_module_srls); - } - - $output = executeQuery('syndication.getSiteUpdatedTime', $args); - if($output->data) $channel_info->updated = date("Y-m-d\\TH:i:s", ztime($output->data->last_update)).$time_zone; - Context::set('channel_info', $channel_info); - - $this->setTemplateFile('channel'); - switch($type) { - case 'article' : - Context::set('articles', $this->getArticles($module_srl, $page, $startTime, $endTime, 'article', $channel_info->id)); - break; - case 'deleted' : - Context::set('deleted', $this->getDeleted($module_srl, $page, $startTime, $endTime, 'deleted', $channel_info->id)); - break; - default : - $this->setTemplateFile('channel.info'); - break; - } - break; - - case 'article': - $channel_info = new stdClass; - $channel_info->id = $this->getID('channel', $module_info->module_srl); - $channel_info->title = $this->handleLang($module_info->browser_title, $module_info->site_srl); - $channel_info->site_title = $site_config->siteTitle; - if(!$channel_info->site_title) { - $channel_info->site_title = $channel_info->title; - } - $channel_info->updated = date("Y-m-d\\TH:i:s").$time_zone; - $channel_info->self_href = $this->getSelfHref($channel_info->id, $type); - $channel_info->site_url = getFullSiteUrl($this->uri_scheme . $this->site_url, ''); - $channel_info->alternative_href = $this->getChannelAlternativeHref($module_info->module_srl); - $channel_info->webmaster_name = $member_config->webmaster_name; - $channel_info->webmaster_email = $member_config->webmaster_email; - - $except_module_srls = $this->getExceptModuleSrls(); - if($except_module_srls) - { - $args->except_modules = implode(',',$except_module_srls); - } - - $output = executeQuery('syndication.getSiteUpdatedTime', $args); - if($output->data) $channel_info->updated = date("Y-m-d\\TH:i:s", ztime($output->data->last_update)).$time_zone; - Context::set('channel_info', $channel_info); - Context::set('member_config', $member_config); - - $this->setTemplateFile('channel'); - switch($type) { - case "article" : - $articles = new stdClass; - $articles->list = array($this->getArticle($document_srl)); - Context::set('articles', $articles); - break; - - case "deleted" : - $deleted = new stdClass; - $deleted->list = $this->getDeletedByDocumentSrl($document_srl); - Context::set('deleted', $deleted); - break; - } - break; - } - } else { - Context::set('message', $error); - $this->setTemplateFile('error'); - } - - $this->setTemplatePath($this->module_path.'tpl'); - Context::setResponseMethod('XMLRPC'); - } - - // @DEPRECATED - function getChannels() { - if($module_srls) $args->module_srls = $module_srls; - if(count($this->granted_modules)) $args->except_module_srls = implode(',',$this->granted_modules); - $output = executeQueryArray('syndication.getModules', $args); - - $time_zone = substr($GLOBALS['_time_zone'],0,3).':'.substr($GLOBALS['_time_zone'],3); - Context::set('time_zone', $time_zone); - - if($output->data) { - foreach($output->data as $module_info) { - unset($obj); - $obj = new stdClass; - $obj->id = $this->getID('channel', $module_info->module_srl); - $obj->title = $this->handleLang($module_info->browser_title, $module_info->site_srl); - $obj->updated = date("Y-m-d\\TH:i:s").$time_zone; - $obj->self_href = $this->getSelfHref($obj->id, 'channel'); - $obj->alternative_href = $this->getChannelAlternativeHref($module_info); - $obj->summary = $module_info->description; - if($module_info->module == "textyle") - { - $obj->type = "blog"; - $obj->rss_href = getFullSiteUrl($module_info->domain, '', 'mid', $module_info->mid, 'act', 'rss'); - } - else - { - $obj->type = "web"; - } - - $list[] = $obj; - } - } - return $list; - } - - function getArticle($document_srl) { - if($this->site_url==null) $this->init(); - - $oDocumentModel = getModel('document'); - $oDocument = $oDocumentModel->getDocument($document_srl,false,false); - if(!$oDocument->isExists()) return; - - $val = $oDocument->getObjectVars(); - - $time_zone = substr($GLOBALS['_time_zone'],0,3).':'.substr($GLOBALS['_time_zone'],3); - Context::set('time_zone', $time_zone); - - $mdoule_info = self::$modules[$oDocument->get('module_srl')]; - - $article = new stdClass(); - $article->id = $this->getID('article', $oDocument->get('module_srl').'-'.$oDocument->get('document_srl')); - $article->updated = date("Y-m-d\\TH:i:s", ztime($oDocument->get('last_update'))).$time_zone; - $article->published = date("Y-m-d\\TH:i:s", ztime($oDocument->get('regdate'))).$time_zone; - $article->alternative_href = $this->getAlternativeHref($oDocument->get('document_srl'), $oDocument->get('module_srl')); - $article->channel_alternative_href = $this->getChannelAlternativeHref($oDocument->get('module_srl')); - $article->nick_name = (!$oDocument->get('nick_name')) ? $oDocument->get('user_name') : $oDocument->get('nick_name'); - $article->title = $oDocument->getTitle(); - $article->content = $oDocument->get('content'); - if($val->category_srl) { - $category = $oDocumentModel->getCategory($val->category_srl); - $category_title = $category->title; - $article->category = new stdClass(); - $article->category->term = $val->category_srl; - $article->category->label = $category_title; - } - - return $article; - } - - function getArticles($module_srl = null, $page=1, $startTime = null, $endTime = null, $type = null, $id = null) { - if($this->site_url==null) $this->init(); - - $args = new stdClass; - if($module_srl) $args->module_srl = $module_srl; - if($startTime) $args->start_date = $this->getDate($startTime); - if($endTime) $args->end_date = $this->getDate($endTime); - if(count($this->granted_modules)) $args->except_module_srls = implode(',',$this->granted_modules); - $args->page = $page; - $output = executeQueryArray('syndication.getDocumentList', $args); - $cur_page = $output->page_navigation->cur_page; - $total_page = $output->page_navigation->last_page; - - $result = new stdClass; - $result->next_url = null; - $result->list = array(); - - $time_zone = substr($GLOBALS['_time_zone'],0,3).':'.substr($GLOBALS['_time_zone'],3); - Context::set('time_zone', $time_zone); - - if($cur_page<$total_page) { - $next_url = $this->getSelfHref($id, $type); - if($startTime) $next_url .= '&startTime='.$startTime; - if($endTime) $next_url .= '&endTime='.$endTime; - $result->next_url = $next_url.'&page='.($cur_page+1); - } - - if($output->data) { - foreach($output->data as $key => $val) { - $article = new stdClass(); - $article->id = $this->getID('article', $val->module_srl.'-'.$val->document_srl); - $article->updated = date("Y-m-d\\TH:i:s", ztime($val->last_update)).$time_zone; - $article->published = date("Y-m-d\\TH:i:s", ztime($val->regdate)).$time_zone; - $article->alternative_href = getFullSiteUrl($this->uri_scheme . $this->site_url, '', 'document_srl', $val->document_srl); - $article->channel_alternative_href = $this->getChannelAlternativeHref($val->module_srl); - $article->nick_name = (!$val->nick_name) ? $val->user_name : $val->nick_name; - $article->content = $val->content; - $result->list[] = $article; - } - } - return $result; - } - - function getDeleted($module_srl = null, $page = 1, $startTime = null, $endTime = null, $type = null, $id = null) { - if($this->site_url==null) $this->init(); - - $args = new stdClass; - if($module_srl) $args->module_srl= $module_srl; - if($startTime) $args->start_date = $this->getDate($startTime); - if($endTime) $args->end_date = $this->getDate($endTime); - $args->page = $page; - - $output = executeQueryArray('syndication.getDeletedList', $args); - - $cur_page = $output->page_navigation->cur_page; - $total_page = $output->page_navigation->last_page; - - $result = new stdClass; - $result->next_url = null; - $result->list = array(); - - $time_zone = substr($GLOBALS['_time_zone'],0,3).':'.substr($GLOBALS['_time_zone'],3); - Context::set('time_zone', $time_zone); - - if($cur_page<$total_page) { - $next_url = $this->getSelfHref($id, $type); - if($startTime) $next_url .= '&startTime='.$startTime; - if($endTime) $next_url .= '&endTime='.$endTime; - $result->next_url = $next_url . '&page='.($cur_page+1); - } - - if($output->data) { - foreach($output->data as $key => $val) { - $val->id = $this->getID('article', $val->module_srl.'-'.$val->document_srl); - $val->deleted = date("Y-m-d\\TH:i:s", ztime($val->regdate)).$time_zone; - $val->alternative_href = getFullSiteUrl($this->uri_scheme . $this->site_url, '', 'document_srl', $val->document_srl); - $val->channel_id = $this->getID('channel', $val->module_srl.'-'.$val->document_srl); - $output->data[$key] = $val; - } - $result->list = $output->data; - } - return $result; - } - - function getDeletedByDocumentSrl($document_srl) - { - static $module_info = array(); - - $args = new stdClass; - $args->document_srl = $document_srl; - $output = executeQueryArray('syndication.getDeletedList', $args); - - $time_zone = substr($GLOBALS['_time_zone'],0,3).':'.substr($GLOBALS['_time_zone'],3); - Context::set('time_zone', $time_zone); - - foreach($output->data as $key => $val) - { - $module_srl = $val->module_srl; - - if(!isset($module_info[$module_srl])) - { - $args = new stdClass; - $args->module_srl = $module_srl; - $module_output = executeQuery('syndication.getModuleSiteInfo', $args); - if($module_output->data) $module_info[$module_srl] = $module_output->data; - else $module_info[$module_srl] = null; - } - - $val->id = $this->getID('article', $val->module_srl.'-'.$val->document_srl); - $val->deleted = date("Y-m-d\\TH:i:s", ztime($val->regdate)).$time_zone; - $val->alternative_href = getFullSiteUrl($this->uri_scheme . $this->site_url, '', 'mid', $module_info[$module_srl]->mid, 'document_srl', $val->document_srl); - $val->channel_id = $this->getID('channel', $val->module_srl.'-'.$val->document_srl); - $output->data[$key] = $val; - } - - return $output->data; - } - - function getID($type, $target_id = null) { - if($this->site_url==null) $this->init(); - - return sprintf('tag:%s,%d:%s', $this->site_url, $this->year, $type) . ($target_id?':'.$target_id:''); - } - - function getChannelAlternativeHref($module_srl) { - static $module_info = array(); - if(!isset($module_info[$module_srl])) { - $args = new stdClass; - $args->module_srl = $module_srl; - $output = executeQuery('syndication.getModuleSiteInfo', $args); - if($output->data) $module_info[$module_srl] = $output->data; - else $module_info[$module_srl] = null; - } - - if(is_null($module_info[$module_srl])) return $this->site_url; - - $domain = $module_info[$module_srl]->domain; - $url = getFullSiteUrl($domain, '', 'mid', $module_info[$module_srl]->mid); - if(substr($url,0,1)=='/') $domain = $this->uri_scheme . $this->site_url . $url; - return $url; - } - - function getSelfHref($id, $type = null) { - if($this->site_url==null) $this->init(); - - return sprintf('%s/?module=syndication&act=getSyndicationList&id=%s&type=%s&syndication_password=%s', $this->uri_scheme . $this->site_url, $id, $type, $this->syndication_password); - } - - /** - * 문서의 고유 URL 반환 - */ - function getAlternativeHref($document_srl, $module_srl) { - if($this->site_url==null) $this->init(); - - if(!self::$modules[$module_srl]) { - $args = new stdClass; - $args->module_srls = $module_srl; - $output = executeQuery('syndication.getModules', $args); - $module_info = $output->data; - self::$modules[$module_srl] = $module_info; - } else { - $module_info = self::$modules[$module_srl]; - } - - $domain = $module_info->domain; - $url = getFullSiteUrl($domain, '', 'mid', $module_info->mid, 'document_srl', $document_srl); - if(substr($url,0,1)=='/') $domain = $this->uri_scheme . $this->site_url.$url; - return $url; - } - - function getDate($date) { - $time = strtotime($date); - if($time == -1) $time = ztime(str_replace(array('-','T',':'),'',$date)); - return date('YmdHis', $time); - } - - function getResentPingLogPath() - { - $target_filename = _XE_PATH_.'files/cache/tmp/syndication_ping_log'; - if(!file_exists($target_filename)) - { - FileHandler::writeFile($target_filename, ''); - } - return $target_filename; - } - - function setResentPingLog($msg) - { - $file_path = $this->getResentPingLogPath(); - - $args = new stdClass; - $args->regdate = date('YmdHis'); - $args->message = urlencode($msg); - - $list = $this->getResentPingLog(); - if(count($list)>=10) - { - array_pop($list); - } - array_unshift($list, $args); - FileHandler::writeFile($file_path, serialize($list)); - - return true; - } - - function getResentPingLog() - { - $file_path = $this->getResentPingLogPath(); - $str = FileHandler::readFile($file_path); - $list = array(); - if($str) - { - $list = unserialize($str); - } - - return $list; - } -} diff --git a/modules/syndication/tpl/channel.html b/modules/syndication/tpl/channel.html deleted file mode 100644 index c5699cea85..0000000000 --- a/modules/syndication/tpl/channel.html +++ /dev/null @@ -1,16 +0,0 @@ -{''} - - - - - - - - - - - - - - - diff --git a/modules/syndication/tpl/channel.info.html b/modules/syndication/tpl/channel.info.html deleted file mode 100644 index c8543d9794..0000000000 --- a/modules/syndication/tpl/channel.info.html +++ /dev/null @@ -1,5 +0,0 @@ -{''} - - - - diff --git a/modules/syndication/tpl/config.html b/modules/syndication/tpl/config.html deleted file mode 100644 index e23500136a..0000000000 --- a/modules/syndication/tpl/config.html +++ /dev/null @@ -1,89 +0,0 @@ - - - -
-

{$lang->syndication} {$lang->cmd_management}

-
-{@$form_id = "modules/syndication/tpl/config.html"} -
-

{$XE_VALIDATOR_MESSAGE}

-
-
- - - - -
-
{$lang->help}
- -
- -
-
{$lang->use}
-
- -
-
- -
-
{$lang->my_syndication_url}
-
- {$uri_scheme} - -

{$lang->about_my_syndication_url}

-

-
-
- -
-
{$lang->naver_syndication_token}
-
- -
-
- -
-
{$lang->my_syndication_password}
-
- -

{$lang->about_my_syndication_password}

-
-
- -
-
{$lang->except_module}
-
- - -

{$lang->about_except_module}

- -
-
-
- -
-
- -
-

Ping Fail log

-
    -
  • - {zdate($obj->regdate)} / {urldecode($obj->message)} -
  • -
-
diff --git a/modules/syndication/tpl/css/syndication.css b/modules/syndication/tpl/css/syndication.css deleted file mode 100644 index 1a62136808..0000000000 --- a/modules/syndication/tpl/css/syndication.css +++ /dev/null @@ -1,17 +0,0 @@ -@charset "utf-8"; - -input.siteUrl { width:400px; } -ul.syndiService { list-style:none; margin:0; padding:0;} -ul.syndiService li { padding:10px 0; margin:0;} -select.exceptModuleList { width:400px; } -ul.midCommand { margin:20px 0 0 0; padding:0; list-style:none; } -ul.midCommand li { display:inline; margin:0 20px 0 0; padding:0;} - -/* Vertical Bar Graph */ -.vGraph{ padding:20px 0;} -.vGraph ul{ margin:0; padding:0; height:100px; border:1px solid #ddd; border-top:0; border-right:0; font-size:11px; font-family:Tahoma, Geneva, sans-serif; list-style:none;} -.vGraph ul:after{ content:""; display:block; clear:both;} -.vGraph li{ float:left; display:inline; width:8%; height:100%; margin:0 3%; position:relative; text-align:center; white-space:nowrap;} -.vGraph .gTerm{ position:relative; display:inline-block; width:100%; height:20px; line-height:20px; margin:0 -100% -20px 0; padding:100px 0 0 0; vertical-align:bottom; color:#767676; font-weight:bold;} -.vGraph .gBar{ position:relative; display:inline-block; width:100%; margin:-1px 0 0 0; border:1px solid #ccc; border-bottom:0; background:#e9e9e9; vertical-align:bottom;} -.vGraph .gBar span{ position:absolute; width:100%; top:-20px; left:0; color:#767676;} diff --git a/modules/syndication/tpl/error.html b/modules/syndication/tpl/error.html deleted file mode 100644 index e641f1dcbd..0000000000 --- a/modules/syndication/tpl/error.html +++ /dev/null @@ -1,5 +0,0 @@ -{''} - - -1 - {$message} - diff --git a/modules/syndication/tpl/filter/insert_service.xml b/modules/syndication/tpl/filter/insert_service.xml deleted file mode 100644 index b81953e601..0000000000 --- a/modules/syndication/tpl/filter/insert_service.xml +++ /dev/null @@ -1,8 +0,0 @@ - -
- - - - - - diff --git a/modules/syndication/tpl/include.articles.html b/modules/syndication/tpl/include.articles.html deleted file mode 100644 index af9171b5a9..0000000000 --- a/modules/syndication/tpl/include.articles.html +++ /dev/null @@ -1,12 +0,0 @@ - - {$article->alternative_href|noescape} - <![CDATA[{$article->title|noescape}]]> - - nick_name|noescape}]]> - - {$article->updated|noescape} - {$article->published|noescape} - - content|noescape}]]> - - diff --git a/modules/syndication/tpl/include.channel.html b/modules/syndication/tpl/include.channel.html deleted file mode 100644 index 716799fd47..0000000000 --- a/modules/syndication/tpl/include.channel.html +++ /dev/null @@ -1,8 +0,0 @@ -self_href|noescape}]]> -<![CDATA[{$channel_info->site_title|noescape}]]> - - webmaster_name|noescape}]]> - site_url|noescape}]]> - -{$channel_info->updated|noescape} - diff --git a/modules/syndication/tpl/include.channels.html b/modules/syndication/tpl/include.channels.html deleted file mode 100644 index e025c4a5e9..0000000000 --- a/modules/syndication/tpl/include.channels.html +++ /dev/null @@ -1,8 +0,0 @@ - - {escape($channel_info->id)} - {escape($channel_info->title)} - {$channel_info->updated|noescape} - - - {escape($channel_info->summary)} - diff --git a/modules/syndication/tpl/include.deleted.html b/modules/syndication/tpl/include.deleted.html deleted file mode 100644 index 122688c1cb..0000000000 --- a/modules/syndication/tpl/include.deleted.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/modules/syndication/tpl/include.site.html b/modules/syndication/tpl/include.site.html deleted file mode 100644 index 7cb5d8f495..0000000000 --- a/modules/syndication/tpl/include.site.html +++ /dev/null @@ -1,7 +0,0 @@ -{escape($site_info->id)} -{escape($site_info->title)} - - {$site_info->site_title|noescape} - -{$site_info->updated|noescape} - diff --git a/modules/syndication/tpl/js/syndication.js b/modules/syndication/tpl/js/syndication.js deleted file mode 100644 index ce61a697b5..0000000000 --- a/modules/syndication/tpl/js/syndication.js +++ /dev/null @@ -1,55 +0,0 @@ -function insertSelectedModules(id, module_srl, mid, browser_title) { - var sel_obj = get_by_id('_'+id); - for(var i=0;i8) sel_obj.size = sel_obj.options.length; - - doSyncExceptModules(id); -} - -function removeExceptModule(id) { - var sel_obj = get_by_id('_'+id); - sel_obj.remove(sel_obj.selectedIndex); - if(sel_obj.options.length) sel_obj.selectedIndex = sel_obj.options.length-1; - doSyncExceptModules(id); -} - -function doSyncExceptModules(id) { - var selected_module_srls = new Array(); - var sel_obj = get_by_id('_'+id); - for(var i=0;iNaver Syndication Status - -

{$lang->syndication_status_result}

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
{$lang->site}{$result->site_name}
{$lang->syndication_status}{$result->status}
{$lang->syndication_synic_start_date}{$result->first_update}
{$lang->syndication_synic_last_date}{$result->last_update}
{$lang->syndication_visit_ok_count}{number_format($result->visit_ok_count)}
{$lang->syndication_visit_fail_count}{number_format($result->visit_fail_count)}
-

{$lang->syndication_sync_article}

-
- -
    - -
  • {$date}{number_format($count)}
  • - -
- -
diff --git a/modules/syndication/tpl/site.html b/modules/syndication/tpl/site.html deleted file mode 100644 index dfe029baa6..0000000000 --- a/modules/syndication/tpl/site.html +++ /dev/null @@ -1,21 +0,0 @@ -{''} - - - - - - - - - - - - - - - - - - - - diff --git a/modules/syndication/tpl/site.info.html b/modules/syndication/tpl/site.info.html deleted file mode 100644 index 741690f286..0000000000 --- a/modules/syndication/tpl/site.info.html +++ /dev/null @@ -1,4 +0,0 @@ -{''} - - -