mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-10 04:03:01 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2892 201d5d3c-b55e-5fd7-737f-ddc643e51545
28 lines
1.2 KiB
PHP
28 lines
1.2 KiB
PHP
<?php
|
|
if(!defined("__ZBXE__")) exit();
|
|
|
|
/**
|
|
* @file counter.addon.php
|
|
* @author zero (zero@nzeo.com)
|
|
* @brief 카운터 애드온
|
|
*
|
|
* 카운터 애드온은 제로보드XE의 기본 카운터(counter)모듈을 이용하여 로그를 남깁니다.
|
|
* 검색 로봇이나 기타 툴의 접속을 방지하고 부하를 줄이기 위해서 페이지가 로드된 후에 javascript로 다시 로그를 남기도록 합니다.
|
|
* 따라서 이 카운터 애드온은 카운터를 수집하게 하는 javascript 파일을 추가하는 동작만 하며 기본 카운터 모듈의 호출은 해당 javascript
|
|
* 파일내에서 이루어집니다.
|
|
**/
|
|
|
|
// module이 admin이면 패스~ called_position가 before_display_content 이고 module이 admin이 아닐 경우
|
|
if(
|
|
Context::get('act')=='procFileDelete' ||
|
|
Context::get('module')=='admin' ||
|
|
$called_position != 'before_display_content' ||
|
|
Context::getRequestMethod()=='XMLRPC' ||
|
|
$GLOBALS['__counter_addon_called__']
|
|
) return;
|
|
|
|
$GLOBALS['__counter_addon_called__'] = true;
|
|
|
|
$oCounterController = &getController('counter');
|
|
$oCounterController->procCounterExecute();
|
|
?>
|