Merge pull request #383 from bjrambo/pr/ncenterlite

알림센터 모듈을 라이믹스로 흡수 시킴.
This commit is contained in:
BJRambo 2016-03-19 20:49:40 +09:00
commit 1880b7f7fc
95 changed files with 5450 additions and 40 deletions

View file

@ -815,43 +815,7 @@ class communicationController extends communication
$oMemberController->addMemberMenu('dispCommunicationFriend', 'cmd_view_friend');
}
}
function triggerModuleProcAfter($obj)
{
if (!Context::get('is_logged') || $obj->module == 'member' || $obj->module == 'admin')
{
return new Object();
}
$config = getModel('communication')->getConfig();
if ($config->enable_message == 'N' || starts_with('dispCommunication', Context::get('act')))
{
return new Object();
}
$logged_info = Context::get('logged_info');
if ($config->enable_message == 'Y')
{
$flag_path = './files/member_extra_info/new_message_flags/' . getNumberingPath($logged_info->member_srl);
$flag_file = $flag_path . $logged_info->member_srl;
if(file_exists($flag_file))
{
// Pop-up to display messages if a flag on new message is set
$new_message_count = (int)trim(FileHandler::readFile($flag_file));
if($new_message_count > 0)
{
$text = escape_js(lang('alert_new_message_arrived'));
Context::addHtmlFooter("<script>jQuery(function(){ xeNotifyMessage('{$text}','{$new_message_count}'); });</script>");
Context::loadFile(array('./modules/communication/tpl/js/member_communication.js'), true);
}
else
{
FileHandler::removeFile($flag_file);
}
}
}
}
function triggerMemberMenu()
{
if(!Context::get('is_logged'))