mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Delete unuse custom code.
This commit is contained in:
parent
1b4caf710d
commit
5c7b480501
2 changed files with 0 additions and 57 deletions
|
|
@ -1,26 +1,6 @@
|
|||
<?php
|
||||
class ncenterlite extends ModuleObject
|
||||
{
|
||||
// @@@@@@@@@@ 사용자 커스텀 시작
|
||||
// 쪽지를 열 mid 지정
|
||||
// 쪽지를 열 때 해당 mid에서 열리도록 합니다
|
||||
// 비워두면 접속한 페이지에서 열림(기본 동작)
|
||||
var $message_mid = '';
|
||||
|
||||
// 노티바(알림바)를 감출 mid - array('mid1', 'mid2', 'mid3')
|
||||
// 지정한 mid에서는 노티바를 출력하지 않습니다
|
||||
var $disable_notify_bar_mid = array();
|
||||
|
||||
// 노티바(알림바)를 감출 act - array('act1', 'act2', 'act3')
|
||||
// 지정한 act에서는 노티바를 출력하지 않습니다
|
||||
var $disable_notify_bar_act = array();
|
||||
|
||||
// 알림을 보내지 않을 게시판 mid - array('mid1', 'mid2', 'mid3')
|
||||
// 지정한 mid에서는 댓글 알림을 보내지 않습니다
|
||||
var $disable_notify = array();
|
||||
// @@@@@@@@@@ 사용자 커스텀 끝
|
||||
|
||||
|
||||
var $_TYPE_DOCUMENT = 'D'; // 댓글
|
||||
var $_TYPE_COMMENT = 'C'; // 댓글의 댓글
|
||||
var $_TYPE_ADMIN_COMMENT = 'A'; // 어드민 댓글 알림
|
||||
|
|
@ -53,18 +33,6 @@ class ncenterlite extends ModuleObject
|
|||
array('moduleObject.proc', 'ncenterlite', 'controller', 'triggerBeforeModuleObjectProc', 'before')
|
||||
);
|
||||
|
||||
function _isDisable()
|
||||
{
|
||||
$result = FALSE;
|
||||
if(count($this->disable_notify))
|
||||
{
|
||||
$module_info = Context::get('module_info');
|
||||
if(in_array($module_info->mid, $this->disable_notify)) $result = TRUE;
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
function moduleInstall()
|
||||
{
|
||||
return new Object();
|
||||
|
|
|
|||
|
|
@ -87,11 +87,6 @@ class ncenterliteController extends ncenterlite
|
|||
|
||||
$oModuleModel = getModel('module');
|
||||
|
||||
if($this->_isDisable())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$oNcenterliteModel = getModel('ncenterlite');
|
||||
$config = $oNcenterliteModel->getConfig();
|
||||
|
||||
|
|
@ -150,11 +145,6 @@ class ncenterliteController extends ncenterlite
|
|||
|
||||
function triggerAfterInsertComment($obj)
|
||||
{
|
||||
if($this->_isDisable())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$oNcenterliteModel = getModel('ncenterlite');
|
||||
$config = $oNcenterliteModel->getConfig();
|
||||
|
||||
|
|
@ -718,14 +708,6 @@ class ncenterliteController extends ncenterlite
|
|||
return new Object();
|
||||
}
|
||||
|
||||
if(count($this->disable_notify_bar_act))
|
||||
{
|
||||
if(in_array(Context::get('act'), $this->disable_notify_bar_act))
|
||||
{
|
||||
return new Object();
|
||||
}
|
||||
}
|
||||
|
||||
// HTML 모드가 아니면 중지 + act에 admin이 포함되어 있으면 중지
|
||||
if(Context::getResponseMethod() != 'HTML' || strpos(strtolower(Context::get('act')), 'admin') !== false)
|
||||
{
|
||||
|
|
@ -740,13 +722,6 @@ class ncenterliteController extends ncenterlite
|
|||
|
||||
$module_info = Context::get('module_info');
|
||||
|
||||
if(count($this->disable_notify_bar_mid))
|
||||
{
|
||||
if(in_array($module_info->mid, $this->disable_notify_bar_mid))
|
||||
{
|
||||
return new Object();
|
||||
}
|
||||
}
|
||||
|
||||
// admin 모듈이면 중지
|
||||
if($module_info->module == 'admin')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue