mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 19:51:42 +09:00
리퍼러 스팸을 지우기 위해 통계에서 해당 호스트를 지우는 기능 추가. Added a feature deleting host from statistics to remove referer spams. git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4073 201d5d3c-b55e-5fd7-737f-ddc643e51545
57 lines
1.6 KiB
PHP
57 lines
1.6 KiB
PHP
<?php
|
|
/**
|
|
* @class refererAdminView
|
|
* @author haneul (haneul0318@gmail.com)
|
|
* @brief referer 모듈의 Admin view class
|
|
**/
|
|
|
|
class refererAdminView extends referer {
|
|
|
|
/**
|
|
* @brief 초기화
|
|
**/
|
|
function init() {
|
|
// 템플릿 경로 지정
|
|
$this->setTemplatePath($this->module_path.'tpl');
|
|
}
|
|
|
|
/**
|
|
* @brief 관리자 페이지 초기화면
|
|
**/
|
|
function dispRefererAdminIndex() {
|
|
$this->dispRefererAdminList();
|
|
}
|
|
|
|
function dispRefererAdminDeleteStat () {
|
|
if(!Context::get('host')) return $this->dispRefererAdminIndex();
|
|
$this->setTemplateFile('delete_stat');
|
|
}
|
|
|
|
function dispRefererAdminList() {
|
|
|
|
// 목록을 구하기 위한 옵션
|
|
$args->page = Context::get('page'); ///< 페이지
|
|
|
|
$args->sort_index = 'regdate'; ///< 소팅 값
|
|
|
|
$oRefererModel = &getModel('referer');
|
|
$output = $oRefererModel->getLogList($args);
|
|
|
|
Context::set('total_count', $output->total_count);
|
|
Context::set('total_page', $output->total_page);
|
|
Context::set('page', $output->page);
|
|
Context::set('referer_list', $output->data);
|
|
Context::set('page_navigation', $output->page_navigation);
|
|
|
|
$args2->sort_index = 'count';
|
|
$output2 = $oRefererModel->getRefererStatus($args2);
|
|
Context::set('referer_status', $output2->data);
|
|
|
|
// 템플릿 지정
|
|
$this->setTemplatePath($this->module_path.'tpl');
|
|
$this->setTemplateFile('referer_list');
|
|
}
|
|
|
|
|
|
}
|
|
?>
|