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

@ -10,10 +10,11 @@ class communication extends ModuleObject
{ {
private $triggers = array( private $triggers = array(
array('moduleHandler.init', 'communication', 'controller', 'triggerModuleHandlerBefore', 'before'), array('moduleHandler.init', 'communication', 'controller', 'triggerModuleHandlerBefore', 'before'),
array('moduleObject.proc', 'communication', 'controller', 'triggerModuleProcAfter', 'after'),
array('member.getMemberMenu', 'communication', 'controller', 'triggerMemberMenu', 'before') array('member.getMemberMenu', 'communication', 'controller', 'triggerMemberMenu', 'before')
); );
private $delete_triggers = array(
array('moduleObject.proc', 'communication', 'controller', 'triggerModuleProcAfter', 'after')
);
/** /**
* Implement if additional tasks are necessary when installing * Implement if additional tasks are necessary when installing
* @return Object * @return Object
@ -48,7 +49,16 @@ class communication extends ModuleObject
return TRUE; return TRUE;
} }
} }
foreach($this->delete_triggers as $trigger)
{
if($oModuleModel->getTrigger($trigger[0], $trigger[1], $trigger[2], $trigger[3], $trigger[4]))
{
return TRUE;
}
}
if(!is_dir("./files/member_extra_info/new_message_flags")) if(!is_dir("./files/member_extra_info/new_message_flags"))
{ {
return TRUE; return TRUE;
@ -73,7 +83,15 @@ class communication extends ModuleObject
$oModuleController->insertTrigger($trigger[0], $trigger[1], $trigger[2], $trigger[3], $trigger[4]); $oModuleController->insertTrigger($trigger[0], $trigger[1], $trigger[2], $trigger[3], $trigger[4]);
} }
} }
foreach($this->delete_triggers as $trigger)
{
if($oModuleModel->getTrigger($trigger[0], $trigger[1], $trigger[2], $trigger[3], $trigger[4]))
{
$oModuleController->deleteTrigger($trigger[0], $trigger[1], $trigger[2], $trigger[3], $trigger[4]);
}
}
if(!is_dir("./files/member_extra_info/new_message_flags")) if(!is_dir("./files/member_extra_info/new_message_flags"))
{ {
FileHandler::makeDir('./files/member_extra_info/new_message_flags'); FileHandler::makeDir('./files/member_extra_info/new_message_flags');

View file

@ -815,43 +815,7 @@ class communicationController extends communication
$oMemberController->addMemberMenu('dispCommunicationFriend', 'cmd_view_friend'); $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() function triggerMemberMenu()
{ {
if(!Context::get('is_logged')) if(!Context::get('is_logged'))

View file

@ -0,0 +1,84 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and modification follow.
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

View file

@ -0,0 +1,97 @@
한국어 번역에 대한 안내
이 문서는 GNU General Public License를 한국어로 번역된 것이며 해석의 오류 또는 해석이 달라질 수 있으므로 해석에 도움을 받는 것 외 법적 효력이 없으며, 원문의 규정을 따르도록 합니다.
원문은 http://www.gnu.org/licenses/gpl-2.0.html 에서 볼 수 있습니다.
--------------------------------------------------------------------------------
GNU 일반 공중 사용 허가서
2판, 1991년 6월
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
누구든지 본 사용 허가서를 있는 그대로 복제하고 배포할 수
있습니다. 그러나 본문에 대한 수정은 허용되지 않습니다.
전 문
소프트웨어에 적용되는 대부분의 사용 허가서(license)들은 소프트웨어에 대한 수정과 공유의 자유를 제한하려는 것을 그 목적으로 합니다. 그러나 GNU 일반 공중 사용 허가서(이하, ``GPL''이라고 칭합니다.)는 자유 소프트웨어에 대한 수정과 공유의 자유를 모든 사용자들에게 보장하기 위해서 성립된 것입니다. 자유 소프트웨어 재단이 제공하는 대부분의 소프트웨어들은 GPL에 의해서 관리되고 있으며, 몇몇 소프트웨어에는 별도의 사용 허가서인 GNU 라이브러리 일반 공중 사용 허가서(GNU Library General Public License)를 대신 적용하기도 합니다. 자유 소프트웨어란, 이를 사용하려고 하는 모든 사람에 대해서 동일한 자유와 권리가 함께 양도되는 소프트웨어를 말하며 프로그램 저작자의 의지에 따라 어떠한 종류의 프로그램에도 GPL을 적용할 수 있습니다. 따라서 여러분이 만든 프로그램에도 GPL을 적용할 수 있습니다.
자유 소프트웨어를 언급할 때 사용되는 ``자유''라는 단어는 무료(無料)를 의미하는 금전적인 측면의 자유가 아니라 구속되지 않는다는 관점에서의 자유를 의미하며, GPL은 자유 소프트웨어를 이용한 복제와 개작, 배포와 수익 사업 등의 가능한 모든 형태의 자유를 실질적으로 보장하고 있습니다. 여기에는 원시 코드(source code)의 전부 또는 일부를 원용해서 개선된 프로그램을 만들거나 새로운 프로그램을 창작할 수 있는 자유가 포함되며, 자신에게 양도된 이러한 자유와 권리를 보다 명확하게 인식할 수 있도록 하기 위한 규정도 포함되어 있습니다.
GPL은 GPL 안에 소프트웨어를 양도받을 사용자의 권리를 제한하는 조항과 단서를 별항으로 추가시키지 못하게 함으로써 사용자들의 자유와 권리를 실제적으로 보장하고 있습니다. 자유 소프트웨어의 개작과 배포에 관계하고 있는 사람들은 이러한 무조건적인 권리 양도 규정을 준수해야만 합니다.
예를 들어 GPL 프로그램을 배포할 경우에는 프로그램의 유료 판매나 무료 배포에 관계없이 자신이 해당 프로그램에 대해서 가질 수 있었던 모든 권리를, 프로그램을 받게될 사람에게 그대로 양도해 주어야 합니다. 이 경우, 프로그램의 원시 코드를 함께 제공하거나 원시 코드를 구할 수 있는 방법을 확실히 알려주어야 하고 이러한 모든 사항들을 사용자들이 분명히 알 수 있도록 명시해야 합니다.
자유 소프트웨어 재단은 다음과 같은 두 가지 단계를 통해서 사용자들을 권리를 보호합니다. (1) 소프트웨어에 저작권을 설정합니다. (2) 저작권의 양도에 관한 실정법에 의해서 유효한 법률적 효력을 갖는 GPL을 통해 소프트웨어를 복제하거나 개작 및 배포할 수 있는 권리를 사용자들에게 부여합니다.
자유 소프트웨어를 사용하는 사람들은 반복적인 재배포 과정을 통해 소프트웨어 자체에 수정과 변형이 일어날 수도 있으며, 이는 최초의 저작자가 만든 소프트웨어가 갖고 있는 문제가 아닐 수 있다는 개연성을 인식하고 있어야 합니다. 우리는 개작과 재배포 과정에서 다른 사람에 의해 발생된 문제로 인해 프로그램 원저작자들의 신망이 훼손되는 것을 원하지 않습니다. GPL에 자유 소프트웨어에 대한 어떠한 형태의 보증도 규정하지 않는 이유는 이러한 점들이 고려되었기 때문이며, 이는 프로그램 원저작자와 자유 소프트웨어 재단의 자유로운 활동을 보장하는 현실적인 수단이기도 합니다.
특허 제도는 자유 소프트웨어의 발전을 위협하는 요소일 수밖에 없습니다. 자유 프로그램을 재배포하는 사람들이 개별적으로 특허를 취득하게 되면, 결과적으로 그 프로그램이 독점 소프트웨어가 될 가능성이 있습니다. 자유 소프트웨어 재단은 이러한 문제에 대처하기 위해서 어떠한 특허에 대해서도 그 사용 권리를 모든 사람들(이하, ``공중(公衆)''이라고 칭합니다.)에게 자유롭게 허용하는 경우에 한해서만 자유 소프트웨어와 함께 사용할 수 있다는 것을 명확히 밝히고 있습니다.
복제(copying)와 개작(modification) 및 배포(distribution)에 관련된 구체적인 조건과 규정은 다음과 같습니다.
복제와 개작 및 배포에 관한 조건과 규정
제 0 조. 본 허가서는 GNU 일반 공중 사용 허가서의 규정에 따라 배포될 수 있다는 사항이 저작권자에 의해서 명시된 모든 컴퓨터 프로그램 저작물에 대해서 동일하게 적용됩니다. 컴퓨터 프로그램 저작물(이하, ``프로그램''이라고 칭합니다.)이란 특정한 결과를 얻기 위해서 컴퓨터 등의 정보 처리 능력을 가진 장치(이하, ``컴퓨터''라고 칭합니다.) 내에서 직접 또는 간접으로 사용되는 일련의 지시 및 명령으로 표현된 창작물을 의미하고, ``2차적 프로그램''이란 전술한 프로그램 자신 또는 저작권법의 규정에 따라 프로그램의 전부 또는 상당 부분을 원용하거나 다른 언어로의 번역을 포함할 수 있는 개작 과정을 통해서 창작된 새로운 프로그램과 이와 관련된 저작물을 의미합니다. (이후로 다른 언어로의 번역은 별다른 제한없이 개작의 범위에 포함되는 것으로 간주합니다.) ``피양도자''란 GPL의 규정에 따라 프로그램을 양도받은 사람을 의미하고, ``원(原)프로그램''이란 프로그램을 개작하거나 2차적 프로그램을 만들기 위해서 사용된 최초의 프로그램을 의미합니다.
본 허가서는 프로그램에 대한 복제와 개작 그리고 배포 행위에 대해서만 적용됩니다. 따라서 프로그램을 실행시키는 행위에 대한 제한은 없습니다. 프로그램의 결과물(output)에는, 그것이 프로그램을 실행시켜서 생성된 것인지 아닌지의 여부에 상관없이 결과물의 내용이 원프로그램으로부터 파생된 2차적 프로그램을 구성했을 때에 한해서 본 허가서의 규정들이 적용됩니다. 2차적 프로그램의 구성 여부는 2차적 프로그램 안에서의 원프로그램의 역할을 토대로 판단합니다.
제 1 조. 적절한 저작권 표시와 프로그램에 대한 보증이 제공되지 않는다는 사실을 각각의 복제물에 명시하는 한, 피양도자는 프로그램의 원시 코드를 자신이 양도받은 상태 그대로 어떠한 매체를 통해서도 복제하고 배포할 수 있습니다. 복제와 배포가 이루어 질 때는 본 허가서와 프로그램에 대한 보증이 제공되지 않는다는 사실에 대해서 언급되었던 모든 내용을 그대로 유지시켜야 하며, 영문판 GPL을 함께 제공해야 합니다.
배포자는 복제물을 물리적으로 인도하는데 소요된 비용을 청구할 수 있으며, 선택 사항으로 독자적인 유료 보증을 설정할 수 있습니다.
제 2 조. 피양도자는 자신이 양도받은 프로그램의 전부나 일부를 개작할 수 있으며, 이를 통해서 2차적 프로그램을 창작할 수 있습니다. 개작된 프로그램이나 창작된 2차적 프로그램은 다음의 사항들을 모두 만족시키는 조건에 한해서, 제1조의 규정에 따라 또다시 복제되고 배포될 수 있습니다.
제 1 항. 파일을 개작할 때는 파일을 개작한 사실과 그 날짜를 파일 안에 명시해야 합니다.
제 2 항. 배포하거나 공표하려는 저작물의 전부 또는 일부가 양도받은 프로그램으로부터 파생된 것이라면, 저작물 전체에 대한 사용 권리를 본 허가서의 규정에 따라 공중에게 무상으로 허용해야 합니다.
제 3 항. 개작된 프로그램의 일반적인 실행 형태가 대화형 구조로 명령어를 읽어 들이는 방식을 취하고 있을 경우에는, 적절한 저작권 표시와 프로그램에 대한 보증이 제공되지 않는다는 사실, (별도의 보증을 설정한 경우라면 해당 내용) 그리고 양도받은 프로그램을 본 규정에 따라 재배포할 수 있다는 사실과 GPL 사본을 참고할 수 있는 방법이 함께 포함된 문구가 프로그램이 대화형 구조로 평이하게 실행된 직후에 화면 또는 지면으로 출력되도록 작성되어야 합니다. (예외 규정: 양도받은 프로그램이 대화형 구조를 갖추고 있다 하더라도 통상적인 실행 환경에서 전술한 사항들이 출력되지 않는 형태였을 경우에는 이를 개작한 프로그램 또한 관련 사항들을 출력시키지 않아도 무방합니다.)
위의 조항들은 개작된 프로그램 전체에 적용됩니다. 만약, 개작된 프로그램에 포함된 특정 부분이 원프로그램으로부터 파생된 것이 아닌 별도의 독립 저작물로 인정될 만한 상당한 이유가 있을 경우에는 해당 저작물의 개별적인 배포에는 본 허가서의 규정들이 적용되지 않습니다. 그러나 이러한 저작물이 2차적 프로그램의 일부로서 함께 배포된다면 개별적인 저작권과 배포 기준에 상관없이 저작물 모두에 본 허가서가 적용되어야 하며, 전체 저작물에 대한 사용 권리는 공중에게 무상으로 양도됩니다.
이러한 규정은 개별적인 저작물에 대한 저작자의 권리를 침해하거나 인정하지 않으려는 것이 아니라, 원프로그램으로부터 파생된 2차적 프로그램이나 수집 저작물의 배포를 일관적으로 규제할 수 있는 권리를 행사하기 위한 것입니다.
원프로그램이나 원프로그램으로부터 파생된 2차적 프로그램을 이들로부터 파생되지 않은 다른 저작물과 함께 단순히 저장하거나 배포할 목적으로 동일한 매체에 모아 놓은 집합물의 경우에는, 원프로그램으로부터 파생되지 않은 다른 저작물에는 본 허가서의 규정들이 적용되지 않습니다.
제 3 조. 피양도자는 다음 중 하나의 항목을 만족시키는 조건에 한해서 제1조와 제2조의 규정에 따라 프로그램(또는 제2조에서 언급된 2차적 프로그램)을 목적 코드(object code)나 실행물(executable form)의 형태로 복제하고 배포할 수 있습니다.
제 1 항. 목적 코드나 실행물에 상응하는 컴퓨터가 인식할 수 있는 완전한 원시 코드를 함께 제공해야 합니다. 원시 코드는 제1조와 제2조의 규정에 따라 배포될 수 있어야 하며, 소프트웨어의 교환을 위해서 일반적으로 사용되는 매체를 통해 제공되어야 합니다.
제 2 항. 배포에 필요한 최소한의 비용만을 받고 목적 코드나 실행물에 상응하는 완전한 원시 코드를 배포하겠다는, 최소한 3년간 유효한 약정서를 함께 제공해야 합니다. 이 약정서는 약정서를 갖고 있는 어떠한 사람에 대해서도 유효해야 합니다. 원시 코드는 컴퓨터가 인식할 수 있는 형태여야 하고 제1조와 제2조의 규정에 따라 배포될 수 있어야 하며, 소프트웨어의 교환을 위해서 일반적으로 사용되는 매체를 통해 제공되어야 합니다.
제 3 항. 목적 코드나 실행물에 상응하는 원시 코드를 배포하겠다는 약정에 대해서 자신이 양도받은 정보를 함께 제공해야 합니다. (제3항은 위의 제2항에 따라 원시 코드를 배포하겠다는 약정을 프로그램의 목적 코드나 실행물과 함께 제공 받았고, 동시에 비상업적인 배포를 하고자 할 경우에 한해서만 허용됩니다.)
저작물에 대한 원시 코드란 해당 저작물을 개작하기에 적절한 형식을 의미합니다. 실행물에 대한 완전한 원시 코드란 실행물에 포함된 모든 모듈들의 원시 코드와 이와 관련된 인터페이스 정의 파일 모두, 그리고 실행물의 컴파일과 설치를 제어하는데 사용된 스크립트 전부를 의미합니다. 그러나 특별한 예외의 하나로서, 실행물이 실행될 운영체제의 주요 부분(컴파일러나 커널 등)과 함께 (원시 코드나 바이너리의 형태로) 일반적으로 배포되는 구성 요소들은 이러한 구성 요소 자체가 실행물에 수반되지 않는 한 원시 코드의 배포 대상에서 제외되어도 무방합니다.
목적 코드나 실행물을 지정한 장소로부터 복제해 갈 수 있게 하는 방식으로 배포할 경우, 동일한 장소로부터 원시 코드를 복제할 수 있는 동등한 접근 방법을 제공한다면 이는 원시 코드를 목적 코드와 함께 복제되도록 설정하지 않았다고 하더라도 원시 코드를 배포하는 것으로 간주됩니다.
제 4 조. 본 허가서에 의해 명시적으로 이루어 지지 않는 한 프로그램에 대한 복제와 개작 및 하위 허가권 설정과 배포가 성립될 수 없습니다. 이와 관련된 어떠한 행위도 무효이며 본 허가서가 보장한 권리는 자동으로 소멸됩니다. 그러나 본 허가서의 규정에 따라 프로그램의 복제물이나 권리를 양도받았던 제3자는 본 허가서의 규정들을 준수하는 한, 배포자의 권리 소멸에 관계없이 사용상의 권리를 계속해서 유지할 수 있습니다.
제 5 조. 본 허가서는 서명이나 날인이 수반되는 형식을 갖고 있지 않기 때문에 피양도자가 본 허가서의 내용을 반드시 받아들여야 할 필요는 없습니다. 그러나 프로그램이나 프로그램에 기반한 2차적 프로그램에 대한 개작 및 배포를 허용하는 것은 본 허가서에 의해서만 가능합니다. 만약 본 허가서에 동의하지 않을 경우에는 이러한 행위들이 법률적으로 금지됩니다. 따라서 프로그램(또는 프로그램에 기반한 2차적 프로그램)을 개작하거나 배포하는 행위는 이에 따른 본 허가서의 내용에 동의한다는 것을 의미하며, 복제와 개작 및 배포에 관한 본 허가서의 조건과 규정들을 모두 받아들이겠다는 의미로 간주됩니다.
제 6 조. 피양도자에 의해서 프로그램(또는 프로그램에 기반한 2차적 프로그램)이 반복적으로 재배포될 경우, 각 단계에서의 피양도자는 본 허가서의 규정에 따른 프로그램의 복제와 개작 및 배포에 대한 권리를 최초의 양도자로부터 양도받은 것으로 자동적으로 간주됩니다. 프로그램(또는 프로그램에 기반한 2차적 프로그램)을 배포할 때는 피양도자의 권리의 행사를 제한할 수 있는 어떠한 사항도 추가할 수 없습니다. 그러나 피양도자에게, 재배포가 일어날 시점에서의 제3의 피양도자에게 본 허가서를 준수하도록 강제할 책임은 부과되지 않습니다.
제 7 조. 법원의 판결이나 특허권 침해에 대한 주장 또는 특허 문제에 국한되지 않은 그밖의 이유들로 인해서 본 허가서의 규정에 배치되는 사항이 발생한다 하더라도 그러한 사항이 선행하거나 본 허가서의 조건과 규정들이 면제되는 것은 아닙니다. 따라서 법원의 명령이나 합의 등에 의해서 본 허가서에 위배되는 사항들이 발생한 상황이라도 양측 모두를 만족시킬 수 없다면 프로그램은 배포될 수 없습니다. 예를 들면, 특정한 특허 관련 허가가 프로그램의 복제물을 직접 또는 간접적인 방법으로 양도받은 임의의 제3자에게 해당 프로그램을 무상으로 재배포할 수 있게 허용하지 않는다면, 그러한 허가와 본 사용 허가를 동시에 만족시키면서 프로그램을 배포할 수 있는 방법은 없습니다.
본 조항은 특정한 상황에서 본 조항의 일부가 유효하지 않거나 적용될 수 없을 경우에도 본 조항의 나머지 부분들을 적용하기 위한 의도로 만들어 졌습니다. 따라서 그 이외의 상황에서는 본 조항을 전체적으로 적용하면 됩니다.
본 조항의 목적은 특허나 저작권 침해 등의 행위를 조장하거나 해당 권리를 인정하지 않으려는 것이 아니라, GPL을 통해서 구현되어 있는 자유 소프트웨어의 배포 체계를 통합적으로 보호하기 위한 것입니다. 많은 사람들이 배포 체계에 대한 신뢰있는 지원을 계속해 줌으로써 소프트웨어의 다양한 분야에 많은 공헌을 해 주었습니다. 소프트웨어를 어떠한 배포 체계로 배포할 것인가를 결정하는 것은 전적으로 저작자와 기증자들의 의지에 달려있는 것이지, 일반 사용자들이 강요할 수 있는 문제는 아닙니다.
본 조항은 본 허가서의 다른 조항들에서 무엇이 중요하게 고려되어야 하는 지를 명확하게 설명하기 위한 목적으로 만들어진 것입니다.
제 8 조. 특허나 저작권이 설정된 인터페이스로 인해서 특정 국가에서 프로그램의 배포와 사용이 함께 또는 개별적으로 제한되어 있는 경우, 본 사용 허가서를 프로그램에 적용한 최초의 저작권자는 문제가 발생하지 않는 국가에 한해서 프로그램을 배포한다는 배포상의 지역적 제한 조건을 명시적으로 설정할 수 있으며, 이러한 사항은 본 허가서의 일부로 간주됩니다.
제 9 조. 자유 소프트웨어 재단은 때때로 본 사용 허가서의 개정판이나 신판을 공표할 수 있습니다. 새롭게 공표될 판은 당면한 문제나 현안을 처리하기 위해서 세부적인 내용에 차이가 발생할 수 있지만, 그 근본 정신에는 변함이 없을 것입니다.
각각의 판들은 판번호를 사용해서 구별됩니다. 특정한 판번호와 그 이후 판을 따른다는 사항이 명시된 프로그램에는 해당 판이나 그 이후에 발행된 어떠한 판을 선택해서 적용해도 무방하고, 판번호를 명시하고 있지 않은 경우에는 자유 소프트웨어 재단이 공표한 어떠한 판번호의 판을 적용해도 무방합니다.
제 10 조. 프로그램의 일부를 본 허가서와 배포 기준이 다른 자유 프로그램과 함께 결합하고자 할 경우에는 해당 프로그램의 저작자로부터 서면 승인을 받아야 합니다. 자유 소프트웨어 재단이 저작권을 갖고 있는 소프트웨어의 경우에는 자유 소프트웨어 재단의 승인을 얻어야 합니다. 우리는 이러한 요청을 수락하기 위해서 때때로 예외 기준을 만들기도 합니다. 자유 소프트웨어 재단은 일반적으로 자유 소프트웨어의 2차적 저작물들을 모두 자유로운 상태로 유지시키려는 목적과 소프트웨어의 공유와 재활용을 증진시키려는 두가지 목적을 기준으로 승인 여부를 결정할 것입니다.
보증의 결여 (제11조, 제12조)
제 11 조. 본 허가서를 따르는 프로그램은 무상으로 양도되기 때문에 관련 법률이 허용하는 한도 내에서 어떠한 형태의 보증도 제공되지 않습니다. 프로그램의 저작권자와 배포자가 공동 또는 개별적으로 별도의 보증을 서면으로 제공할 때를 제외하면, 특정한 목적에 대한 프로그램의 적합성이나 상업성 여부에 대한 보증을 포함한 어떠한 형태의 보증도 명시적이나 묵시적으로 설정되지 않은 ``있는 그대로의'' 상태로 이 프로그램을 배포합니다. 프로그램과 프로그램의 실행에 따라 발생할 수 있는 모든 위험은 피양도자에게 인수되며 이에 따른 보수 및 복구를 위한 제반 경비 또한 피양도자가 모두 부담해야 합니다.
제 12 조. 저작권자나 배포자가 프로그램의 손상 가능성을 사전에 알고 있었다 하더라도 발생된 손실이 관련 법규에 의해 보호되고 있거나 이에 대한 별도의 서면 보증이 설정된 경우가 아니라면, 저작권자나 프로그램을 원래의 상태 또는 개작한 상태로 제공한 배포자는 프로그램의 사용이나 비작동으로 인해 발생된 손실이나 프로그램 자체의 손실에 대해 책임지지 않습니다. 이러한 면책 조건은 사용자나 제3자가 프로그램을 조작함으로써 발생된 손실이나 다른 소프트웨어와 프로그램을 함께 동작시키는 것으로 인해서 발생된 데이터의 상실 및 부정확한 산출 결과에만 국한되는 것이 아닙니다. 발생된 손실의 일반성이나 특수성 뿐 아니라 원인의 우발성 및 필연성도 전혀 고려되지 않습니다.

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<module version="0.2">
<title xml:lang="ko">Rhymix 알림센터 Lite</title>
<title xml:lang="en">Rhymix Notification Center Lite</title>
<description xml:lang="ko">사이트 사용자간의 커뮤니케이션에 대한 정보를 알려주는 모듈입니다.</description>
<description xml:lang="en">This module notify users of information about new documents, comments and/or messages that call them. This module will enhance communication beween site users.</description>
<version>2.1.5</version>
<date>2014-12-09</date>
<category>content</category>
<author link="http://github.com/xe-public">
<name xml:lang="ko">XE Public</name>
<name xml:lang="en">XE Public</name>
</author>
</module>

View file

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<module>
<grants />
<permissions />
<actions>
<action name="dispNcenterliteAdminConfig" type="view" admin_index="true" menu_name="ncenterlite" menu_index="true" />
<action name="dispNcenterliteNotifyList" type="view" />
<action name="dispNcenterliteAdminList" type="view" />
<action name="dispNcenterliteUserConfig" type="view" />
<action name="procNcenterliteUserConfig" type="controller" />
<action name="procNcenterliteAdminInsertConfig" type="controller" ruleset="insertConfig" />
<action name="procNcenterliteAdminDeleteNofity" type="controller" />
<action name="procNcenterliteAdminInsertDummyData" type="controller" />
<action name="procNcenterliteAdminInsertPushData" type="controller" />
<action name="procNcenterliteAdminEnviromentGatheringAgreement" type="controller" />
<action name="procNcenterliteNotifyReadAll" type="controller" />
<action name="procNcenterliteRedirect" type="controller" method="GET|POST" />
<action name="getColorsetList" type="model" />
<action name="getMyNotifyListTpl" type="model" />
</actions>
<menus>
<menu name="ncenterlite" type="all">
<title xml:lang="ko">Rhymix 알림센터 Lite</title>
<title xml:lang="en">Rhymix Notification Center Lite</title>
<title xml:lang="jp">Rhymix 通知センター Lite</title>
</menu>
</menus>
</module>

View file

@ -0,0 +1,102 @@
<?php
$lang->ncenterlite = 'Rhymix Notification Center Lite';
$lang->ncenterlite_install_version = 'Installed Notification Center Lite version';
$lang->ncenterlite_document = 'document';
$lang->ncenterlite_comment = 'comment';
$lang->ncenterlite_type_message = 'message';
$lang->ncenterlite_sender = 'Sender';
$lang->ncenterlite_addressee = 'Addressee';
$lang->ncenterlite_noti_contents = 'Contents';
$lang->ncenterlite_read = 'Have read';
$lang->ncenterlite_read_y = 'Have read';
$lang->ncenterlite_read_n = 'Not read';
$lang->ncenterlite_no_target = 'no target';
$lang->ncenterlite_my_list = 'My notification list';
$lang->ncenterlite_my_settings = 'My notification settings';
$lang->ncenterlite_user_settings = 'User notification settings';
$lang->ncenterlite_userconfig_title = 'Notification Center Settings of %s';
$lang->ncenterlite_userconfig_about = 'Personalized settings of notification center can be controlled by you.';
$lang->ncenterlite_comment_noti = 'Comment notice';
$lang->ncenterlite_comment_noti_about = 'Get notice of a comment after someone replies to my documents or comments.';
$lang->ncenterlite_mention_noti = 'Mention notice';
$lang->ncenterlite_mention_noti_about = 'Get notice of a mention after someone mention me on documents and/or comments. ( @Nickname to mention )';
$lang->ncenterlite_message_noti = 'Message notice';
$lang->ncenterlite_message_noti_about = 'Get notice of a message after someone send the message to me.';
$lang->ncenterlite_activate = 'Activate';
$lang->ncenterlite_inactivate = 'Inactivate';
$lang->ncenterlite_userconfig_about_warning = 'Watch out! You are controlling other user\'s settings via this page.';
$lang->ncenterlite_article = '<strong>%1$s</strong> wrote an article as "%2$s".';
$lang->ncenterlite_board = '<strong>%1$s</strong> wrote an article as "%3$s" on the board %2$s.';
$lang->ncenterlite_commented = '<strong>%1$s</strong> commented as "%3$s" on your %2$s.';
$lang->ncenterlite_commented_board = '<strong>%1$s</strong> commented as "%3$s" on the board %2$s.';
$lang->ncenterlite_mentioned = '<strong>%s</strong> mentioned you on <strong>"%s" %s</strong>.';
$lang->ncenterlite_message_string = 'You have <strong>%d</strong> new <strong>message(s)</strong>.';
$lang->ncenterlite_message_mention = '<strong>%1$s</strong> sent a message as <strong>"%2$s"</strong>.';
$lang->ncenterlite_test_noti = '<strong>%s</strong>! Skin test notification has been done.';
$lang->ncenterlite_vote = '<strong>%1$s</strong> marked the article "%2$s" with a recommendation.';
$lang->ncenterlite_ago = 'ago';
$lang->ncenterlite_date['0'] = 'Year';
$lang->ncenterlite_date['1'] = 'Month';
$lang->ncenterlite_date['2'] = 'Day';
$lang->ncenterlite_date['3'] = 'Hour';
$lang->ncenterlite_date['4'] = 'Minute';
$lang->ncenterlite_date['5'] = 'Second';
$lang->ncenterlite_sir = ' ';
$lang->ncenterlite_message = 'You have <strong class="num">%s</strong> notification.';
$lang->ncenterlite_messages = 'you have <strong class="num">%s</strong> notifications.';
$lang->ncenterlite_thisistest = '[*] This is a test notice.';
$lang->ncenterlite_delete_all = 'delete all';
$lang->ncenterlite_more = 'More';
$lang->ncenterlite_stop_login_required = 'Sign in to control your own notification settings.';
$lang->ncenterlite_stop_no_permission_other_user = 'You don\'t have the authority to read settings of other members.';
$lang->ncenterlite_stop_no_permission_other_user_settings = 'You don\'t have the authority to control settings of other members.';
$lang->ncenterlite_message_delete_notification_before = 'Notifications before %s are deleted.';
$lang->ncenterlite_message_delete_notification_all = 'Every notification is deleted.';
$lang->ncenterlite_config_environment = '<span class="x_label x_label-important">HELP!</span> Agreement on gathering server environment information';
$lang->ncenterlite_config_environment_about = '
<p>\'Notification Center Lite\' is distributed as an <a href="https://en.wikipedia.org/wiki/Free_software" target="_blank">free software</a>.</p>
<p>\'Notification Center Lite\' is developing with collective intelligence, such as users\' bug reports, suggestions and/or contributions.<br />If you select to \'Agree on gathering\', the items below will be gathered by developers of this program, and the information will be referenced to enhance functions of this program. Thank you.</p>
<ul>
<li>Domain name of this website</li>
<li>Version value of Notification Center Lite</li>
<li>XE Core version value</li>
<li>PHP version value</li>
</ul>
';
$lang->ncenterlite_config_environment_agree = 'Agree on gathering';
$lang->ncenterlite_config_environment_disagree = 'Disagree on gathering';
$lang->ncenterlite_click_to_open = 'Click here to open';
$lang->ncenterlite_notice_list = 'Notification list';
$lang->ncenterlite_basic_settings = 'Basic function settings';
$lang->ncenterlite_warning = 'Watch out!';
$lang->ncenterlite_io = 'Activate Notification Center';
$lang->ncenterlite_io_about = 'You can activate or inactivate every function of Notification Center Lite module.';
$lang->ncenterlite_on = 'Active';
$lang->ncenterlite_off = 'Inactive';
$lang->ncenterlite_display = 'Display Notification Center';
$lang->ncenterlite_display_y = 'Display';
$lang->ncenterlite_display_n = 'Hide';
$lang->ncenterlite_display_about = 'Whether to use the skins of the module is the option to choose whether to use the skin of the widget or layout. The default setting uses the skins of the module.
<span class="x_label x_label-important">Watch out!</span> Choose only if you use a layout or widget in Notification Center!';
$lang->ncenterlite_mention_target = 'Mention target';
$lang->ncenterlite_mention_target_about = 'Mention target can be nicknames or IDs (@Nickname or @ID).';
$lang->ncenterlite_skin_settings = 'Skin settings';
$lang->ncenterlite_zindex = 'Z-index of notification';
$lang->ncenterlite_zindex_about = 'Some elements that have high z-index can hide notification layer. If so, set z-index of notification layer as 100, 200, and so on to show it.';
$lang->ncenterlite_test_make_dummy = 'Make dummy data';
$lang->ncenterlite_test_mention = 'Web page notification test';
$lang->ncenterlite_test_mention_about = 'Create dummy data for module and/or skin test.';
$lang->ncenterlite_test_push = 'Push notification test';
$lang->ncenterlite_test_push_about = 'Create dummy data for mobile push notification test.';
$lang->ncenterlite_document_event_settings = 'Document event notification';
$lang->ncenterlite_document_event_vote = 'Recommendation';
$lang->ncenterlite_document_event_vote_about = 'When someone recommend document, the author of it can get notifying.';
$lang->ncenterlite_document_event_read = 'Delete notifying after read the article';
$lang->ncenterlite_document_event_read_preserve = 'Preserve notification';
$lang->ncenterlite_document_event_read_delete = 'Delete notification';
$lang->ncenterlite_document_event_read_about = 'Delete every notification after read the article. Default is do not delete (preserve).';
$lang->ncenterlite_commnet_event = 'Comments';
$lang->ncenterlite_commnet_event_noti_all = 'Notice every comments to the author';
$lang->ncenterlite_commnet_event_noti_some = 'Notice only direct replies to the author';
$lang->ncenterlite_message_event = 'Notify message';
$lang->ncenterlite_message_event_about = 'Do not notify message (Use XE Core message notification system).';

View file

@ -0,0 +1,103 @@
<?php
$lang->ncenterlite = 'Rhymix 알림센터 Lite';
$lang->ncenterlite_install_version = '설치된 알림센터 Lite 버전';
$lang->ncenterlite_document = '글';
$lang->ncenterlite_comment = '댓글';
$lang->ncenterlite_type_message = '쪽지';
$lang->ncenterlite_sender = '보낸 사람';
$lang->ncenterlite_addressee = '받는 사람';
$lang->ncenterlite_noti_contents = '내용';
$lang->ncenterlite_read = '읽음 확인';
$lang->ncenterlite_read_y = '읽음';
$lang->ncenterlite_read_n = '읽지 않음';
$lang->ncenterlite_no_target = '대상 없음';
$lang->ncenterlite_my_list = '내 알림 목록';
$lang->ncenterlite_my_settings = '내 알림 설정';
$lang->ncenterlite_user_settings = '사용자 알림 설정';
$lang->ncenterlite_userconfig_title = '%s님의 알림센터 설정';
$lang->ncenterlite_userconfig_about = '알림센터의 개인의 설정을 저장하도록 합니다.';
$lang->ncenterlite_comment_noti = '댓글 알림';
$lang->ncenterlite_comment_noti_about = '내 게시물의 혹은 내 댓글에 댓글이 달릴경우 알림을 받습니다.';
$lang->ncenterlite_mention_noti = '멘션 알림';
$lang->ncenterlite_mention_noti_about = '누군가 글, 혹은 댓글을 통해서 나를 맨션 했을 경우 알려줍니다. (맨션 방법 @닉네임 )';
$lang->ncenterlite_message_noti = '쪽지 알림';
$lang->ncenterlite_message_noti_about = '누군가에게 받은 쪽지를 알림을 받습니다.';
$lang->ncenterlite_activate = '사용';
$lang->ncenterlite_inactivate = '사용 안함';
$lang->ncenterlite_userconfig_about_warning = '주의! 당신은 관리자 권한으로 다른 사용자의 설정창을 접속하였습니다.';
$lang->ncenterlite_article = '<strong>%1$s</strong>님이 <strong>"%2$s"</strong>라고 글을 남겼습니다.';
$lang->ncenterlite_board = '<strong>%1$s</strong>님이 게시판 <strong>"%2$s"</strong>에 <strong>"%3$s"</strong>라고 글을 남겼습니다.';
$lang->ncenterlite_commented = '<strong>%1$s</strong>님이 회원님의 %2$s에 <strong>"%3$s"</strong>라고 댓글을 남겼습니다.';
$lang->ncenterlite_commented_board = '<strong>%1$s</strong>님이 게시판 <strong>"%2$s"</strong>에 <strong>"%3$s"</strong>라고 댓글을 남겼습니다.';
$lang->ncenterlite_mentioned = '<strong>%s</strong>님이 <strong>"%s" %s</strong>에서 회원님을 언급하였습니다.';
$lang->ncenterlite_message_string = '<strong>%d</strong>개의 읽지 않은 <strong>메시지</strong>가 있습니다.';
$lang->ncenterlite_message_mention = '<strong>%s</strong>님께서 <strong>"%s"</strong>라고 메세지를 보내셨습니다.';
$lang->ncenterlite_test_noti = '<strong>%s</strong>님! 스킨 테스트 알림을 완료했습니다.';
$lang->ncenterlite_vote = '<strong>%s</strong>님이 <strong>"%s"</strong> 글을 추천하였습니다.';
$lang->ncenterlite_ago = '전';
$lang->ncenterlite_date['0'] = '년';
$lang->ncenterlite_date['1'] = '개월';
$lang->ncenterlite_date['2'] = '일';
$lang->ncenterlite_date['3'] = '시간';
$lang->ncenterlite_date['4'] = '분';
$lang->ncenterlite_date['5'] = '초';
$lang->ncenterlite_sir = '님';
$lang->ncenterlite_message = '<strong class="num">%s</strong>개의 알림이 있습니다.';
$lang->ncenterlite_messages = '<strong class="num">%s</strong>개의 알림이 있습니다.';
$lang->ncenterlite_thisistest = '[*] 시험용 알림입니다';
$lang->ncenterlite_delete_all = '모두 삭제';
$lang->ncenterlite_more = '더보기';
$lang->ncenterlite_stop_login_required = '알림센터 설정을 하시려면 로그인 해주세요.';
$lang->ncenterlite_stop_no_permission_other_user = '다른 회원의 설정을 볼 권한이 없습니다.';
$lang->ncenterlite_stop_no_permission_other_user_settings = '다른 회원의 설정을 변경할 권한이 없습니다.';
$lang->ncenterlite_message_delete_notification_before = '%s까지 알림 정보를 삭제했습니다.';
$lang->ncenterlite_message_delete_notification_all = '모든 알림을 삭제했습니다.';
$lang->ncenterlite_config_environment = '<span class="x_label x_label-important">도와주세요!</span> 사용 환경 정보 제공 동의';
$lang->ncenterlite_config_environment_about = '
<p>\'알림센터 Lite\' <a href="https://ko.wikipedia.org/wiki/자유소프트웨어" target="_blank">자유소프트웨어</a> 제공하고 있습니다.</p>
<p>\'알림센터 Lite\' 사용자의 버그 보고, 의견 제출을 통해 공동의 힘으로 발전하고 있습니다.<br>\'제공 동의\' 선택하면 아래와 같은 항목이 전송되며, 알림센터 Lite의 기능을 개선하는데 참고하겠습니다. 감사합니다.</p>
<ul>
<li> 사이트의 도메인</li>
<li>알림센터 Lite의 버전</li>
<li>XE 버전</li>
<li>PHP 버전</li>
</ul>
';
$lang->ncenterlite_config_environment_agree = '제공 동의';
$lang->ncenterlite_config_environment_disagree = '제공 안 함';
$lang->ncenterlite_click_to_open = '클릭하시면 기능설정을 할 수 있습니다.';
$lang->ncenterlite_notice_list = '알림 목록';
$lang->ncenterlite_basic_settings = '기본 기능 설정';
$lang->ncenterlite_warning = '주의!';
$lang->ncenterlite_io = '알림센터 동작여부';
$lang->ncenterlite_io_about = '알림센터의 모든 기능을 중지 시킬 수 있습니다.';
$lang->ncenterlite_on = '동작';
$lang->ncenterlite_message = '쪽지만';
$lang->ncenterlite_off = '동작 안 함';
$lang->ncenterlite_display = '알림센터 노출여부';
$lang->ncenterlite_display_y = '노출';
$lang->ncenterlite_display_n = '숨김';
$lang->ncenterlite_display_about = '알림센터의 스킨을 사용할 것인지 혹은 위젯 레이아웃에서 제작되어 들어간 스킨을 사용할지 선택합니다. 기본은 알림센터모듈의 기본스킨을 사용하도록 합니다.
<span class="x_label x_label-important">주의!</span> 알림센터를 레이아웃이나 위젯으로 표현할 있을 때에만 동작안함 선택하세요.';
$lang->ncenterlite_mention_target = '멘션 타겟 설정';
$lang->ncenterlite_mention_target_about = '알림센터에서 닉네임 혹은 아이디 선택하여 맨션설정을 할 수 있습니다.';
$lang->ncenterlite_skin_settings = '스킨 설정';
$lang->ncenterlite_zindex = '알림센터의 z-index';
$lang->ncenterlite_zindex_about = '알림센터가 다른 요소에 가려지는 경우에 100, 200, ... 이상으로 높여 보세요.';
$lang->ncenterlite_test_make_dummy = '더미 데이터 생성';
$lang->ncenterlite_test_mention = '시험용 스킨 알림 생성';
$lang->ncenterlite_test_mention_about = '스킨 및 모듈 테스트를 위한 시험용 알림 생성.';
$lang->ncenterlite_test_push = '시험용 푸시 알림 생성';
$lang->ncenterlite_test_push_about = '모듈 및 모바일 테스트를 위한 시험용 알림 생성';
$lang->ncenterlite_document_event_settings = '새 글 알림 및 문서알림';
$lang->ncenterlite_document_event_vote = '글 추천 알림';
$lang->ncenterlite_document_event_vote_about = '글이 추천받았을때 추천알림을 받을 수 있습니다.';
$lang->ncenterlite_document_event_read = '게시판 읽을경우 관련알림 삭제';
$lang->ncenterlite_document_event_read_preserve = '알림을 지우지 않음';
$lang->ncenterlite_document_event_read_delete = '알림을 지움';
$lang->ncenterlite_document_event_read_about = '게시판을 읽을경우 해당 글의 포함된 모든 알림내역을 알림내역에서 삭제 합니다. 기본값은 알림을 보존합니다.';
$lang->ncenterlite_commnet_event = '댓글 알림 설정';
$lang->ncenterlite_commnet_event_noti_all = '글쓴이에게 모든 댓글 알림';
$lang->ncenterlite_commnet_event_noti_some = '대댓글은 알리지 않음';
$lang->ncenterlite_message_event = '쪽지 알림 설정';
$lang->ncenterlite_message_event_about = '쪽지 알림을 사용하지 않음(XE의 기본 쪽지 알림을 사용)';

View file

@ -0,0 +1,24 @@
<load target="notify.css" />
<div class="sosifam">
<h2 class="sosi-title">{$lang->ncenterlite_my_list}</h2>
<ul class="history-list cfix">
<li class="history-item cfix" loop="$ncenterlite_list => $no, $val">
{@
$oMemberModel = getModel('member');
$member_info = $oMemberModel->getMemberInfoByMemberSrl($val->member_srl);
}
<div class="history-info">
<span class="history-gird text-ellipsis">
<span class="history-succeed">{$val->target_nick_name}</span> ->
<span class="history-title">{$member_info->nick_name}</span>
</span>
<div class="history-text">
<span class="history-ip"><strong><a href="{$val->target_url}">{$val->text}</a></strong></span>
<span class="history-auth">({zdate($val->regdate,"Y-m-d H:i:s")})</span>
<span class="history-auth" cond="$val->readed=='Y'">({$lang->ncenterlite_read_y})</span>
<span class="history-auth" cond="$val->readed=='N'">({$lang->ncenterlite_read_n})</span>
</div>
</div>
</li>
</ul>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

View file

@ -0,0 +1,124 @@
<load target="../lang/lang.xml" />
<div id="nc_container" {$ncenterlite_zindex}>
<ul class="nc_memu">
<li class="nc_profile fLeft">
<block cond="$useProfileImage">
<img cond="$profileImage" src="{$profileImage->src}" alt="my profile" class="nc_profile_img" />
<img cond="!$profileImage" src="{Context::getRequestUri()}modules/ncenterlite/skins/default/img/p.png" alt="my profile" class="nc_profile_img" />
</block>
<strong>{$logged_info->nick_name}</strong> {$lang->ncenterlite_sir}!
</li>
<li class="fLeft">
<a class="notify" href="#">
<!--@if($_ncenterlite_num > 1)-->
{sprintf($lang->ncenterlite_messages, $ncenterlite_page_navigation->total_count)}
<!--@else-->
{sprintf($lang->ncenterlite_message, $ncenterlite_page_navigation->total_count)}
<!--@endif-->
</a>
<a cond="$ncenterlite_page_navigation->total_count >= 1" href="#" class="readall">{$lang->ncenterlite_delete_all}</a>
</li>
<li class="fRight"><a class="close" href="#">× Close</a></li>
</ul>
<div class="list">
<ul>
<li loop="$ncenterlite_list => $o">
<a href="{$o->url}">
<block cond="$useProfileImage">
<img src="{$o->profileImage}"|cond="$o->profileImage" src="{Context::getRequestUri()}modules/ncenterlite/skins/default/img/p.png"|cond="!$o->profileImage" alt="" class="nc_profile_img" />
</block>
<span class="msg">{$o->text}</span><span class="ago">{$o->ago}</span>
</a>
</li>
</ul>
<a cond="$ncenterlite_page_navigation->total_count > 5" class="more" href="#" data-page="2">{$lang->ncenterlite_more}</a>
</div>
</div>
<div class="ncenterlite_block"></div>
<script type="text/javascript">
//<![CDATA[
(function($){
$(function(){
function setCookie(n, v, d){
var e = "";
if(d){ var dt=new Date(); dt.setTime(dt.getTime() + (d*24*60*60000)); e="; expires=" + dt.toGMTString(); }
document.cookie = n + "=" + v + e + "; path=/";
}
var n = $('#nc_container');
$('.close',n).click(function(){
setCookie('_ncenterlite_hide_id', '{$ncenterlite_latest_notify_id}', 1); n.hide().next('div').hide(); return false;
});
$('.readall',n).click(function(){
exec_xml('ncenterlite', 'procNcenterliteNotifyReadAll'); $('.close',n).triggerHandler('click'); return false;
});
$('a.notify',n).click(function(){
$('.list',n).toggle(); $('.readall',n).toggle(); return false;
});
$(document).click(function(e){
var t = $(e.target);if(!t.is('#nc_container') && t.parents('#nc_container').length == 0){ if($('.list', n).is(':visible')) { $('.list',n).hide(); $('.readall',n).hide(); return false; } }
});
var $listWrap = $('.list ul',n);
var $btnMore = $('.more',n);
$btnMore.click(function(){
var page = $(this).data('page');
var $item_html = $('<li><a><span class="msg"></span><span class="ago"></span></a></li>');
var $profileImg = $('<img class="nc_profile_img" alt="" />');
$.exec_json('ncenterlite.getMyNotifyListTpl', { 'page':page }, function(ret) {
if(!ret.list.data) return;
for(var i in ret.list.data)
{
var item = ret.list.data[i];
var $html = $item_html.clone();
if(ret.useProfileImage == 'Y')
{
var $img = $profileImg.clone();
if(!item.profileImage) item.profileImage = request_uri + 'modules/ncenterlite/skins/default/img/p.png';
$img.attr('src', item.profileImage);
$html.find('a').prepend($img);
}
$('span.msg', $html).html(item.text);
$('span.ago', $html).html(item.ago);
$('a', $html).attr('href', item.url);
if(i == 0) $html.attr('id', 'ncenterlite_page_' + ret.list.page.cur_page);
$listWrap.append($html);
}
$listWrap.animate({scrollTop: (ret.list.page.cur_page-1) * 265}, 800);
if(ret['list'].page.total_page <= ret.list.page.cur_page)
{
$btnMore.remove();
}
}, ['list']);
$(this).data('page', ++page);
return false;
});
});
<block cond="!Mobile::isFromMobilePhone()">
function sc(){
var wh = $(window).height();
var l = $('#nc_container .list');
if(l.height()+28 >= wh) {
l.height(wh-28).addClass('listscroll');
} else {
l.height('auto').removeClass('listscroll');
}
setTimeout(sc, 100);
}
sc();
</block>
})(jQuery);
//]]>
</script>

View file

@ -0,0 +1,15 @@
#nc_container { border-bottom-color:#555; background-color:#333; color:#B0B0B0; opacity:0.95; }
#nc_container a { color:#B0B0B0; }
#nc_container a:hover { color:#B0B0B0; }
#nc_container strong { color:#F3F3F3; }
#nc_container .list { background-color:#333; filter:alpha(opacity=95); opacity:0.95; -moz-opacity:0.95; }
#nc_container .list li { border-color:#555; }
#nc_container .list li a:hover { background-color:#555; }
#nc_container .list span.ago { color:#D4AF37; }
#nc_container .list .more { background: #555; }
#nc_container a.readall { display:none; color:#555; color:#D83722;}
#nc_container a.notify { color:white; }
#nc_container a.notify .num { background-color:#D83722; color:white; }
#nc_container ul.nc_memu li { padding-right:5px; }

View file

@ -0,0 +1,17 @@
#nc_container { border-bottom-color:#555; background-color:#333; color:#B0B0B0; opacity:0.95; }
#nc_container a { color:#B0B0B0; }
#nc_container a:hover { color:#B0B0B0; }
#nc_container strong { color:#F3F3F3; }
#nc_container .list { background-color:#333; filter:alpha(opacity=95); opacity:0.95; -moz-opacity:0.95; }
#nc_container .list li { border-color:#555; }
#nc_container .list li a:hover { background-color:#555; }
#nc_container .list span.ago { color:#D4AF37; }
#nc_container .list .more { background: #555; }
#nc_container a.readall { display:none; color:#555; color:#D83722;}
#nc_container a.notify { color:white; }
#nc_container a.notify .num { background-color:#D83722; color:white; }
#nc_container ul.nc_memu li { padding-right:5px; }
#nc_container img.nc_profile_img { display:none;}

View file

@ -0,0 +1,185 @@
#nc_container {
z-index:99;
position:fixed;
top:0;
left:0;
margin:0;
padding:0;
width:100%;
height:30px;
border-bottom:1px solid;
font-size:12px;
line-height:15px;
}
.ncenterlite_block {
height:28px;
}
#nc_container a {
padding:0;
font-size:12px;
text-decoration:none;
}
#nc_container ul.nc_memu {
display:block;
margin:0;
padding:4px;
list-style:none;
line-height:20px;
}
#nc_container ul:after {
content:"";
display:block;
clear:both;
}
#nc_container ul.nc_memu li {
display:inline-block;
padding:0 5px;
height:20px;
width:auto;
background:transparent!important;
}
#nc_container ul.nc_memu li.fLeft {
float:left;
}
#nc_container ul.nc_memu li.fRight {
float:right;
}
#nc_container ul.nc_memu li a.notify {
display:block;
float:left;
}
#nc_container a.close {
display:block;
}
#nc_container .nc_profile img {
width:20px;
height:20px;
vertical-align:top;
}
#nc_container a.notify .num {
padding:1px 2px;
border:0;
border-radius:3px;
-webkit-border-radius:3px;
-moz-border-radius:3px;
font-size:12px;
font-weight:700;
font-family:Gulim,"lucida grande",tahoma,verdana,arial,sans-serif;
}
#nc_container .list {
display:none;
position:absolute;
top:30px;
left:0;
max-width:330px;
width:330px;
box-sizing:border-box;
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
-o-box-sizing:border-box;
}
#nc_container a.readall {
display:none;
float:left;
margin:0 4px;
font-size:11px;
font-weight:700;
}
#nc_container .listscroll {
overflow-y:auto;
overflow-x:hidden;
}
#nc_container .list ul {
overflow:hidden;
margin:-1px 0;
padding:0;
list-style:none;
}
#nc_container .list li {
margin:-1px 0;
border:1px solid #555;
border-width:1px 0;
}
#nc_container .list li img {
float:left;
margin-right:5px;
width:45px;
height:45px;
border:0;
}
#nc_container .list li a {
display:block;
overflow:hidden;
padding:10px;
font-size:12px;
}
#nc_container .list span.ago {
display:block;
font-size:10px;
}
#nc_container .list .more {
display:block;
padding:10px;
text-align:center;
}
#nc_container ~ .navbar.navbar-fixed-top {
top:28px;
}
#nc_container a:hover,#nc_container .list li a:hover,#nc_container .list .more:hover {
text-decoration:none;
}
@media only screen and max-device-width 480px {
#nc_container {
position:relative;
height:auto;
}
#nc_container .list {
top:2px;
position:relative;
}
#nc_container .list ul {
display:block;
position:relative;
}
#nc_container ul.nc_memu:after {
content:"";
display:block;
visibility:hidden;
height:0;
clear:both;
}
#nc_container .listscroll {
overflow:visible;
}
.ncenterlite_block {
display:none;
}
}

View file

@ -0,0 +1,16 @@
#nc_container { border-bottom-color:#C0C0C0; background-color:#efefef; color:#666; opacity:0.95; }
#nc_container a { color:#666; }
#nc_container a:hover { color:#666; }
#nc_container strong { color:#666; }
#nc_container a.notify strong { color:#FC2772; }
#nc_container .list { background-color:#efefef; filter:alpha(opacity=95); opacity:0.95; -moz-opacity:0.95; }
#nc_container .list li { border-color:#ddd; }
#nc_container .list li a:hover { background-color: #ddd; }
#nc_container .list span.ago { color:#D4AF37; }
#nc_container .list a.notify sup.num { background-color:#D83722; color:white; }
#nc_container .list .more { background: #ddd; }
#nc_container a.readall { display:none; color:#555; font-size:10px; color:#D83722;}
#nc_container a.notify { color:#666; }
#nc_container a.notify .num { background-color:#D83722; color:white; }
#nc_container ul.nc_memu li { padding-right:5px; }

View file

@ -0,0 +1,18 @@
#nc_container { border-bottom-color:#C0C0C0; background-color:#efefef; color:#666; opacity:0.95; }
#nc_container a { color:#666; }
#nc_container a:hover { color:#666; }
#nc_container strong { color:#666; }
#nc_container a.notify strong { color:#FC2772; }
#nc_container .list { background-color:#efefef; filter:alpha(opacity=95); opacity:0.95; -moz-opacity:0.95; }
#nc_container .list li { border-color:#ddd; }
#nc_container .list li a:hover { background-color: #ddd; }
#nc_container .list span.ago { color:#D4AF37; }
#nc_container .list a.notify sup.num { background-color:#D83722; color:white; }
#nc_container .list .more { background: #ddd; }
#nc_container a.readall { display:none; color:#555; font-size:10px; color:#D83722;}
#nc_container a.notify { color:#666; }
#nc_container a.notify .num { background-color:#D83722; color:white; }
#nc_container ul.nc_memu li { padding-right:5px; }
#nc_container img.nc_profile_img { display:none;}

View file

@ -0,0 +1,122 @@
<div id="nc_container" {$ncenterlite_zindex}>
<ul class="nc_memu">
<li class="nc_profile fLeft">
<block cond="$useProfileImage">
<img cond="$profileImage" src="{$profileImage->src}" alt="my profile" class="nc_profile_img" />
<img cond="!$profileImage" src="{Context::getRequestUri()}modules/ncenterlite/skins/default/img/p.png" alt="my profile" class="nc_profile_img" />
</block>
<strong>{$logged_info->nick_name}</strong> {$lang->ncenterlite_sir}!
</li>
<li class="fLeft">
<a class="notify" href="#">
<!--@if($_ncenterlite_num > 1)-->
{sprintf($lang->ncenterlite_messages, $ncenterlite_page_navigation->total_count)}
<!--@else-->
{sprintf($lang->ncenterlite_message, $ncenterlite_page_navigation->total_count)}
<!--@endif-->
</a>
<a cond="$ncenterlite_page_navigation->total_count >= 1" href="#" class="readall">{$lang->ncenterlite_delete_all}</a>
</li>
<li class="fRight"><a class="close" href="#">× Close</a></li>
</ul>
<div class="list">
<ul>
<li loop="$ncenterlite_list => $o">
<a href="{$o->url}">
<block cond="$useProfileImage">
<img src="{$o->profileImage}"|cond="$o->profileImage" src="{Context::getRequestUri()}modules/ncenterlite/skins/default/img/p.png"|cond="!$o->profileImage" alt="" class="nc_profile_img" />
</block>
<span class="msg">{$o->text}</span><span class="ago">{$o->ago}</span>
</a>
</li>
</ul>
<a cond="$ncenterlite_page_navigation->total_count > 5" class="more" href="#" data-page="2">{$lang->ncenterlite_more}</a>
</div>
</div>
<div class="ncenterlite_block"></div>
<script type="text/javascript">
//<![CDATA[
(function($){
$(function(){
function setCookie(n, v, d){
var e = "";
if(d){ var dt=new Date(); dt.setTime(dt.getTime() + (d*24*60*60000)); e="; expires=" + dt.toGMTString(); }
document.cookie = n + "=" + v + e + "; path=/";
}
var n = $('#nc_container');
$('.close',n).click(function(){
setCookie('_ncenterlite_hide_id', '{$ncenterlite_latest_notify_id}', 1); n.hide().next('div').hide(); return false;
});
$('.readall',n).click(function(){
exec_xml('ncenterlite', 'procNcenterliteNotifyReadAll'); $('.close',n).triggerHandler('click'); return false;
});
$('a.notify',n).click(function(){
$('.list',n).toggle(); $('.readall',n).toggle(); return false;
});
$(document).click(function(e){
var t = $(e.target);if(!t.is('#nc_container') && t.parents('#nc_container').length == 0){ if($('.list', n).is(':visible')) { $('.list',n).hide(); $('.readall',n).hide(); return false; } }
});
var $listWrap = $('.list ul',n);
var $btnMore = $('.more',n);
$btnMore.click(function(){
var page = $(this).data('page');
var $item_html = $('<li><a><span class="msg"></span><span class="ago"></span></a></li>');
var $profileImg = $('<img class="nc_profile_img" alt="" />');
$.exec_json('ncenterlite.getMyNotifyListTpl', { 'page':page }, function(ret) {
if(!ret.list.data) return;
for(var i in ret.list.data)
{
var item = ret.list.data[i];
var $html = $item_html.clone();
if(ret.useProfileImage == 'Y')
{
var $img = $profileImg.clone();
if(!item.profileImage) item.profileImage = request_uri + 'modules/ncenterlite/skins/default/img/p.png';
$img.attr('src', item.profileImage);
$html.find('a').prepend($img);
}
$('span.msg', $html).html(item.text);
$('span.ago', $html).html(item.ago);
$('a', $html).attr('href', item.url);
if(i == 0) $html.attr('id', 'ncenterlite_page_' + ret.list.page.cur_page);
$listWrap.append($html);
}
$listWrap.animate({scrollTop: (ret.list.page.cur_page-1) * 265}, 800);
if(ret['list'].page.total_page <= ret.list.page.cur_page)
{
$btnMore.remove();
}
}, ['list']);
$(this).data('page', ++page);
return false;
});
});
<block cond="!Mobile::isFromMobilePhone()">
function sc(){
var wh = $(window).height();
var l = $('#nc_container .list');
if(l.height()+100 >= wh) {
l.height(wh-98).addClass('listscroll');
} else {
l.height('auto').removeClass('listscroll');
}
setTimeout(sc, 100);
}
sc();
</block>
})(jQuery);
//]]>
</script>

View file

@ -0,0 +1,12 @@
#nc_container { height:auto; position:relative; }
#nc_container .list { top:2px; position:relative; }
#nc_container .list ul { display:block; position:relative; }
#nc_container ul.nc_memu:after {
content: "";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
#nc_container .listscroll { overflow: visible; }
.ncenterlite_block { display:none; }

View file

@ -0,0 +1,16 @@
#nc_container { border:1px solid #efefef; background-color:#fff; color:#000; opacity:0.95; }
#nc_container a { color:#666; }
#nc_container a:hover { color:#666; }
#nc_container strong { color:#000; }
#nc_container a.notify strong { color:#F60; }
#nc_container .list { border:1px solid #efefef; background-color:#fff; filter:alpha(opacity=95); opacity:0.95; -moz-opacity:0.95; }
#nc_container .list li { border-color:#eee; }
#nc_container .list li a:hover { background-color: #eee; }
#nc_container .list span.ago { color:#D4AF37; }
#nc_container .list a.notify .num { background-color:#D83722; color:white; }
#nc_container .list .more { background: #eee; }
#nc_container a.readall { display:none; color:#555; font-size:10px; color:#D83722;}
#nc_container a.notify { color:#666; }
#nc_container a.notify .num { background-color:#D83722; color:white; }
#nc_container ul.nc_memu li { padding-right:5px; }

View file

@ -0,0 +1,18 @@
#nc_container { border:1px solid #efefef; background-color:#fff; color:#000; opacity:0.95; }
#nc_container a { color:#666; }
#nc_container a:hover { color:#666; }
#nc_container strong { color:#000; }
#nc_container a.notify strong { color:#F60; }
#nc_container .list { border:1px solid #efefef; background-color:#fff; filter:alpha(opacity=97); opacity:0.97; -moz-opacity:0.97; }
#nc_container .list li { border-color:#eee; }
#nc_container .list li a:hover { background-color: #eee; }
#nc_container .list span.ago { color:#D4AF37; }
#nc_container .list a.notify .num { background-color:#D83722; color:white; }
#nc_container .list .more { background: #eee; }
#nc_container a.readall { display:none; color:#555; font-size:10px; color:#D83722;}
#nc_container a.notify { color:#666; }
#nc_container a.notify .num { background-color:#D83722; color:white; }
#nc_container ul.nc_memu li { padding-right:5px; }
#nc_container img.nc_profile_img { display:none;}

View file

@ -0,0 +1,97 @@
@charset "utf-8";
.sosi-title {
position: relative;
font-size: 16px;
font-style: bold;
display: block;
margin: 14px 0 14px 14px;
width: auto;
}
.history-list {
margin: 0 0 22px 0px;
}
.history-list .history-item {
position: relative;
padding: 4px 0 4px 14px;
border-top: 1px solid #ececec;
overflow: hidden;
}
.history-list .history-info {
padding: 0 11px 9px 0;
}
.history-list .history-info .history-gird{
color: #252525;
font-size: 14px;
line-height: 16px;
font-weight: bold;
margin-top: 9px;
display:block;
}
.text-ellipsis {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.history-list .history-info .history-gird .history-succeed{
color:#3c763d
}
.history-list .history-info .history-gird .history-failed{
color:#a94442
}
.history-list .history-text{
color: #252525;
font-size: 11px;
line-height: 16px;
}
.history-list .history-text .history-ip{
color: #8A8D99;
font-size: 12px;
}
.history-list .history-text .history-auth{
color: #8A8D99;
margin-left:3px;
}
html{color:#000;background:#fff;}
legend{color:#000;}
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,ul,li,ol,dl,dt,dd,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;}
abbr,acronym,address,caption,cite,code,dfn,em,strong,th,var,h1,h2,h3,h4,h5,h6{font-style:normal;font-weight:normal;font-variant:normal;}
body{line-height:1; color: #333; font: normal normal normal 13px/1.5 'Helvetica Neue', Helvetica, Arial, sans-serif;}
ol,ul,li{list-style:none;}
html {margin: 0; padding: 0; border: 0; overflow: auto; background-color: #f4f4f4;}
body, .default-font {font: normal normal normal 12px/16px 'Helvetica Neue', Helvetica, Arial, sans-serif;}
body, .default-color {color: #3b3b3b;}
body, .default-background-color {background-color: #fff;}
table {font-size: inherit; font: 100%;}
h1, h2, h3, h4, h5, h6 {margin: 0; font-weight: bold;}
h1 {font-size: 36px; line-height: 45px;}
h2 {font-size: 24px; line-height: 30px;}
h3 {font-size: 18px; line-height: 22px;}
h4 {font-size: 16px; line-height: 20px;}
h5 {font-size: 14px; line-height: 18px;}
h6 {font-size: 12px; line-height: 16px;}
.cfix { zoom:1 }
.cfix:after { content: '.'; display:block; clear:both; visibility:hidden; line-height:0; height:0; overflow: hidden; }
strong, .bold {font-weight: bold;}
a { text-decoration:none; color:#1769FF;}

View file

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<skin version="0.2">
<title xml:lang="ko">XE 알림센터 Lite 기본스킨</title>
<version>1.1.1</version>
<date>2013-03-21</date>
<author email_address="info@xemagazine.com" link="http://xmz.kr/">
<name xml:lang="ko">XE Magazine</name>
</author>
<colorset>
<color name="black">
<title xml:lang="ko">검은색</title>
</color>
<color name="gray">
<title xml:lang="ko">회색</title>
</color>
<color name="white">
<title xml:lang="ko">흰색</title>
</color>
<color name="blacknoprofile">
<title xml:lang="ko">검은색(no profile)</title>
</color>
<color name="graynoprofile">
<title xml:lang="ko">회색(no profile)</title>
</color>
<color name="whitenoprofile">
<title xml:lang="ko">흰색(no profile)</title>
</color>
</colorset>
</skin>

View file

@ -0,0 +1,66 @@
<load target="../../../member/skins/default/css/member.css" />
<div class="xm">
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/ncenterlite/m.skins/default/userconfig/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form ruleset="insertConfig" action="./" method="post" class="form-horizontal" id="fo_ncenterlite">
<input type="hidden" name="module" value="ncenterlite" />
<input type="hidden" name="act" value="procNcenterliteUserConfig" />
<input type="hidden" name="xe_validator_id" value="modules/ncenterlite/m.skins/default/userconfig/1" />
<input type="hidden" name="member_srl" value="{$member_srl}">
<section class="section">
<h1><block cond="$member_info">{@$user_str = $member_info->nick_name}</block>
<block cond="!$member_info">{@$user_str = $logged_info->nick_name}</block>
{@$title_str = Context::getLang('ncenterlite_userconfig_title')}
{sprintf($title_str, $user_str)}
</h1>
<p>{$lang->ncenterlite_userconfig_about} <strong style="color:#ff0000" cond="$member_srl && $member_srl != $logged_info->member_srl">({$lang->ncenterlite_userconfig_about_warning})</strong></p>
<div class="control-group">
<label class="control-label">{$lang->ncenterlite_comment_noti}</label>
<div class="controls">
<label class="inline">
<input type="radio" name="comment_notify" value="Y" checked="checked"|cond="$user_config->comment_notify == 'Y'" /> {$lang->ncenterlite_activate}
</label>
<label class="inline">
<input type="radio" name="comment_notify" value="N" checked="checked"|cond="$user_config->comment_notify == 'N'" /> {$lang->ncenterlite_inactivate}
</label>
<p class="help-block">{$lang->ncenterlite_comment_noti_about}</p>
</div>
</div>
<div class="control-group">
<label class="control-label">{$lang->ncenterlite_mention_noti}</label>
<div class="controls">
<label class="inline">
<input type="radio" name="mention_notify" value="Y" checked="checked"|cond="$user_config->mention_notify == 'Y'" /> {$lang->ncenterlite_activate}
</label>
<label class="inline">
<input type="radio" name="mention_notify" value="N" checked="checked"|cond="$user_config->mention_notify == 'N'" /> {$lang->ncenterlite_inactivate}
</label>
<p class="help-block">{$lang->ncenterlite_mention_noti_about}</p>
</div>
</div>
<div class="control-group">
<label class="control-label">{$lang->ncenterlite_message_noti}</label>
<div class="controls">
<label class="inline">
<input type="radio" name="message_notify" value="Y" checked="checked"|cond="$user_config->message_notify == 'Y'" /> {$lang->ncenterlite_activate}
</label>
<label class="inline">
<input type="radio" name="message_notify" value="N" checked="checked"|cond="$user_config->message_notify == 'N'" /> {$lang->ncenterlite_inactivate}
</label>
<p class="help-block">{$lang->ncenterlite_message_noti_about}</p>
</div>
</div>
</section>
<div class="clearfix btnArea">
<div class="pull-right">
<button class="btn btn-primary" type="submit">{$lang->cmd_registration}</button>
</div>
</div>
</form>
</div>

View file

@ -0,0 +1,152 @@
<?php
class ncenterliteAdminController extends ncenterlite
{
function procNcenterliteAdminInsertConfig()
{
$oModuleController = getController('module');
$obj = Context::getRequestVars();
$config = new stdClass();
$config->use = $obj->use;
$config->display_use = $obj->display_use;
$config->user_config_list = $obj->user_config_list;
$config->mention_format = $obj->mention_format;
$config->mention_names = $obj->mention_names;
$config->document_notify = $obj->document_notify;
$config->message_notify = $obj->message_notify;
$config->hide_module_srls = $obj->hide_module_srls;
$config->android_format = $obj->android_format;
if(!$config->mention_format && !is_array($config->mention_format))
{
$config->mention_format = array();
}
$config->admin_comment_module_srls = $obj->admin_comment_module_srls;
$config->skin = $obj->skin;
$config->mskin = $obj->mskin;
$config->mcolorset = $obj->mcolorset;
$config->colorset = $obj->colorset;
$config->zindex = $obj->zindex;
$config->anonymous_name = $obj->anonymous_name;
$config->document_read = $obj->document_read;
$config->layout_srl = $obj->layout_srl;
$config->mlayout_srl = $obj->mlayout_srl;
$config->voted_format = $obj->voted_format;
if(!$config->document_notify)
{
$config->document_notify = 'direct-comment';
}
$this->setMessage('success_updated');
$oModuleController->updateModuleConfig('ncenterlite', $config);
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON')))
{
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispNcenterliteAdminConfig');
header('location: ' . $returnUrl);
return;
}
}
/**
* @brief 스킨 테스트를 위한 더미 데이터 생성 5 생성
**/
function procNcenterliteAdminInsertDummyData()
{
$oNcenterliteController = getController('ncenterlite');
$logged_info = Context::get('logged_info');
for($i = 1; $i <= 5; $i++)
{
$args = new stdClass();
$args->member_srl = $logged_info->member_srl;
$args->srl = 1;
$args->target_srl = 1;
$args->type = $this->_TYPE_TEST;
$args->target_type = $this->_TYPE_TEST;
$args->target_url = getUrl('');
$args->target_summary = Context::getLang('ncenterlite_thisistest') . rand();
$args->target_nick_name = $logged_info->nick_name;
$args->regdate = date('YmdHis');
$args->notify = $oNcenterliteController->_getNotifyId($args);
$output = $oNcenterliteController->_insertNotify($args);
}
}
/**
* @brief 모듈 푸시 테스트를 위한 더미 데이터 생성 1 생성
**/
function procNcenterliteAdminInsertPushData()
{
$oNcenterliteController = getController('ncenterlite');
$logged_info = Context::get('logged_info');
$args = new stdClass();
$args->member_srl = $logged_info->member_srl;
$args->srl = 1;
$args->target_srl = 1;
$args->type = $this->_TYPE_DOCUMENT;
$args->target_type = $this->_TYPE_COMMENT;
$args->target_url = getUrl('');
$args->target_summary = Context::getLang('ncenterlite_thisistest') . rand();
$args->target_nick_name = $logged_info->nick_name;
$args->regdate = date('YmdHis');
$args->notify = $oNcenterliteController->_getNotifyId($args);
$output = $oNcenterliteController->_insertNotify($args);
}
function procNcenterliteAdminDeleteNofity()
{
$old_date = Context::get('old_date');
$args = new stdClass;
if($old_date)
{
$args->old_date = $old_date;
}
$output = executeQuery('ncenterlite.deleteNotifyAll', $args);
if(!$output->toBool())
{
$oDB->rollback();
return $output;
}
if($old_date)
{
$oNcenterliteModel = getModel('ncenterlite');
$message = Context::getLang('ncenterlite_message_delete_notification_before');
$message = sprintf($message, $oNcenterliteModel->getAgo($old_date) );
$this->setMessage($message);
}
else
{
$this->setMessage('ncenterlite_message_delete_notification_all');
}
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON')))
{
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispNcenterliteAdminList');
header('location: ' .$returnUrl);
return;
}
}
function procNcenterliteAdminEnviromentGatheringAgreement()
{
$vars = Context::getRequestVars();
$oModuleModel = getModel('module');
$ncenterlite_module_info = $oModuleModel->getModuleInfoXml('ncenterlite');
$agreement_file = FileHandler::getRealPath(sprintf('%s%s.txt', './files/ncenterlite/ncenterlite-', $ncenterlite_module_info->version));
FileHandler::writeFile($agreement_file, $vars->is_agree);
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON')))
{
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispNcenterliteAdminConfig');
header('location: ' . $returnUrl);
return;
}
}
}

View file

@ -0,0 +1,105 @@
<?php
class ncenterliteAdminModel extends ncenterlite
{
function getAdminNotifyList($member_srl=null, $page=1, $readed='N')
{
$oNcenterliteModel = getModel('ncenterlite');
$config = $oNcenterliteModel->getConfig();
global $lang;
$act = Context::get('act');
$output = $oNcenterliteModel->getNcenterliteAdminList();
$oMemberModel = getModel('member');
$list = $output->data;
foreach($list as $k => $v)
{
$target_member = $v->target_nick_name;
switch($v->type)
{
case 'D':
$type = $lang->ncenterlite_document; //$type = '글';
break;
case 'C':
$type = $lang->ncenterlite_comment; //$type = '댓글';
break;
// 메시지. 쪽지
case 'E':
$type = $lang->ncenterlite_type_message; //$type = '쪽지';
break;
}
switch($v->target_type)
{
case 'C':
$str = sprintf($lang->ncenterlite_commented, $target_member, $type, $v->target_summary);
//$str = sprintf('<strong>%s</strong>님이 회원님의 %s에 <strong>"%s" 댓글</strong>을 남겼습니다.', $target_member, $type, $v->target_summary);
break;
case 'A':
$str = sprintf($lang->ncenterlite_commented_board, $target_member, $v->target_browser, $v->target_summary);
//$str = sprintf('<strong>%1$s</strong>님이 게시판 <strong>"%2$s"</strong>에 <strong>"%3$s"</strong>라고 댓글을 남겼습니다.', $target_member, $type, $v->target_summary);
break;
case 'M':
$str = sprintf($lang->ncenterlite_mentioned, $target_member, $v->target_summary, $type);
//$str = sprintf('<strong>%s</strong>님이 <strong>"%s" %s</strong>에서 회원님을 언급하였습니다.', $target_member, $v->target_summary, $type);
break;
// 메시지. 쪽지
case 'E':
if(version_compare(__XE_VERSION__, '1.7.4', '>='))
{
$str = sprintf($lang->ncenterlite_message_mention, $target_member, $v->target_summary);
//<strong>%s</strong>님께서 <strong>"%s"</strong>라고 메세지를 보내셨습니다.
}
else
{
$str = sprintf($lang->ncenterlite_message_string, $v->target_summary);
}
break;
case 'T':
$str = sprintf($lang->ncenterlite_test_noti, $target_member);
break;
case 'P':
$str = sprintf($lang->ncenterlite_board, $target_member, $v->target_browser, $v->target_summary);
//<strong>%1$s</strong>님이 게시판 <strong>"%2$s"</strong>에 <strong>"%3$s"</strong>라고 글을 남겼습니다.
break;
case 'S':
if($v->target_browser)
{
$str = sprintf($lang->ncenterlite_board, $target_member, $v->target_browser, $v->target_summary);
}
else
{
$str = sprintf($lang->ncenterlite_article, $target_member, $v->target_summary);
}
break;
case 'V':
$str = sprintf($lang->ncenterlite_vote, $target_member, $v->target_summary);
break;
}
if($v->type=='U')
{
$str = $oNcenterliteModel->getNotifyTypeString($v->notify_type,unserialize($v->target_body));
}
$v->text = $str;
$v->ago = $oNcenterliteModel->getAgo($v->regdate);
$v->url = getUrl('','act','procNcenterliteRedirect', 'notify', $v->notify, 'url', $v->target_url);
if($v->target_member_srl)
{
$profileImage = $oMemberModel->getProfileImage($v->target_member_srl);
$v->profileImage = $profileImage->src;
}
$list[$k] = $v;
}
$output->data = $list;
return $output;
}
}

View file

@ -0,0 +1,90 @@
<?php
class ncenterliteAdminView extends ncenterlite
{
function init()
{
$this->setTemplatePath($this->module_path.'tpl');
$this->setTemplateFile(str_replace('dispNcenterliteAdmin', '', $this->act));
}
function dispNcenterliteAdminConfig()
{
$oModuleModel = getModel('module');
$oNcenterliteModel = getModel('ncenterlite');
$oLayoutModel = getModel('layout');
$config = $oNcenterliteModel->getConfig();
Context::set('config', $config);
$layout_list = $oLayoutModel->getLayoutList();
Context::set('layout_list', $layout_list);
$mobile_layout_list = $oLayoutModel->getLayoutList(0, 'M');
Context::set('mlayout_list', $mobile_layout_list);
$skin_list = $oModuleModel->getSkins($this->module_path);
Context::set('skin_list', $skin_list);
$mskin_list = $oModuleModel->getSkins($this->module_path, "m.skins");
Context::set('mskin_list', $mskin_list);
if(!$skin_list[$config->skin]) $config->skin = 'default';
Context::set('colorset_list', $skin_list[$config->skin]->colorset);
if(!$mskin_list[$config->mskin]) $config->mskin = 'default';
Context::set('mcolorset_list', $mskin_list[$config->mskin]->colorset);
$security = new Security();
$security->encodeHTML('config..');
$security->encodeHTML('skin_list..title');
$security->encodeHTML('colorset_list..name','colorset_list..title');
$mid_list = $oModuleModel->getMidList(null, array('module_srl', 'mid', 'browser_title', 'module'));
Context::set('mid_list', $mid_list);
// 사용환경정보 전송 확인
$ncenterlite_module_info = $oModuleModel->getModuleInfoXml('ncenterlite');
$agreement_file = FileHandler::getRealPath(sprintf('%s%s.txt', './files/ncenterlite/ncenterlite-', $ncenterlite_module_info->version));
$agreement_ver_file = FileHandler::getRealPath(sprintf('%s%s.txt', './files/ncenterlite/ncenterlite_ver-', $ncenterlite_module_info->version));
if(file_exists($agreement_file))
{
$agreement = FileHandler::readFile($agreement_file);
Context::set('_ncenterlite_env_agreement', $agreement);
$agreement_ver = FileHandler::readFile($agreement_ver_file);
if($agreement == 'Y')
{
$_ncenterlite_iframe_url = 'http://sosifam.com/index.php?mid=ncenterlite_iframe';
if(!$agreement_ver)
{
$_host_info = urlencode($_SERVER['HTTP_HOST']) . '-NC' . $ncenterlite_module_info->version . '-PHP' . phpversion() . '-RX' . RX_VERSION;
}
Context::set('_ncenterlite_iframe_url', $_ncenterlite_iframe_url . '&_host='. $_host_info);
Context::set('ncenterlite_module_info', $ncenterlite_module_info);
}
FileHandler::writeFile($agreement_ver_file, 'Y');
}
else
{
Context::set('_ncenterlite_env_agreement', 'NULL');
}
}
function dispNcenterliteAdminList()
{
$oNcenterliteAdminModel = getAdminModel('ncenterlite');
$output = $oNcenterliteAdminModel->getAdminNotifyList();
Context::set('total_count', $output->page_navigation->total_count);
Context::set('total_page', $output->page_navigation->total_page);
Context::set('page', $output->page);
Context::set('ncenterlite_list', $output->data);
Context::set('page_navigation', $output->page_navigation);
$this->setTemplateFile('ncenter_list');
}
}

View file

@ -0,0 +1,231 @@
<?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'; // 어드민 댓글 알림
var $_TYPE_MENTION = 'M'; // 멘션
var $_TYPE_MESSAGE = 'E'; // 쪽지 mEssage
var $_TYPE_DOCUMENTS = 'P'; // 글 작성 알림
var $_TYPE_VOTED = 'V'; // 추천글 안내 알림
var $_TYPE_TEST = 'T';
var $_TYPE_CUSTOM = 'U'; //Updated alert(uses type table)
var $triggers = array(
array('comment.insertComment', 'ncenterlite', 'controller', 'triggerAfterInsertComment', 'after'),
array('comment.deleteComment', 'ncenterlite', 'controller', 'triggerAfterDeleteComment', 'after'),
array('document.insertDocument', 'ncenterlite', 'controller', 'triggerAfterInsertDocument', 'after'),
array('document.deleteDocument', 'ncenterlite', 'controller', 'triggerAfterDeleteDocument', 'after'),
array('display', 'ncenterlite', 'controller', 'triggerBeforeDisplay', 'before'),
array('moduleHandler.proc', 'ncenterlite', 'controller', 'triggerAfterModuleHandlerProc', 'after'),
array('member.deleteMember', 'ncenterlite', 'controller', 'triggerAfterDeleteMember', 'after'),
array('communication.sendMessage', 'ncenterlite', 'controller', 'triggerAfterSendMessage', 'after'),
array('document.updateVotedCount', 'ncenterlite', 'controller', 'triggerAfterVotedupdate', 'after'),
array('moduleHandler.init', 'ncenterlite', 'controller', 'triggerAddMemberMenu', 'after'),
);
private $delete_triggers = array(
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();
}
function checkUpdate()
{
$oModuleModel = getModel('module');
$oDB = &DB::getInstance();
foreach($this->triggers as $trigger)
{
if(!$oModuleModel->getTrigger($trigger[0], $trigger[1], $trigger[2], $trigger[3], $trigger[4])) return true;
}
foreach($this->delete_triggers as $trigger)
{
if($oModuleModel->getTrigger($trigger[0], $trigger[1], $trigger[2], $trigger[3], $trigger[4]))
{
return true;
}
}
if(!$oDB->isColumnExists('ncenterlite_notify', 'readed'))
{
return true;
}
if(!$oDB->isColumnExists('ncenterlite_notify', 'target_body'))
{
return true;
}
if(!$oDB->isColumnExists('ncenterlite_notify', 'notify_type'))
{
return true;
}
if(!$oDB->isColumnExists('ncenterlite_notify', 'target_browser'))
{
return true;
}
if(!$oDB->isColumnExists('ncenterlite_notify', 'target_p_srl'))
{
return true;
}
if(!$oDB->isIndexExists('ncenterlite_notify', 'idx_srl'))
{
return true;
}
if(!$oDB->isIndexExists('ncenterlite_notify', 'idx_target_srl'))
{
return true;
}
if(!$oDB->isIndexExists('ncenterlite_notify', 'idx_target_p_srl'))
{
return true;
}
if(!$oDB->isIndexExists('ncenterlite_notify', 'idx_notify'))
{
return true;
}
if(!$oDB->isIndexExists('ncenterlite_notify', 'idx_target_member_srl'))
{
return true;
}
return false;
}
function moduleUpdate()
{
$oModuleModel = getModel('module');
$oModuleController = getController('module');
$oDB = &DB::getInstance();
foreach($this->triggers as $trigger)
{
if(!$oModuleModel->getTrigger($trigger[0], $trigger[1], $trigger[2], $trigger[3], $trigger[4]))
{
$oModuleController->insertTrigger($trigger[0], $trigger[1], $trigger[2], $trigger[3], $trigger[4]);
}
}
foreach($this->delete_triggers as $trigger)
{
if($oModuleModel->getTrigger($trigger[0], $trigger[1], $trigger[2], $trigger[3], $trigger[4]))
{
$oModuleController->deleteTrigger($trigger[0], $trigger[1], $trigger[2], $trigger[3], $trigger[4]);
}
}
if(!$oDB->isColumnExists('ncenterlite_notify','readed'))
{
$oDB->addColumn('ncenterlite_notify', 'readed', 'char', 1, 'N', true);
$oDB->addIndex('ncenterlite_notify', 'idx_readed', array('readed'));
$oDB->addIndex('ncenterlite_notify', 'idx_member_srl', array('member_srl'));
$oDB->addIndex('ncenterlite_notify', 'idx_regdate', array('regdate'));
}
if(!$oDB->isColumnExists('ncenterlite_notify','target_browser'))
{
$oDB->addColumn('ncenterlite_notify', 'target_browser', 'varchar', 50, true);
}
if(!$oDB->isColumnExists('ncenterlite_notify','target_body'))
{
$oDB->addColumn('ncenterlite_notify', 'target_body', 'varchar', 255, true);
}
if(!$oDB->isColumnExists('ncenterlite_notify','notify_type'))
{
$oDB->addColumn('ncenterlite_notify', 'notify_type', 'number', 11, 0);
}
if(!$oDB->isColumnExists('ncenterlite_notify','target_p_srl'))
{
$oDB->addColumn('ncenterlite_notify', 'target_p_srl', 'number', 10, true);
}
if(!$oDB->isIndexExists('ncenterlite_notify', 'idx_srl'))
{
$oDB->addIndex('ncenterlite_notify', 'idx_srl', array('srl'));
}
if(!$oDB->isIndexExists('ncenterlite_notify', 'idx_target_srl'))
{
$oDB->addIndex('ncenterlite_notify', 'idx_target_srl', array('target_srl'));
}
if(!$oDB->isIndexExists('ncenterlite_notify', 'idx_target_p_srl'))
{
$oDB->addIndex('ncenterlite_notify', 'idx_target_p_srl', array('target_p_srl'));
}
if(!$oDB->isIndexExists('ncenterlite_notify', 'idx_notify'))
{
$oDB->addIndex('ncenterlite_notify', 'idx_notify', array('notify'));
}
if(!$oDB->isIndexExists('ncenterlite_notify', 'idx_target_member_srl'))
{
$oDB->addIndex('ncenterlite_notify', 'idx_target_member_srl', array('target_member_srl'));
}
return new Object(0, 'success_updated');
}
function recompileCache()
{
return new Object();
}
function moduleUninstall()
{
$oModuleController = getController('module');
foreach($this->triggers as $trigger)
{
$oModuleController->deleteTrigger($trigger[0], $trigger[1], $trigger[2], $trigger[3], $trigger[4]);
}
return new Object();
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,38 @@
<?php
class ncenterliteMobile extends ncenterliteView
{
function init()
{
$oNcenterliteModel = getModel('ncenterlite');
$config = $oNcenterliteModel->getConfig();
$template_path = sprintf("%sm.skins/%s/",$this->module_path, $config->mskin);
if(!is_dir($template_path)||!$config->mskin)
{
$config->skin = 'default';
$template_path = sprintf("%sm.skins/%s/",$this->module_path, $config->mskin);
}
$this->setTemplatePath($template_path);
$oLayoutModel = getModel('layout');
$layout_info = $oLayoutModel->getLayout($config->mlayout_srl);
if($layout_info)
{
$this->module_info->mlayout_srl = $config->mlayout_srl;
$this->setLayoutPath($layout_info->path);
}
}
function dispNcenterliteNotifyList()
{
parent::dispNcenterliteNotifyList();
}
function dispNcenterliteUserConfig()
{
parent::dispNcenterliteUserConfig();
}
}

View file

@ -0,0 +1,383 @@
<?php
class ncenterliteModel extends ncenterlite
{
private static $config = NULL;
var $notify_args;
var $notify_arguments;
function getConfig()
{
if(self::$config === NULL)
{
$oModuleModel = getModel('module');
$config = $oModuleModel->getModuleConfig('ncenterlite');
if(!$config->use) $config->use = 'Y';
if(!$config->display_use) $config->display_use = 'Y';
if(!$config->mention_names) $config->mention_names = 'nick_name';
if(!$config->message_notify) $config->message_notify = 'Y';
if(!$config->mention_format && !is_array($config->mention_format)) $config->mention_format = array('respect');
if(!is_array($config->mention_format)) $config->mention_format = explode('|@|', $config->mention_format);
if(!$config->document_notify) $config->document_notify = 'direct-comment';
if(!$config->hide_module_srls) $config->hide_module_srls = array();
if(!is_array($config->hide_module_srls)) $config->hide_module_srls = explode('|@|', $config->hide_module_srls);
if(!$config->document_read) $config->document_read = 'N';
if(!$config->voted_format) $config->voted_format = 'N';
if(!$config->skin) $config->skin = 'default';
if(!$config->colorset) $config->colorset = 'black';
self::$config = $config;
}
return self::$config;
}
function getNotifyTypebySrl($notify_srl='')
{
$args = new stdClass();
$args->notify_type_srl = $notify_srl;
$output = executeQuery('ncenterlite.getNotifyType',$args);
return $output;
}
function getNotifyTypeString($notify_srl='',$notify_args)
{
$this->notify_args = $notify_args;
$output = $this->getNotifyTypebySrl($notify_srl);
$this->notify_arguments = explode("|",$output->data->notify_type_args);
$string = preg_replace_callback("/%([^%]*)%/",array($this, 'replaceNotifyType'),$output->data->notify_string);
return $string;
}
function replaceNotifyType($match)
{
//if replace string is not at arguments, return
if(!in_array($match[1],$this->notify_arguments))
{
return $match[0];
}
//if replace string is not set, return
if(!isset($this->notify_args->{$match[1]}))
{
return $match[0];
}
return $this->notify_args->{$match[1]};
}
function isNotifyTypeExistsbySrl($notify_srl='')
{
$args = new stdClass();
$args->notify_type_srl = $notify_srl;
$output = executeQuery('ncenterlite.getNotifyType',$args);
return isset($output->data->notify_type_id);
}
function insertNotifyType($args)
{
return executeQuery('ncenterlite.insertNotifyType',$args);
}
function getMemberConfig($member_srl=null)
{
if(!$member_srl)
{
$logged_info = Context::get('logged_info');
$member_srl = $logged_info->member_srl;
}
$args = new stdClass();
$args->member_srl = $member_srl;
$output = executeQuery('ncenterlite.getUserConfig', $args);
if(!$output->data) return $output->data;
return $output;
}
function getAllMemberConfig()
{
$output = executeQueryArray('ncenterlite.getAllUserConfig');
return $output;
}
function getMyNotifyList($member_srl=null, $page=1, $readed='N')
{
global $lang;
$act = Context::get('act');
if($act=='dispNcenterliteNotifyList')
{
$output = $this->getMyDispNotifyList($member_srl);
}
else
{
$output = $this->_getMyNotifyList($member_srl, $page, $readed);
}
$oMemberModel = getModel('member');
$list = $output->data;
foreach($list as $k => $v)
{
$target_member = $v->target_nick_name;
switch($v->type)
{
case 'D':
$type = $lang->ncenterlite_document; //$type = '글';
break;
case 'C':
$type = $lang->ncenterlite_comment; //$type = '댓글';
break;
// 메시지. 쪽지
case 'E':
$type = $lang->ncenterlite_type_message; //$type = '쪽지';
break;
}
switch($v->target_type)
{
case 'C':
$str = sprintf($lang->ncenterlite_commented, $target_member, $type, $v->target_summary);
//$str = sprintf('<strong>%s</strong>님이 회원님의 %s에 <strong>"%s" 댓글</strong>을 남겼습니다.', $target_member, $type, $v->target_summary);
break;
case 'A':
$str = sprintf($lang->ncenterlite_commented_board, $target_member, $v->target_browser, $v->target_summary);
//$str = sprintf('<strong>%1$s</strong>님이 게시판 <strong>"%2$s"</strong>에 <strong>"%3$s"</strong>라고 댓글을 남겼습니다.', $target_member, $type, $v->target_summary);
break;
case 'M':
$str = sprintf($lang->ncenterlite_mentioned, $target_member, $v->target_summary, $type);
//$str = sprintf('<strong>%s</strong>님이 <strong>"%s" %s</strong>에서 회원님을 언급하였습니다.', $target_member, $v->target_summary, $type);
break;
// 메시지. 쪽지
case 'E':
$str = sprintf($lang->ncenterlite_message_mention,$target_member, $v->target_summary);
break;
case 'T':
$str = sprintf($lang->ncenterlite_test_noti, $target_member);
break;
case 'P':
$str = sprintf($lang->ncenterlite_board, $target_member, $v->target_browser, $v->target_summary);
break;
case 'S':
if($v->target_browser)
{
$str = sprintf($lang->ncenterlite_board, $target_member, $v->target_browser, $v->target_summary);
}
else
{
$str = sprintf($lang->ncenterlite_article, $target_member, $v->target_summary);
}
break;
case 'V':
$str = sprintf($lang->ncenterlite_vote, $target_member, $v->target_summary);
break;
}
if($v->type=='U')
{
$str = $this->getNotifyTypeString($v->notify_type,unserialize($v->target_body));
}
$v->text = $str;
$v->ago = $this->getAgo($v->regdate);
$v->url = getUrl('','act','procNcenterliteRedirect', 'notify', $v->notify, 'url', $v->target_url);
if($v->target_member_srl)
{
$profileImage = $oMemberModel->getProfileImage($v->target_member_srl);
$v->profileImage = $profileImage->src;
}
$list[$k] = $v;
}
$output->data = $list;
if($page <= 1)
{
$oNcenterliteController = getController('ncenterlite');
$oNcenterliteController->updateFlagFile($member_srl, $output);
}
return $output;
}
function getMyNotifyListTpl()
{
$logged_info = Context::get('logged_info');
if(!$logged_info) return new Object(-1, 'msg_not_permitted');
$oMemberModel = getModel('member');
$memberConfig = $oMemberModel->getMemberConfig();
$page = Context::get('page');
$member_srl = $logged_info->member_srl;
$tmp = $this->getMyNotifyList($member_srl, $page);
foreach($tmp->data as $key => $obj)
{
$tmp->data[$key]->url = str_replace('&amp;', '&', $obj->url);
}
$list = new stdClass();
$list->data = $tmp->data;
$list->page = $tmp->page_navigation;
$this->add('list', $list);
$this->add('useProfileImage', $memberConfig->profile_image);
}
function _getMyNotifyList($member_srl=null, $page=1, $readed='N')
{
if(!$member_srl)
{
$logged_info = Context::get('logged_info');
if(!$logged_info) return array();
$member_srl = $logged_info->member_srl;
}
$flag_path = \RX_BASEDIR . 'files/cache/ncenterlite/new_notify/' . getNumberingPath($member_srl) . $member_srl . '.php';
if(FileHandler::exists($flag_path) && $page <= 1)
{
$output = require_once $flag_path;
if(is_object($output->data))
{
return $output;
}
}
$args = new stdClass();
$args->member_srl = $member_srl;
$args->page = $page ? $page : 1;
if($readed) $args->readed = $readed;
$output = executeQueryArray('ncenterlite.getNotifyList', $args);
if(!$output->data) $output->data = array();
return $output;
}
function getMyDispNotifyList($member_srl)
{
$logged_info = Context::get('logged_info');
$member_srl = $logged_info->member_srl;
$args = new stdClass();
$args->page = Context::get('page');
$args->list_count = '20';
$args->page_count = '10';
$args->member_srl = $member_srl;
$output = executeQueryArray('ncenterlite.getDispNotifyList', $args);
if(!$output->data) $output->data = array();
return $output;
}
function getNcenterliteAdminList($member_srl)
{
$logged_info = Context::get('logged_info');
$member_srl = $logged_info->member_srl;
$args = new stdClass();
$args->page = Context::get('page');
$args->list_count = '20';
$args->page_count = '10';
$output = executeQueryArray('ncenterlite.getAdminNotifyList', $args);
if(!$output->data) $output->data = array();
return $output;
}
function getMemberAdmins()
{
$args = new stdClass();
$args->is_admin = 'Y';
$output = executeQueryArray('ncenterlite.getMemberAdmins', $args);
if(!$output->data) $output->data = array();
return $output;
}
function _getNewCount($member_srl=null)
{
if(!$member_srl)
{
$logged_info = Context::get('logged_info');
if(!$logged_info) return 0;
$member_srl = $logged_info->member_srl;
}
$args->member_srl = $member_srl;
$output = executeQuery('ncenterlite.getNotifyNewCount', $args);
if(!$output->data) return 0;
return $output->data->cnt;
}
function getColorsetList()
{
$oModuleModel = getModel('module');
$skin = Context::get('skin');
$skin_info = $oModuleModel->loadSkinInfo($this->module_path, $skin);
for($i=0, $c=count($skin_info->colorset); $i<$c; $i++)
{
$colorset = sprintf('%s|@|%s', $skin_info->colorset[$i]->name, $skin_info->colorset[$i]->title);
$colorset_list[] = $colorset;
}
if(count($colorset_list)) $colorsets = implode("\n", $colorset_list);
$this->add('colorset_list', $colorsets);
}
/**
* @brief 주어진 시간이 얼마 인지 반환
* @param string YmdHis
* @return string
**/
function getAgo($datetime)
{
global $lang;
$lang_type = Context::getLangType();
$display = $lang->ncenterlite_date; // array('Year', 'Month', 'Day', 'Hour', 'Minute', 'Second')
$ago = $lang->ncenterlite_ago; // 'Ago'
$date = getdate(strtotime(zdate($datetime, 'Y-m-d H:i:s')));
$current = getdate();
$p = array('year', 'mon', 'mday', 'hours', 'minutes', 'seconds');
$factor = array(0, 12, 30, 24, 60, 60);
for($i = 0; $i < 6; $i++)
{
if($i > 0)
{
$current[$p[$i]] += $current[$p[$i - 1]] * $factor[$i];
$date[$p[$i]] += $date[$p[$i - 1]] * $factor[$i];
}
if($current[$p[$i]] - $date[$p[$i]] > 1)
{
$value = $current[$p[$i]] - $date[$p[$i]];
if($lang_type == 'en')
{
return $value . ' ' . $display[$i] . (($value != 1) ? 's' : '') . ' ' . $ago;
}
return $value . $display[$i] . ' ' . $ago;
}
}
return zdate($datetime, 'Y-m-d');
}
}

View file

@ -0,0 +1,71 @@
<?php
class ncenterliteView extends ncenterlite
{
function init()
{
$oNcenterliteModel = getModel('ncenterlite');
$config = $oNcenterliteModel->getConfig();
$template_path = sprintf("%sskins/%s/",$this->module_path, $config->skin);
if(!is_dir($template_path)||!$config->skin)
{
$config->skin = 'default';
$template_path = sprintf("%sskins/%s/",$this->module_path, $config->skin);
}
$this->setTemplatePath($template_path);
$oLayoutModel = getModel('layout');
$layout_info = $oLayoutModel->getLayout($config->layout_srl);
if($layout_info)
{
$this->module_info->layout_srl = $config->layout_srl;
$this->setLayoutPath($layout_info->path);
}
}
function dispNcenterliteNotifyList()
{
$oNcenterliteModel = getModel('ncenterlite');
$output = $oNcenterliteModel->getMyNotifyList();
Context::set('total_count', $output->page_navigation->total_count);
Context::set('total_page', $output->page_navigation->total_page);
Context::set('page', $output->page);
Context::set('ncenterlite_list', $output->data);
Context::set('page_navigation', $output->page_navigation);
$this->setTemplateFile('NotifyList');
}
function dispNcenterliteUserConfig()
{
$oMemberModel = getModel('member');
$member_srl = Context::get('member_srl');
$logged_info = Context::get('logged_info');
if(!$logged_info) return new Object(-1, 'ncenterlite_stop_login_required');
if($logged_info->is_admin == 'Y')
{
$member_info = $oMemberModel->getMemberInfoByMemberSrl($member_srl);
}
if($logged_info->is_admin != 'Y' && $member_srl)
{
if($member_srl != $logged_info->member_srl)
{
return new Object(-1, 'ncenterlite_stop_no_permission_other_user');
}
}
$oNcenterliteModel = getModel('ncenterlite');
if(!$member_srl)
{
$member_srl = $logged_info->member_srl;
}
$output = $oNcenterliteModel->getMemberConfig($member_srl);
Context::set('member_info', $member_info);
Context::set('user_config', $output->data);
$this->setTemplateFile('userconfig');
}
}

View file

@ -0,0 +1,10 @@
<query id="deleteNotify" action="delete">
<tables>
<table name="ncenterlite_notify" />
</tables>
<conditions>
<condition operation="equal" column="notify" var="notify" notnull="notnull" />
<condition operation="equal" column="member_srl" var="member_srl" filter="number" notnull="notnull" pipe="and" />
</conditions>
</query>

View file

@ -0,0 +1,8 @@
<query id="deleteNotifyAll" action="delete">
<tables>
<table name="ncenterlite_notify" />
</tables>
<conditions>
<condition operation="below" column="regdate" var="old_date" />
</conditions>
</query>

View file

@ -0,0 +1,10 @@
<query id="deleteNotifyByMemberSrl" action="delete">
<tables>
<table name="ncenterlite_notify" />
</tables>
<conditions>
<condition operation="equal" column="member_srl" var="member_srl" notnull="notnull" filter="number" />
<condition operation="equal" column="readed" var="readed" pipe="and" />
</conditions>
</query>

View file

@ -0,0 +1,10 @@
<query id="deleteNotifyBySrl" action="delete">
<tables>
<table name="ncenterlite_notify" />
</tables>
<conditions>
<condition operation="equal" column="srl" var="srl" filter="number" notnull="notnull" />
<condition operation="equal" column="target_srl" var="srl" filter="number" notnull="notnull" pipe="or" />
</conditions>
</query>

View file

@ -0,0 +1,10 @@
<query id="deleteNotifyByTargetSrl" action="delete">
<tables>
<table name="ncenterlite_notify" />
</tables>
<conditions>
<condition operation="equal" column="member_srl" var="member_srl" filter="number" notnull="notnull" />
<condition operation="equal" column="target_srl" var="srl" filter="number" notnull="notnull" pipe="and" />
</conditions>
</query>

View file

@ -0,0 +1,11 @@
<query id="getAdminNotifyList" action="select">
<tables>
<table name="ncenterlite_notify" />
</tables>
<navigation>
<index default="regdate" var="list_order" order="desc" />
<list_count var="list_count" default="20" />
<page_count var="page_count" default="10" />
<page var="page" default="1" />
</navigation>
</query>

View file

@ -0,0 +1,11 @@
<query id="getAllUserConfig" action="select">
<tables>
<table name="ncenterlite_user_set" />
</tables>
<columns>
<column name="*" />
</columns>
<conditions>
<condition operation="equal" column="member_srl" var="member_srl" />
</conditions>
</query>

View file

@ -0,0 +1,13 @@
<query id="getCountNewMessage" action="select">
<tables>
<table name="member_message" />
</tables>
<columns>
<column name="count(*)" alias="count" />
</columns>
<conditions>
<condition operation="equal" column="receiver_srl" var="receiver_srl" notnull="notnull" />
<condition operation="equal" column="readed" default="N" notnull="notnull" pipe="and" />
<condition operation="equal" column="message_type" default="R" notnull="notnull" pipe="and" />
</conditions>
</query>

View file

@ -0,0 +1,20 @@
<query id="getDispNotifyList" action="select">
<tables>
<table name="ncenterlite_notify" />
</tables>
<columns>
<column name="*" />
</columns>
<conditions>
<condition operation="equal" column="member_srl" var="member_srl" filter="number" notnull="notnull" />
</conditions>
<navigation>
<index default="regdate" var="list_order" order="desc" />
<list_count var="list_count" default="20" />
<page_count var="page_count" default="10" />
<page var="page" default="1" />
</navigation>
</query>

View file

@ -0,0 +1,12 @@
<query id="getMemberAdmins" action="select">
<tables>
<table name="member" />
</tables>
<columns>
<column name="member_srl" />
</columns>
<conditions>
<condition operation="equal" column="is_admin" var="is_admin" />
</conditions>
</query>

View file

@ -0,0 +1,13 @@
<query id="getMemberSrlById" action="select">
<tables>
<table name="member" />
</tables>
<columns>
<column name="member_srl" />
</columns>
<conditions>
<condition operation="equal" column="user_id" var="user_id" pipe="and" />
</conditions>
</query>

View file

@ -0,0 +1,13 @@
<query id="getMemberSrlByNickName" action="select">
<tables>
<table name="member" />
</tables>
<columns>
<column name="member_srl" />
</columns>
<conditions>
<condition operation="equal" column="nick_name" var="nick_name" notnull="notnull" />
</conditions>
</query>

View file

@ -0,0 +1,12 @@
<query id="getMemberTotals" action="select">
<tables>
<table name="member" />
</tables>
<columns>
<column name="member_srl" />
</columns>
<conditions>
<condition operation="equal" column="member_srl" var="member_srl" />
</conditions>
</query>

View file

@ -0,0 +1,21 @@
<query id="getNotifyList" action="select">
<tables>
<table name="ncenterlite_notify" />
</tables>
<columns>
<column name="*" />
</columns>
<conditions>
<condition operation="equal" column="member_srl" var="member_srl" filter="number" notnull="notnull" />
<condition operation="equal" column="readed" var="readed" pipe="and" />
</conditions>
<navigation>
<index default="regdate" var="list_order" order="desc" />
<list_count var="list_count" default="5" />
<page_count var="page_count" default="2" />
<page var="page" default="1" />
</navigation>
</query>

View file

@ -0,0 +1,14 @@
<query id="getNotifyNewCount" action="select">
<tables>
<table name="ncenterlite_notify" />
</tables>
<columns>
<column name="count(*)" alias="cnt" />
</columns>
<conditions>
<condition operation="equal" column="member_srl" var="member_srl" filter="number" notnull="notnull" />
<condition operation="equal" column="readed" default="N" pipe="and" />
</conditions>
</query>

View file

@ -0,0 +1,13 @@
<query id="getNotifyType" action="select">
<tables>
<table name="ncenterlite_notify_type" />
</tables>
<columns>
<column name="*" />
</columns>
<conditions>
<condition operation="equal" column="notify_type_srl" var="notify_type_srl" notnull="notnull" />
</conditions>
</query>

View file

@ -0,0 +1,13 @@
<query id="getNotifyTypeByID" action="select">
<tables>
<table name="ncenterlite_notify_type" />
</tables>
<columns>
<column name="*" />
</columns>
<conditions>
<condition operation="equal" column="notify_type_id" var="notify_type_id" notnull="notnull" />
</conditions>
</query>

View file

@ -0,0 +1,13 @@
<query id="getSocialxeCount" action="select">
<tables>
<table name="socialxe" />
</tables>
<columns>
<column name="count(module_srl)" alias="cnt" />
</columns>
<conditions>
<condition operation="equal" column="module_srl" var="module_srl" filter="number" notnull="notnull" />
</conditions>
</query>

View file

@ -0,0 +1,13 @@
<query id="getUserConfig" action="select">
<tables>
<table name="ncenterlite_user_set" />
</tables>
<columns>
<column name="*" />
</columns>
<conditions>
<condition operation="equal" column="member_srl" var="member_srl" filter="number" notnull="notnull" />
</conditions>
</query>

View file

@ -0,0 +1,24 @@
<query id="insertNotify" action="insert">
<tables>
<table name="ncenterlite_notify" />
</tables>
<columns>
<column name="notify" var="notify" notnull="notnull" />
<column name="srl" var="srl" filter="number" notnull="notnull" />
<column name="target_srl" var="target_srl" filter="number" notnull="notnull" />
<column name="member_srl" var="member_srl" filter="number" notnull="notnull" />
<column name="target_member_srl" var="target_member_srl" filter="number" notnull="notnull" />
<column name="target_nick_name" var="target_nick_name" />
<column name="target_user_id" var="target_user_id" />
<column name="target_email_address" var="target_email_address" />
<column name="type" var="type" notnull="notnull" />
<column name="target_type" var="target_type" notnull="notnull" />
<column name="target_body" var="target_body" />
<column name="target_summary" var="target_summary" />
<column name="target_browser" var="target_browser" />
<column name="target_url" var="target_url" notnull="notnull" />
<column name="regdate" var="regdate" />
<column name="target_p_srl" var="target_p_srl" filter="number" />
<column name="notify_type" var="notify_type" />
</columns>
</query>

View file

@ -0,0 +1,11 @@
<query id="insertNotifyType" action="insert">
<tables>
<table name="ncenterlite_notify_type" />
</tables>
<columns>
<column name="notify_type_srl" var="notify_type_srl" notnull="notnull" />
<column name="notify_type_id" var="notify_type_id" notnull="notnull" />
<column name="notify_type_args" var="notify_type_args" />
<column name="notify_string" var="notify_string" notnull="notnull" />
</columns>
</query>

View file

@ -0,0 +1,12 @@
<query id="insertUserConfig" action="insert">
<tables>
<table name="ncenterlite_user_set" />
</tables>
<columns>
<column name="member_srl" var="member_srl" notnull="notnull" />
<column name="comment_notify" var="comment_notify" notnull="notnull" />
<column name="mention_notify" var="mention_notify" notnull="notnull" />
<column name="message_notify" var="message_notify" notnull="notnull" />
<column name="regdate" var="regdate" default="curdate()" />
</columns>
</query>

View file

@ -0,0 +1,12 @@
<query id="updateNotifyReaded" action="update">
<tables>
<table name="ncenterlite_notify" />
</tables>
<columns>
<column name="readed" default="Y" />
</columns>
<conditions>
<condition operation="equal" column="notify" var="notify" notnull="notnull" />
<condition operation="equal" column="member_srl" var="member_srl" filter="number" notnull="notnull" pipe="and" />
</conditions>
</query>

View file

@ -0,0 +1,11 @@
<query id="updateNotifyReadedAll" action="update">
<tables>
<table name="ncenterlite_notify" />
</tables>
<columns>
<column name="readed" default="Y" />
</columns>
<conditions>
<condition operation="equal" column="member_srl" var="member_srl" filter="number" notnull="notnull" />
</conditions>
</query>

View file

@ -0,0 +1,13 @@
<query id="updateNotifyReadedBySrl" action="update">
<tables>
<table name="ncenterlite_notify" />
</tables>
<columns>
<column name="readed" default="Y" />
</columns>
<conditions>
<condition operation="equal" column="member_srl" var="member_srl" filter="number" notnull="notnull" />
<condition operation="equal" column="srl" var="srl" filter="number" notnull="notnull" pipe="and" />
<condition operation="equal" column="type" var="type" pipe="and" />
</conditions>
</query>

View file

@ -0,0 +1,12 @@
<query id="updateNotifyReadedByTargetSrl" action="update">
<tables>
<table name="ncenterlite_notify" />
</tables>
<columns>
<column name="readed" default="Y" />
</columns>
<conditions>
<condition operation="equal" column="member_srl" var="member_srl" filter="number" notnull="notnull" />
<condition operation="equal" column="target_srl" var="target_srl" filter="number" notnull="notnull" pipe="and" />
</conditions>
</query>

View file

@ -0,0 +1,12 @@
<query id="updateNotifyReadedByType" action="update">
<tables>
<table name="ncenterlite_notify" />
</tables>
<columns>
<column name="readed" default="Y" />
</columns>
<conditions>
<condition operation="equal" column="member_srl" var="member_srl" filter="number" notnull="notnull" />
<condition operation="equal" column="type" var="type" notnull="notnull" pipe="and" />
</conditions>
</query>

View file

@ -0,0 +1,14 @@
<query id="updateUserConfig" action="update">
<tables>
<table name="ncenterlite_user_set" />
</tables>
<columns>
<column name="comment_notify" var="comment_notify" notnull="notnull" />
<column name="mention_notify" var="mention_notify" notnull="notnull" />
<column name="message_notify" var="message_notify" notnull="notnull" />
<column name="regdate" var="regdate" default="curdate()" />
</columns>
<conditions>
<condition operation="equal" column="member_srl" var="member_srl" filter="number" notnull="notnull" />
</conditions>
</query>

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<ruleset version="1.5.0">
<customrules>
</customrules>
<fields>
<field name="use" />
<field name="mention_format" />
<field name="document_notify" />
<field name="skin" required="true" />
<field name="colorset" required="true" />
<field name="zindex" rule="number" />
</fields>
</ruleset>

View file

@ -0,0 +1,24 @@
<table name="ncenterlite_notify">
<column name="notify" type="char" size="32" notnull="notnull" primary_key="primary_key" index="idx_notify" breif="메시지 ID" />
<column name="srl" type="number" size="11" notnull="notnull" index="idx_srl" breif="이벤트 대상의 상위 srl" />
<column name="target_srl" type="number" size="11" notnull="notnull" index="idx_target_srl" breif="이벤트 대상 srl(문서/댓글)" />
<column name="target_p_srl" type="number" size="11" notnull="notnull" index="idx_target_p_srl" breif="이벤트 대상 srl(문서/댓글) 대댓글의 경우 앞전 댓글" />
<column name="type" type="char" size="1" notnull="notnull" breif="이벤트 대상 타입" />
<column name="target_type" type="char" size="1" notnull="notnull" breif="이벤트 타입" />
<column name="notify_type" type="number" breif="이벤트 타입 SRL" />
<column name="member_srl" type="number" size="11" notnull="notnull" index="idx_member_srl" breif="receiver" />
<column name="target_member_srl" type="number" size="11" notnull="notnull" index="idx_target_member_srl" breif="sender" />
<column name="target_nick_name" type="varchar" size="50" notnull="notnull" breif="sender" />
<column name="target_user_id" type="varchar" size="50" notnull="notnull" breif="sender" />
<column name="target_email_address" type="varchar" size="50" notnull="notnull" breif="sender" />
<column name="target_browser" type="varchar" size="50" breif="브라우저 제목" />
<column name="target_summary" type="varchar" size="50" breif="메시지 요약문" />
<column name="target_body" type="varchar" size="255" breif="커스텀 알림 제목" />
<column name="target_url" type="varchar" size="255" notnull="notnull" breif="링크 목적지 주소" />
<column name="readed" type="char" size="1" default="N" notnull="notnull" index="idx_readed" />
<column name="regdate" type="date" index="idx_regdate" />
</table>

View file

@ -0,0 +1,6 @@
<table name="ncenterlite_notify_type">
<column name="notify_type_srl" type="number" notnull="notnull" primary_key="primary_key"/>
<column name="notify_type_id" type="varchar" size="50" notnull="notnull"/>
<column name="notify_type_args" type="varchar" size="250"/>
<column name="notify_string" type="varchar" size="250" notnull="notnull"/>
</table>

View file

@ -0,0 +1,7 @@
<table name="ncenterlite_user_set">
<column name="member_srl" type="number" size="11" notnull="notnull" primary_key="primary_key" breif="member_srl 고유맴버 번호" />
<column name="comment_notify" type="char" size="1" notnull="notnull" />
<column name="mention_notify" type="char" size="1" notnull="notnull" />
<column name="message_notify" type="char" size="1" notnull="notnull" />
<column name="regdate" type="date" index="idx_regdate" />
</table>

View file

@ -0,0 +1,46 @@
<include target="../../../member/skins/default/common_header.html" />
<table class="table table-striped table-hover" style="margin-top:20px;">
<thead class="bg_f_f9">
<tr>
<th scope="col" class="nowr">{$lang->ncenterlite_sender}</th>
<th scope="col">{$lang->ncenterlite_addressee}</th>
<th scope="col">{$lang->ncenterlite_noti_contents}</th>
<th scope="col">{$lang->ncenterlite_read}</th>
<th scope="col">{$lang->date}</th>
</tr>
</thead>
<tbody>
<!--@foreach($ncenterlite_list as $no => $val)-->
{@
$oMemberModel = getModel('member');
$member_info = $oMemberModel->getMemberInfoByMemberSrl($val->member_srl);
}
<tr>
<td>{$val->target_nick_name}</td>
<td cond="$member_info->member_srl">{$member_info->nick_name}</td> <td cond="!$member_info->member_srl">{$lang->ncenterlite_no_target}</td>
<td><a href="{$val->target_url}">{$val->text}</a></td>
<td>
<span class="history-auth" cond="$val->readed=='Y'">{$lang->ncenterlite_read_y}</span>
<span class="history-auth" cond="$val->readed=='N'">{$lang->ncenterlite_read_n}</span>
</td>
<td>
{zdate($val->regdate,"Y-m-d")}
</br>
{zdate($val->regdate,"H:i:s")}
</td>
</tr>
<!--@endforeach-->
</tbody>
</table>
<div class="pagination pagination-centered">
<ul>
<li><a href="{getUrl('page','')}" class="direction">&laquo; {$lang->first_page}</a></li>
<!--@while($page_no = $page_navigation->getNextPage())-->
<li class="active"|cond="$page == $page_no"><a href="{getUrl('page',$page_no)}">{$page_no}</a></li>
<!--@end-->
<li><a href="{getUrl('page',$page_navigation->last_page)}" class="direction">{$lang->last_page} &raquo;</a></li>
</ul>
</div>
<include target="../../../member/skins/default/common_footer.html" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

View file

@ -0,0 +1,15 @@
#nc_container { border-bottom-color:#555; background-color:#333; color:#B0B0B0; opacity:0.95; }
#nc_container a { color:#B0B0B0; }
#nc_container a:hover { color:#B0B0B0; }
#nc_container strong { color:#F3F3F3; }
#nc_container .list { background-color:#333; filter:alpha(opacity=95); opacity:0.95; -moz-opacity:0.95; }
#nc_container .list li { border-color:#555; }
#nc_container .list li a:hover { background-color:#555; }
#nc_container .list span.ago { color:#D4AF37; }
#nc_container .list .more { background: #555; }
#nc_container a.readall { display:none; color:#555; color:#D83722;}
#nc_container a.notify { color:white; }
#nc_container a.notify .num { background-color:#D83722; color:white; }
#nc_container ul.nc_memu li { padding-right:5px; }

View file

@ -0,0 +1,17 @@
#nc_container { border-bottom-color:#555; background-color:#333; color:#B0B0B0; opacity:0.95; }
#nc_container a { color:#B0B0B0; }
#nc_container a:hover { color:#B0B0B0; }
#nc_container strong { color:#F3F3F3; }
#nc_container .list { background-color:#333; filter:alpha(opacity=95); opacity:0.95; -moz-opacity:0.95; }
#nc_container .list li { border-color:#555; }
#nc_container .list li a:hover { background-color:#555; }
#nc_container .list span.ago { color:#D4AF37; }
#nc_container .list .more { background: #555; }
#nc_container a.readall { display:none; color:#555; color:#D83722;}
#nc_container a.notify { color:white; }
#nc_container a.notify .num { background-color:#D83722; color:white; }
#nc_container ul.nc_memu li { padding-right:5px; }
#nc_container img.nc_profile_img { display:none;}

View file

@ -0,0 +1,185 @@
#nc_container {
z-index:99;
position:fixed;
top:0;
left:0;
margin:0;
padding:0;
width:100%;
height:30px;
border-bottom:1px solid;
font-size:12px;
line-height:15px;
}
.ncenterlite_block {
height:28px;
}
#nc_container a {
padding:0;
font-size:12px;
text-decoration:none;
}
#nc_container ul.nc_memu {
display:block;
margin:0;
padding:4px;
list-style:none;
line-height:20px;
}
#nc_container ul:after {
content:"";
display:block;
clear:both;
}
#nc_container ul.nc_memu li {
display:inline-block;
padding:0 5px;
height:20px;
width:auto;
background:transparent!important;
}
#nc_container ul.nc_memu li.fLeft {
float:left;
}
#nc_container ul.nc_memu li.fRight {
float:right;
}
#nc_container ul.nc_memu li a.notify {
display:block;
float:left;
}
#nc_container a.close {
display:block;
}
#nc_container .nc_profile img {
width:20px;
height:20px;
vertical-align:top;
}
#nc_container a.notify .num {
padding:1px 2px;
border:0;
border-radius:3px;
-webkit-border-radius:3px;
-moz-border-radius:3px;
font-size:12px;
font-weight:700;
font-family:Gulim,"lucida grande",tahoma,verdana,arial,sans-serif;
}
#nc_container .list {
display:none;
position:absolute;
top:30px;
left:0;
max-width:330px;
width:330px;
box-sizing:border-box;
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
-o-box-sizing:border-box;
}
#nc_container a.readall {
display:none;
float:left;
margin:0 4px;
font-size:11px;
font-weight:700;
}
#nc_container .listscroll {
overflow-y:auto;
overflow-x:hidden;
}
#nc_container .list ul {
overflow:hidden;
margin:-1px 0;
padding:0;
list-style:none;
}
#nc_container .list li {
margin:-1px 0;
border:1px solid #555;
border-width:1px 0;
}
#nc_container .list li img {
float:left;
margin-right:5px;
width:45px;
height:45px;
border:0;
}
#nc_container .list li a {
display:block;
overflow:hidden;
padding:10px;
font-size:12px;
}
#nc_container .list span.ago {
display:block;
font-size:10px;
}
#nc_container .list .more {
display:block;
padding:10px;
text-align:center;
}
#nc_container ~ .navbar.navbar-fixed-top {
top:28px;
}
#nc_container a:hover,#nc_container .list li a:hover,#nc_container .list .more:hover {
text-decoration:none;
}
@media only screen and max-device-width 480px {
#nc_container {
position:relative;
height:auto;
}
#nc_container .list {
top:2px;
position:relative;
}
#nc_container .list ul {
display:block;
position:relative;
}
#nc_container ul.nc_memu:after {
content:"";
display:block;
visibility:hidden;
height:0;
clear:both;
}
#nc_container .listscroll {
overflow:visible;
}
.ncenterlite_block {
display:none;
}
}

View file

@ -0,0 +1,16 @@
#nc_container { border-bottom-color:#C0C0C0; background-color:#efefef; color:#666; opacity:0.95; }
#nc_container a { color:#666; }
#nc_container a:hover { color:#666; }
#nc_container strong { color:#666; }
#nc_container a.notify strong { color:#FC2772; }
#nc_container .list { background-color:#efefef; filter:alpha(opacity=95); opacity:0.95; -moz-opacity:0.95; }
#nc_container .list li { border-color:#ddd; }
#nc_container .list li a:hover { background-color: #ddd; }
#nc_container .list span.ago { color:#D4AF37; }
#nc_container .list a.notify sup.num { background-color:#D83722; color:white; }
#nc_container .list .more { background: #ddd; }
#nc_container a.readall { display:none; color:#555; font-size:10px; color:#D83722;}
#nc_container a.notify { color:#666; }
#nc_container a.notify .num { background-color:#D83722; color:white; }
#nc_container ul.nc_memu li { padding-right:5px; }

View file

@ -0,0 +1,18 @@
#nc_container { border-bottom-color:#C0C0C0; background-color:#efefef; color:#666; opacity:0.95; }
#nc_container a { color:#666; }
#nc_container a:hover { color:#666; }
#nc_container strong { color:#666; }
#nc_container a.notify strong { color:#FC2772; }
#nc_container .list { background-color:#efefef; filter:alpha(opacity=95); opacity:0.95; -moz-opacity:0.95; }
#nc_container .list li { border-color:#ddd; }
#nc_container .list li a:hover { background-color: #ddd; }
#nc_container .list span.ago { color:#D4AF37; }
#nc_container .list a.notify sup.num { background-color:#D83722; color:white; }
#nc_container .list .more { background: #ddd; }
#nc_container a.readall { display:none; color:#555; font-size:10px; color:#D83722;}
#nc_container a.notify { color:#666; }
#nc_container a.notify .num { background-color:#D83722; color:white; }
#nc_container ul.nc_memu li { padding-right:5px; }
#nc_container img.nc_profile_img { display:none;}

View file

@ -0,0 +1,125 @@
<div id="nc_container" {$ncenterlite_zindex}>
<ul class="nc_memu">
<li class="nc_profile fLeft">
<block cond="$useProfileImage">
<img cond="$profileImage" src="{$profileImage->src}" alt="my profile" class="nc_profile_img" />
<img cond="!$profileImage" src="{Context::getRequestUri()}modules/ncenterlite/skins/default/img/p.png" alt="my profile" class="nc_profile_img" />
</block>
<strong>{$logged_info->nick_name}</strong> {$lang->ncenterlite_sir}!
</li>
<li class="fLeft">
<a class="notify" href="#">
<!--@if($_ncenterlite_num > 1)-->
{sprintf($lang->ncenterlite_messages, $ncenterlite_page_navigation->total_count)}
<!--@else-->
{sprintf($lang->ncenterlite_message, $ncenterlite_page_navigation->total_count)}
<!--@endif-->
</a>
<a cond="$ncenterlite_page_navigation->total_count >= 1" href="#" class="readall">{$lang->ncenterlite_delete_all}</a>
</li>
<li class="fRight"><a class="close" href="#">× Close</a></li>
</ul>
<div class="list">
<ul>
<li loop="$ncenterlite_list => $o">
<a href="{$o->url}">
<block cond="$useProfileImage">
<img src="{$o->profileImage}"|cond="$o->profileImage" src="{Context::getRequestUri()}modules/ncenterlite/skins/default/img/p.png"|cond="!$o->profileImage" alt="" class="nc_profile_img" />
</block>
<span class="msg">{$o->text}</span><span class="ago">{$o->ago}</span>
</a>
</li>
</ul>
<a cond="$ncenterlite_page_navigation->total_count > 5" class="more" href="#" data-page="2">{$lang->ncenterlite_more}</a>
</div>
</div>
<div class="ncenterlite_block"></div>
<script type="text/javascript">
//<![CDATA[
(function($){
$(function(){
function setCookie(n, v, d){
var e = "";
if(d){ var dt=new Date(); dt.setTime(dt.getTime() + (d*24*60*60000)); e="; expires=" + dt.toGMTString(); }
document.cookie = n + "=" + v + e + "; path=/";
}
var n = $('#nc_container');
$('.close',n).click(function(){
setCookie('_ncenterlite_hide_id', '{$ncenterlite_latest_notify_id}', 1); n.hide().next('div').hide(); return false;
});
$('.readall',n).click(function(){
exec_xml('ncenterlite', 'procNcenterliteNotifyReadAll'); $('.close',n).triggerHandler('click'); return false;
});
$('a.notify',n).click(function(){
$('.list',n).toggle(); $('.readall',n).toggle(); return false;
});
$(document).click(function(e){
var t = $(e.target);if(!t.is('#nc_container') && t.parents('#nc_container').length == 0){ if($('.list', n).is(':visible')) { $('.list',n).hide(); $('.readall',n).hide(); return false; } }
});
var $listWrap = $('.list ul',n);
var $btnMore = $('.more',n);
$btnMore.click(function(){
var page = $(this).data('page');
var $item_html = $('<li><a><span class="msg"></span><span class="ago"></span></a></li>');
var $profileImg = $('<img class="nc_profile_img" alt="" />');
$.exec_json('ncenterlite.getMyNotifyListTpl', { 'page':page }, function(ret) {
if(!ret.list.data) return;
for(var i in ret.list.data)
{
if(ret.list.data.hasOwnProperty(i))
{
var item = ret.list.data[i];
var $html = $item_html.clone();
if(ret.useProfileImage == 'Y')
{
var $img = $profileImg.clone();
if(!item.profileImage) item.profileImage = request_uri + 'modules/ncenterlite/skins/default/img/p.png';
$img.attr('src', item.profileImage);
$html.find('a').prepend($img);
}
$('span.msg', $html).html(item.text);
$('span.ago', $html).html(item.ago);
$('a', $html).attr('href', item.url);
if(i == 0) $html.attr('id', 'ncenterlite_page_' + ret.list.page.cur_page);
$listWrap.append($html);
}
}
$listWrap.animate({scrollTop: (ret.list.page.cur_page-1) * 265}, 800);
if(ret['list'].page.total_page <= ret.list.page.cur_page)
{
$btnMore.remove();
}
}, ['list']);
$(this).data('page', ++page);
return false;
});
});
<block cond="!Mobile::isFromMobilePhone()">
function sc(){
var wh = $(window).height();
var l = $('#nc_container .list');
if(l.height()+100 >= wh) {
l.height(wh-98).addClass('listscroll');
} else {
l.height('auto').removeClass('listscroll');
}
setTimeout(sc, 100);
}
sc();
</block>
})(jQuery);
//]]>
</script>

View file

@ -0,0 +1,12 @@
#nc_container { height:auto; position:relative; }
#nc_container .list { top:2px; position:relative; }
#nc_container .list ul { display:block; position:relative; }
#nc_container ul.nc_memu:after {
content: "";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
#nc_container .listscroll { overflow: visible; }
.ncenterlite_block { display:none; }

View file

@ -0,0 +1,16 @@
#nc_container { border:1px solid #efefef; background-color:#fff; color:#000; opacity:0.95; }
#nc_container a { color:#666; }
#nc_container a:hover { color:#666; }
#nc_container strong { color:#000; }
#nc_container a.notify strong { color:#F60; }
#nc_container .list { border:1px solid #efefef; background-color:#fff; filter:alpha(opacity=95); opacity:0.95; -moz-opacity:0.95; }
#nc_container .list li { border-color:#eee; }
#nc_container .list li a:hover { background-color: #eee; }
#nc_container .list span.ago { color:#D4AF37; }
#nc_container .list a.notify .num { background-color:#D83722; color:white; }
#nc_container .list .more { background: #eee; }
#nc_container a.readall { display:none; color:#555; font-size:10px; color:#D83722;}
#nc_container a.notify { color:#666; }
#nc_container a.notify .num { background-color:#D83722; color:white; }
#nc_container ul.nc_memu li { padding-right:5px; }

View file

@ -0,0 +1,18 @@
#nc_container { border:1px solid #efefef; background-color:#fff; color:#000; opacity:0.95; }
#nc_container a { color:#666; }
#nc_container a:hover { color:#666; }
#nc_container strong { color:#000; }
#nc_container a.notify strong { color:#F60; }
#nc_container .list { border:1px solid #efefef; background-color:#fff; filter:alpha(opacity=97); opacity:0.97; -moz-opacity:0.97; }
#nc_container .list li { border-color:#eee; }
#nc_container .list li a:hover { background-color: #eee; }
#nc_container .list span.ago { color:#D4AF37; }
#nc_container .list a.notify .num { background-color:#D83722; color:white; }
#nc_container .list .more { background: #eee; }
#nc_container a.readall { display:none; color:#555; font-size:10px; color:#D83722;}
#nc_container a.notify { color:#666; }
#nc_container a.notify .num { background-color:#D83722; color:white; }
#nc_container ul.nc_memu li { padding-right:5px; }
#nc_container img.nc_profile_img { display:none;}

View file

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<skin version="0.2">
<title xml:lang="ko">XE 알림센터 Lite 기본스킨</title>
<title xml:lang="en">XE Notification Center Lite Default Skin</title>
<version>1.1.1</version>
<date>2013-03-21</date>
<author email_address="info@xemagazine.com" link="http://xmz.kr/">
<name xml:lang="ko">XE Public</name>
<name xml:lang="en">XE Public</name>
</author>
<colorset>
<color name="black">
<title xml:lang="ko">검은색</title>
<title xml:lang="en">Black</title>
</color>
<color name="gray">
<title xml:lang="ko">회색</title>
<title xml:lang="en">Gray</title>
</color>
<color name="white">
<title xml:lang="ko">흰색</title>
<title xml:lang="en">White</title>
</color>
<color name="blacknoprofile">
<title xml:lang="ko">검은색(no profile)</title>
<title xml:lang="en">Black (no profile)</title>
</color>
<color name="graynoprofile">
<title xml:lang="ko">회색(no profile)</title>
<title xml:lang="en">Gray (no profile)</title>
</color>
<color name="whitenoprofile">
<title xml:lang="ko">흰색(no profile)</title>
<title xml:lang="en">White (no profile)</title>
</color>
</colorset>
</skin>

View file

@ -0,0 +1,68 @@
<load target="../../../member/skins/default/css/member.css" />
<include target="../../../member/skins/default/common_header.html" />
<div class="xm">
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/ncenterlite/skins/default/userconfig/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form ruleset="insertConfig" action="./" method="post" class="form-horizontal" id="fo_ncenterlite">
<input type="hidden" name="module" value="ncenterlite" />
<input type="hidden" name="act" value="procNcenterliteUserConfig" />
<input type="hidden" name="xe_validator_id" value="modules/ncenterlite/skins/default/userconfig/1" />
<input type="hidden" name="member_srl" value="{$member_srl}">
<section class="section">
<h1><block cond="$member_info">{@$user_str = $member_info->nick_name}</block>
<block cond="!$member_info">{@$user_str = $logged_info->nick_name}</block>
{@$title_str = Context::getLang('ncenterlite_userconfig_title')}
{sprintf($title_str, $user_str)}
</h1>
<p>{$lang->ncenterlite_userconfig_about} <strong style="color:#ff0000" cond="$member_srl && $member_srl != $logged_info->member_srl">({$lang->ncenterlite_userconfig_about_warning})</strong></p>
<div class="control-group">
<label class="control-label">{$lang->ncenterlite_comment_noti}</label>
<div class="controls">
<label class="inline">
<input type="radio" name="comment_notify" value="Y" checked="checked"|cond="$user_config->comment_notify == 'Y'" /> {$lang->ncenterlite_activate}
</label>
<label class="inline">
<input type="radio" name="comment_notify" value="N" checked="checked"|cond="$user_config->comment_notify == 'N'" /> {$lang->ncenterlite_inactivate}
</label>
<p class="help-block">{$lang->ncenterlite_comment_noti_about}</p>
</div>
</div>
<div class="control-group">
<label class="control-label">{$lang->ncenterlite_mention_noti}</label>
<div class="controls">
<label class="inline">
<input type="radio" name="mention_notify" value="Y" checked="checked"|cond="$user_config->mention_notify == 'Y'" /> {$lang->ncenterlite_activate}
</label>
<label class="inline">
<input type="radio" name="mention_notify" value="N" checked="checked"|cond="$user_config->mention_notify == 'N'" /> {$lang->ncenterlite_inactivate}
</label>
<p class="help-block">{$lang->ncenterlite_mention_noti_about}</p>
</div>
</div>
<div class="control-group">
<label class="control-label">{$lang->ncenterlite_message_noti}</label>
<div class="controls">
<label class="inline">
<input type="radio" name="message_notify" value="Y" checked="checked"|cond="$user_config->message_notify == 'Y'" /> {$lang->ncenterlite_activate}
</label>
<label class="inline">
<input type="radio" name="message_notify" value="N" checked="checked"|cond="$user_config->message_notify == 'N'" /> {$lang->ncenterlite_inactivate}
</label>
<p class="help-block">{$lang->ncenterlite_message_noti_about}</p>
</div>
</div>
</section>
<div class="clearfix btnArea">
<div class="pull-right">
<button class="btn btn-primary" type="submit">{$lang->cmd_registration}</button>
</div>
</div>
</form>
</div>
<include target="../../../member/skins/default/common_footer.html" />

View file

@ -0,0 +1,46 @@
<include target="../../../member/skins/default/common_header.html" />
<table class="table table-striped table-hover" style="margin-top:20px;">
<thead class="bg_f_f9">
<tr>
<th scope="col" class="nowr">{$lang->ncenterlite_sender}</th>
<th scope="col">{$lang->ncenterlite_addressee}</th>
<th scope="col">{$lang->ncenterlite_noti_contents}</th>
<th scope="col">{$lang->ncenterlite_read}</th>
<th scope="col">{$lang->date}</th>
</tr>
</thead>
<tbody>
<!--@foreach($ncenterlite_list as $no => $val)-->
{@
$oMemberModel = getModel('member');
$member_info = $oMemberModel->getMemberInfoByMemberSrl($val->member_srl);
}
<tr>
<td>{$val->target_nick_name}</td>
<td cond="$member_info->member_srl">{$member_info->nick_name}</td> <td cond="!$member_info->member_srl">{$lang->ncenterlite_no_target}</td>
<td><a href="{$val->target_url}">{$val->text}</a></td>
<td>
<span class="history-auth" cond="$val->readed=='Y'">{$lang->ncenterlite_read_y}</span>
<span class="history-auth" cond="$val->readed=='N'">{$lang->ncenterlite_read_n}</span>
</td>
<td>
{zdate($val->regdate,"Y-m-d")}
</br>
{zdate($val->regdate,"H:i:s")}
</td>
</tr>
<!--@endforeach-->
</tbody>
</table>
<div class="pagination pagination-centered">
<ul>
<li><a href="{getUrl('page','')}" class="direction">&laquo; {$lang->first_page}</a></li>
<!--@while($page_no = $page_navigation->getNextPage())-->
<li class="active"|cond="$page == $page_no"><a href="{getUrl('page',$page_no)}">{$page_no}</a></li>
<!--@end-->
<li><a href="{getUrl('page',$page_navigation->last_page)}" class="direction">{$lang->last_page} &raquo;</a></li>
</ul>
</div>
<include target="../../../member/skins/default/common_footer.html" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

View file

@ -0,0 +1,15 @@
#nc_container { border-bottom-color:#555; background-color:#333; color:#B0B0B0; opacity:0.95;}
#nc_container a { color:#B0B0B0; }
#nc_container a:hover { color:#B0B0B0; }
#nc_container strong { color:#F3F3F3; }
#nc_container .list { background-color:#333; filter:alpha(opacity=95); opacity:0.95; -moz-opacity:0.95; }
#nc_container .list li { border-color:#555; }
#nc_container .list li a:hover { background-color:#555; }
#nc_container .list span.ago { color:#D4AF37; }
#nc_container .list .more { background: #555; }
#nc_container a.readall { display:none; color:#555; color:#D83722;}
#nc_container a.notify { color:white; }
#nc_container a.notify .num { background-color:#D83722; color:white; }
#nc_container ul.nc_memu li { padding-right:5px; }

View file

@ -0,0 +1,17 @@
#nc_container { border-bottom-color:#555; background-color:#333; color:#B0B0B0; opacity:0.95;}
#nc_container a { color:#B0B0B0; }
#nc_container a:hover { color:#B0B0B0; }
#nc_container strong { color:#F3F3F3; }
#nc_container .list { background-color:#333; filter:alpha(opacity=95); opacity:0.95; -moz-opacity:0.95; }
#nc_container .list li { border-color:#555; }
#nc_container .list li a:hover { background-color:#555; }
#nc_container .list span.ago { color:#D4AF37; }
#nc_container .list .more { background: #555; }
#nc_container a.readall { display:none; color:#555; color:#D83722;}
#nc_container a.notify { color:white; }
#nc_container a.notify .num { background-color:#D83722; color:white; }
#nc_container ul.nc_memu li { padding-right:5px; }
#nc_container img.nc_profile_img { display:none;}

View file

@ -0,0 +1,177 @@
#nc_container {
z-index:99;
position:fixed;
bottom:0;
right:0;
margin:0;
padding:0;
width:330px;
height:50px;
border-bottom:1px solid;
font-size:12px;
line-height:15px;
}
#nc_container a {
padding:0;
font-size:12px;
text-decoration:none;
}
#nc_container ul.nc_memu {
display:block;
margin:0;
padding:4px;
list-style:none;
line-height:20px;
}
#nc_container ul:after {
content:"";
display:block;
clear:both;
}
#nc_container ul.nc_memu li {
display:inline-block;
padding:0 5px;
height:20px;
width:auto;
background:transparent!important;
}
#nc_container ul.nc_memu li.fLeft {
float:left;
}
#nc_container ul.nc_memu li.fRight {
float:right;
}
#nc_container ul.nc_memu li a.notify {
display:block;
float:left;
}
#nc_container a.close {
display:block;
}
#nc_container .nc_profile img {
width:20px;
height:20px;
vertical-align:top;
}
#nc_container a.notify .num {
padding:1px 2px;
border:0;
border-radius:3px;
-webkit-border-radius:3px;
-moz-border-radius:3px;
font-size:12px;
font-weight:700;
font-family:Gulim,"lucida grande",tahoma,verdana,arial,sans-serif;
}
#nc_container .list {
display:none;
position:absolute;
left:0;
bottom:50px;
max-width:330px;
width:330px;
box-sizing:border-box;
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
-o-box-sizing:border-box;
}
#nc_container a.readall {
display:none;
float:left;
margin:0 4px;
font-size:11px;
font-weight:700;
}
#nc_container .listscroll {
overflow-y:auto;
overflow-x:hidden;
}
#nc_container .list ul {
overflow:hidden;
margin:-1px 0;
padding:0;
list-style:none;
}
#nc_container .list li {
margin:-1px 0;
border:1px solid #555;
border-width:1px 0;
}
#nc_container .list li img {
float:left;
margin-right:5px;
width:45px;
height:45px;
border:0;
}
#nc_container .list li a {
display:block;
overflow:hidden;
padding:10px;
font-size:12px;
}
#nc_container .list span.ago {
display:block;
font-size:10px;
}
#nc_container .list .more {
display:block;
padding:10px;
text-align:center;
}
#nc_container a:hover,#nc_container .list li a:hover,#nc_container .list .more:hover {
text-decoration:none;
}
@media only screen and max-device-width 480px {
#nc_container {
position:relative;
height:auto;
}
#nc_container .list {
top:2px;
position:relative;
}
#nc_container .list ul {
display:block;
position:relative;
}
#nc_container ul.nc_memu:after {
content:"";
display:block;
visibility:hidden;
height:0;
clear:both;
}
#nc_container .listscroll {
overflow:visible;
}
.ncenterlite_block {
display:none;
}
}

View file

@ -0,0 +1,16 @@
#nc_container { border-bottom-color:#C0C0C0; background-color:#efefef; color:#666; opacity:0.95;}
#nc_container a { color:#666; }
#nc_container a:hover { color:#666; }
#nc_container strong { color:#666; }
#nc_container a.notify strong { color:#FC2772; }
#nc_container .list { background-color:#efefef; filter:alpha(opacity=95); opacity:0.95; -moz-opacity:0.95; }
#nc_container .list li { border-color:#ddd; }
#nc_container .list li a:hover { background-color: #ddd; }
#nc_container .list span.ago { color:#D4AF37; }
#nc_container .list a.notify sup.num { background-color:#D83722; color:white; }
#nc_container .list .more { background: #ddd; }
#nc_container a.readall { display:none; color:#555; font-size:10px; color:#D83722;}
#nc_container a.notify { color:#666; }
#nc_container a.notify .num { background-color:#D83722; color:white; }
#nc_container ul.nc_memu li { padding-right:5px; }

View file

@ -0,0 +1,18 @@
#nc_container { border-bottom-color:#C0C0C0; background-color:#efefef; color:#666; opacity:0.95;}
#nc_container a { color:#666; }
#nc_container a:hover { color:#666; }
#nc_container strong { color:#666; }
#nc_container a.notify strong { color:#FC2772; }
#nc_container .list { background-color:#efefef; filter:alpha(opacity=95); opacity:0.95; -moz-opacity:0.95; }
#nc_container .list li { border-color:#ddd; }
#nc_container .list li a:hover { background-color: #ddd; }
#nc_container .list span.ago { color:#D4AF37; }
#nc_container .list a.notify sup.num { background-color:#D83722; color:white; }
#nc_container .list .more { background: #ddd; }
#nc_container a.readall { display:none; color:#555; font-size:10px; color:#D83722;}
#nc_container a.notify { color:#666; }
#nc_container a.notify .num { background-color:#D83722; color:white; }
#nc_container ul.nc_memu li { padding-right:5px; }
#nc_container img.nc_profile_img { display:none;}

View file

@ -0,0 +1,124 @@
<div id="nc_container" {$ncenterlite_zindex}>
<ul class="nc_memu">
<li class="nc_profile fLeft">
<block cond="$useProfileImage">
<img cond="$profileImage" src="{$profileImage->src}" alt="my profile" class="nc_profile_img" />
<img cond="!$profileImage" src="{Context::getRequestUri()}modules/ncenterlite/skins/default/img/p.png" alt="my profile" class="nc_profile_img" />
</block>
<strong>{$logged_info->nick_name}</strong> {$lang->ncenterlite_sir}!
</li>
<li class="fLeft">
<a class="notify" href="#">
<!--@if($_ncenterlite_num > 1)-->
{sprintf($lang->ncenterlite_messages, $ncenterlite_page_navigation->total_count)}
<!--@else-->
{sprintf($lang->ncenterlite_message, $ncenterlite_page_navigation->total_count)}
<!--@endif-->
</a>
<a cond="$ncenterlite_page_navigation->total_count >= 1" href="#" class="readall">{$lang->ncenterlite_delete_all}</a>
</li>
<li class="fRight"><a class="close" href="#">× Close</a></li>
</ul>
<div class="list">
<ul>
<li loop="$ncenterlite_list => $o">
<a href="{$o->url}">
<block cond="$useProfileImage">
<img src="{$o->profileImage}"|cond="$o->profileImage" src="{Context::getRequestUri()}modules/ncenterlite/skins/default/img/p.png"|cond="!$o->profileImage" alt="" class="nc_profile_img" />
</block>
<span class="msg">{$o->text}</span><span class="ago">{$o->ago}</span>
</a>
</li>
</ul>
<a cond="$ncenterlite_page_navigation->total_count > 5" class="more" href="#" data-page="2">{$lang->ncenterlite_more}</a>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
(function($){
$(function(){
function setCookie(n, v, d){
var e = "";
if(d){ var dt=new Date(); dt.setTime(dt.getTime() + (d*24*60*60000)); e="; expires=" + dt.toGMTString(); }
document.cookie = n + "=" + v + e + "; path=/";
}
var n = $('#nc_container');
$('.close',n).click(function(){
setCookie('_ncenterlite_hide_id', '{$ncenterlite_latest_notify_id}', 1); n.hide().next('div').hide(); return false;
});
$('.readall',n).click(function(){
exec_xml('ncenterlite', 'procNcenterliteNotifyReadAll'); $('.close',n).triggerHandler('click'); return false;
});
$('a.notify',n).click(function(){
$('.list',n).toggle(); $('.readall',n).toggle(); return false;
});
$(document).click(function(e){
var t = $(e.target);if(!t.is('#nc_container') && t.parents('#nc_container').length == 0){ if($('.list', n).is(':visible')) { $('.list',n).hide(); $('.readall',n).hide(); return false; } }
});
var $listWrap = $('.list ul',n);
var $btnMore = $('.more',n);
$btnMore.click(function(){
var page = $(this).data('page');
var $item_html = $('<li><a><span class="msg"></span><span class="ago"></span></a></li>');
var $profileImg = $('<img class="nc_profile_img" alt="" />');
$.exec_json('ncenterlite.getMyNotifyListTpl', { 'page':page }, function(ret) {
if(!ret.list.data) return;
for(var i in ret.list.data)
{
if(ret.list.data.hasOwnProperty(i))
{
var item = ret.list.data[i];
var $html = $item_html.clone();
if(ret.useProfileImage == 'Y')
{
var $img = $profileImg.clone();
if(!item.profileImage) item.profileImage = request_uri + 'modules/ncenterlite/skins/default/img/p.png';
$img.attr('src', item.profileImage);
$html.find('a').prepend($img);
}
$('span.msg', $html).html(item.text);
$('span.ago', $html).html(item.ago);
$('a', $html).attr('href', item.url);
if(i == 0) $html.attr('id', 'ncenterlite_page_' + ret.list.page.cur_page);
$listWrap.append($html);
}
}
$listWrap.animate({scrollTop: (ret.list.page.cur_page-1) * 265}, 800);
if(ret['list'].page.total_page <= ret.list.page.cur_page)
{
$btnMore.remove();
}
}, ['list']);
$(this).data('page', ++page);
return false;
});
});
<block cond="!Mobile::isFromMobilePhone()">
function sc(){
var wh = $(window).height();
var l = $('#nc_container .list');
if(l.height()+100 >= wh) {
l.height(wh-98).addClass('listscroll');
} else {
l.height('auto').removeClass('listscroll');
}
setTimeout(sc, 100);
}
sc();
</block>
})(jQuery);
//]]>
</script>

View file

@ -0,0 +1,12 @@
#nc_container { width:100%; height:auto; position:relative; }
#nc_container .list { top:2px; position:relative; }
#nc_container .list ul { display:block; position:relative; }
#nc_container ul.nc_memu:after {
content: "";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
#nc_container .listscroll { overflow: visible; }
.ncenterlite_block { display:none; }

View file

@ -0,0 +1,16 @@
#nc_container { border:1px solid #EFEFEF; background-color:#fff; color:#000; opacity:0.95;}
#nc_container a { color:#666; }
#nc_container a:hover { color:#666; }
#nc_container strong { color:#000; }
#nc_container a.notify strong { color:#F60; }
#nc_container .list { border:1px solid #EFEFEF; background-color:#fff; filter:alpha(opacity=95); opacity:0.95; -moz-opacity:0.95; }
#nc_container .list li { border-color:#eee; }
#nc_container .list li a:hover { background-color: #eee; }
#nc_container .list span.ago { color:#D4AF37; }
#nc_container .list a.notify .num { background-color:#D83722; color:white; }
#nc_container .list .more { background: #eee; }
#nc_container a.readall { display:none; color:#555; font-size:10px; color:#D83722;}
#nc_container a.notify { color:#666; }
#nc_container a.notify .num { background-color:#D83722; color:white; }
#nc_container ul.nc_memu li { padding-right:5px; }

View file

@ -0,0 +1,18 @@
#nc_container { border:1px solid #EFEFEF; background-color:#fff; color:#000; opacity:0.95;}
#nc_container a { color:#666; }
#nc_container a:hover { color:#666; }
#nc_container strong { color:#000; }
#nc_container a.notify strong { color:#F60; }
#nc_container .list { border:1px solid #EFEFEF; background-color:#fff; filter:alpha(opacity=95); opacity:0.95; -moz-opacity:0.95; }
#nc_container .list li { border-color:#eee; }
#nc_container .list li a:hover { background-color: #eee; }
#nc_container .list span.ago { color:#D4AF37; }
#nc_container .list a.notify .num { background-color:#D83722; color:white; }
#nc_container .list .more { background: #eee; }
#nc_container a.readall { display:none; color:#555; font-size:10px; color:#D83722;}
#nc_container a.notify { color:#666; }
#nc_container a.notify .num { background-color:#D83722; color:white; }
#nc_container ul.nc_memu li { padding-right:5px; }
#nc_container img.nc_profile_img { display:none;}

View file

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<skin version="0.2">
<title xml:lang="ko">XE 알림센터 Lite 기본스킨 - 우측 하단</title>
<title xml:lang="en">XE Notification Center Lite Default Skin - Right bottom</title>
<version>1.2.0</version>
<date>2013-05-10</date>
<author email_address="info@xemagazine.com" link="http://xmz.kr/">
<name xml:lang="ko">XE Public</name>
<name xml:lang="en">XE Public</name>
</author>
<colorset>
<color name="black">
<title xml:lang="ko">검은색</title>
<title xml:lang="en">Black</title>
</color>
<color name="gray">
<title xml:lang="ko">회색</title>
<title xml:lang="en">Gray</title>
</color>
<color name="white">
<title xml:lang="ko">흰색</title>
<title xml:lang="en">White</title>
</color>
<color name="blacknoprofile">
<title xml:lang="ko">검은색(no profile)</title>
<title xml:lang="en">Black (no profile)</title>
</color>
<color name="graynoprofile">
<title xml:lang="ko">회색(no profile)</title>
<title xml:lang="en">Gray (no profile)</title>
</color>
<color name="whitenoprofile">
<title xml:lang="ko">흰색(no profile)</title>
<title xml:lang="en">White (no profile)</title>
</color>
</colorset>
</skin>

View file

@ -0,0 +1,68 @@
<load target="../../../member/skins/default/css/member.css" />
<include target="../../../member/skins/default/common_header.html" />
<div class="xm">
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/ncenterlite/skins/default_bottom/userconfig/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form ruleset="insertConfig" action="./" method="post" class="form-horizontal" id="fo_ncenterlite">
<input type="hidden" name="module" value="ncenterlite" />
<input type="hidden" name="act" value="procNcenterliteUserConfig" />
<input type="hidden" name="xe_validator_id" value="modules/ncenterlite/skins/default_bottom/userconfig/1" />
<input type="hidden" name="member_srl" value="{$member_srl}">
<section class="section">
<h1><block cond="$member_info">{@$user_str = $member_info->nick_name}</block>
<block cond="!$member_info">{@$user_str = $logged_info->nick_name}</block>
{@$title_str = Context::getLang('ncenterlite_userconfig_title')}
{sprintf($title_str, $user_str)}
</h1>
<p>{$lang->ncenterlite_userconfig_about} <strong style="color:#ff0000" cond="$member_srl && $member_srl != $logged_info->member_srl">({$lang->ncenterlite_userconfig_about_warning})</strong></p>
<div class="control-group">
<label class="control-label">{$lang->ncenterlite_comment_noti}</label>
<div class="controls">
<label class="inline">
<input type="radio" name="comment_notify" value="Y" checked="checked"|cond="$user_config->comment_notify == 'Y'" /> {$lang->ncenterlite_activate}
</label>
<label class="inline">
<input type="radio" name="comment_notify" value="N" checked="checked"|cond="$user_config->comment_notify == 'N'" /> {$lang->ncenterlite_inactivate}
</label>
<p class="help-block">{$lang->ncenterlite_comment_noti_about}</p>
</div>
</div>
<div class="control-group">
<label class="control-label">{$lang->ncenterlite_mention_noti}</label>
<div class="controls">
<label class="inline">
<input type="radio" name="mention_notify" value="Y" checked="checked"|cond="$user_config->mention_notify == 'Y'" /> {$lang->ncenterlite_activate}
</label>
<label class="inline">
<input type="radio" name="mention_notify" value="N" checked="checked"|cond="$user_config->mention_notify == 'N'" /> {$lang->ncenterlite_inactivate}
</label>
<p class="help-block">{$lang->ncenterlite_mention_noti_about}</p>
</div>
</div>
<div class="control-group">
<label class="control-label">{$lang->ncenterlite_message_noti}</label>
<div class="controls">
<label class="inline">
<input type="radio" name="message_notify" value="Y" checked="checked"|cond="$user_config->message_notify == 'Y'" /> {$lang->ncenterlite_activate}
</label>
<label class="inline">
<input type="radio" name="message_notify" value="N" checked="checked"|cond="$user_config->message_notify == 'N'" /> {$lang->ncenterlite_inactivate}
</label>
<p class="help-block">{$lang->ncenterlite_message_noti_about}</p>
</div>
</div>
</section>
<div class="clearfix btnArea">
<div class="pull-right">
<button class="btn btn-primary" type="submit">{$lang->cmd_registration}</button>
</div>
</div>
</form>
</div>
<include target="../../../member/skins/default/common_footer.html" />

View file

@ -0,0 +1,275 @@
<load target="js/ncenter_admin.js" />
<load target="css/ncenter_admin.css" />
<include target="header.html" />
<div cond="$_ncenterlite_env_agreement == 'NULL'">
<form action="{getUrl('')}" method="post" class="message info x_clearfix">
<input type="hidden" name="module" value="ncenterlite" />
<input type="hidden" name="act" value="procNcenterliteAdminEnviromentGatheringAgreement" />
<h2>{$lang->ncenterlite_config_environment}</h2>
{$lang->ncenterlite_config_environment_about}
<div class="x_pull-right" style="margin-bottom:10px">
<button type="submit" name="is_agree" value="Y" class="x_btn x_btn-small x_btn-primary">{$lang->ncenterlite_config_environment_agree}</button>
<button type="submit" name="is_agree" value="N" class="x_btn x_btn-small">{$lang->ncenterlite_config_environment_disagree}</button>
</div>
</form>
</div>
<form ruleset="insertConfig" action="./" method="post" class="x_form-horizontal" id="fo_ncenterlite">
<input type="hidden" name="module" value="ncenterlite" />
<input type="hidden" name="act" value="procNcenterliteAdminInsertConfig" />
<section class="section collapsed">
<h1>{$lang->ncenterlite_basic_settings} ({$lang->ncenterlite_click_to_open})</h1>
<div class="x_control-group">
<label class="x_control-label"><span class="x_label x_label-important">{$lang->ncenterlite_warning}</span> {$lang->ncenterlite_io}</label>
<div class="x_controls">
<label class="x_inline">
<input type="radio" id="use_y" name="use" value="Y" checked="checked"|cond="$config->use == 'Y'" /> {$lang->ncenterlite_on}
</label>
<label class="x_inline">
<input type="radio" id="use_message" name="use" value="message" checked="checked"|cond="$config->use == 'message'" /> {$lang->ncenterlite_message}
</label>
<label class="x_inline">
<input type="radio" id="use_n" name="use" value="N" checked="checked"|cond="$config->use == 'N'" /> {$lang->ncenterlite_off}
</label>
<p class="x_help-block"><span class="x_label x_label-important">{$lang->ncenterlite_warning}</span> {$lang->ncenterlite_io_about}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label"><span class="x_label x_label-important">{$lang->ncenterlite_warning}</span> {$lang->ncenterlite_display}</label>
<div class="x_controls">
<label class="x_inline">
<input type="radio" id="display_use_y" name="display_use" value="Y" checked="checked"|cond="$config->display_use == 'Y'" /> {$lang->ncenterlite_display_y}
</label>
<label class="x_inline">
<input type="radio" id="display_use_n" name="display_use" value="N" checked="checked"|cond="$config->display_use == 'N'" /> {$lang->ncenterlite_display_n}
</label>
<p class="x_help-block">{$lang->ncenterlite_display_about}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">익명 알림에서 익명 이름 설정</label>
<div class="x_controls">
<input type="text" name="anonymous_name" value="{$config->anonymous_name}" />
<p class="x_help-block">익명 게시판 등에서 알림이 등록될 시, Anonymous 등 익명을 표시할 이름을 설정할 수 있습니다. 기본은 Anonymous 입니다.</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">멘션 설정</label>
<div class="x_controls mention_option">
<label class="x_inline">
<input type="checkbox" name="mention_format[]" value="respect" data-mention-split="님" checked="checked"|cond="is_array('respect', $config->mention_format) && in_array('respect', $config->mention_format)" /> '님'을 붙여 쓸 수 있도록 허용
</label>
<ul class="preview">
<li data-mention-default="enable"><strong>@스님</strong></li>
<li data-mention-default="enable"><strong>@선생님이다</strong></li>
<li data-mention-default="enable"><strong>@NAME</strong>&nbsp;&nbsp;</li>
<li data-mention-default="enable"><strong>@NAME</strong>&nbsp;&nbsp;</li>
<li><strong>@NAME</strong></li>
<li><strong>@NAME</strong>님과</li>
<li><strong>@NAME1</strong>님,&nbsp;&nbsp;<strong>@NAME2</strong>님이&nbsp;&nbsp;</li>
</ul>
<p class="x_help-block">녹색으로 표시된 예시처럼 사용할 수 있습니다.</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">{$lang->ncenterlite_mention_target}</label>
<div class="x_controls">
<label class="x_inline">
<input type="radio" id="mention_names_id" name="mention_names" value="id" checked="checked"|cond="$config->mention_names == 'id'" /> {$lang->user_id}
</label>
<label class="x_inline">
<input type="radio" id="mention_names_nick_name" name="mention_names" value="nick_name" checked="checked"|cond="$config->mention_names == 'nick_name'" /> {$lang->nick_name}
</label>
<p class="x_help-block">{$lang->ncenterlite_mention_target_about}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">회원정보 메뉴노출 설정</label>
<div class="x_controls">
<label class="x_inline">
<input type="radio" id="user_config_list_id" name="user_config_list" value="Y" checked="checked"|cond="$config->user_config_list == 'Y'" /> 회원정보에 표시함
</label>
<label class="x_inline">
<input type="radio" id="user_config_list_nick_name" name="user_config_list" value="N" checked="checked"|cond="$config->user_config_list == 'N'" /> 표기안함
</label>
<p class="x_help-block">회원정보보기에서 메뉴 목록에 회원알림센터 설정 및 회원알림목록을 접근할 수잇는 페이지를 노출하거나 노출 시키지 않을 수 있습니다.</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">안드로이드알림 솔루션</label>
<div class="x_controls">
<label class="x_inline"><input type="radio" name="android_format" value="N" checked="checked"|cond="$config->android_format == 'N'" /> 안드로이드 알림을 사용하지 않음</label>
<label class="x_inline"><input type="radio" name="android_format" value="mobileplus" checked="checked"|cond="$config->android_format == 'mobileplus'" />MobilePlus</label>
<p>알림센터와 함께 안드로이드 모바일 알림 솔루션을 선택하여 사용할 수 있습니다. 각각의 안드로이드 어플리케이션 플레폼을 사용하시면 선택하여 사용하시기 바랍니다.</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">{$lang->ncenterlite_message_event}</label>
<div class="x_controls">
<label><input type="checkbox" name="message_notify" value="N" checked="checked"|cond="$config->message_notify == 'N'" /> {$lang->ncenterlite_message_event_about}</label>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">알림센터 사용여부</label>
<div class="x_controls">
<p class="x_help-block">선택한 페이지에서 알림센터를 표시하지 않습니다.</p>
<div loop="$mid_list => $mid, $item">
<label>
<input type="checkbox" value="{$item->module_srl}" name="hide_module_srls[]" checked="checked"|cond="is_array($item->module_srl, $config->hide_module_srls) && in_array($item->module_srl, $config->hide_module_srls)" />
<strong>{$item->browser_title}</strong> ({$item->mid} / {strtoupper($item->module)})
</label>
</div>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">댓글 알림 사용게시판</label>
<div class="x_controls">
<p class="x_help-block">선택한 게시판에서는 댓글의 모든 알림을 관리자가 받을 수 있습니다.</p>
<div loop="$mid_list => $mid, $item">
<label>
<input type="checkbox" value="{$item->module_srl}" name="admin_comment_module_srls[]" checked="checked"|cond="is_array($item->module_srl, $config->admin_comment_module_srls) && in_array($item->module_srl, $config->admin_comment_module_srls)" />
<strong>{$item->browser_title}</strong> ({$item->mid} / {strtoupper($item->module)})
</label>
</div>
</div>
</div>
</section>
<section class="section collapsed">
<h1>{$lang->ncenterlite_document_event_settings} ({$lang->ncenterlite_click_to_open}) </h1>
<div class="x_control-group">
<label class="x_control-label">{$lang->ncenterlite_document_event_vote}</label>
<div class="x_controls">
<label class="x_inline"><input type="radio" name="voted_format" value="Y" checked="checked"|cond="$config->voted_format == 'Y'" /> {$lang->ncenterlite_activate}</label>
<label class="x_inline"><input type="radio" name="voted_format" value="N" checked="checked"|cond="$config->voted_format == 'N'" /> {$lang->ncenterlite_inactivate}</label>
<p>{$lang->ncenterlite_document_event_vote_about}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">{$lang->ncenterlite_document_event_read}</label>
<div class="x_controls">
<label class="x_inline"><input type="radio" name="document_read" value="N" checked="checked"|cond="$config->document_read == 'N'" />{$lang->ncenterlite_document_event_read_preserve}</label>
<label class="x_inline"><input type="radio" name="document_read" value="Y" checked="checked"|cond="$config->document_read == 'Y'" />{$lang->ncenterlite_document_event_read_delete}</label>
<p>{$lang->ncenterlite_document_event_read_about}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">{$lang->ncenterlite_commnet_event}</label>
<div class="x_controls">
<label class="x_inline"><input type="radio" name="document_notify" value="all-comment" checked="checked"|cond="$config->document_notify == 'all-comment'" /> {$lang->ncenterlite_commnet_event_noti_all}</label>
<label class="x_inline"><input type="radio" name="document_notify" value="direct-comment" checked="checked"|cond="$config->document_notify == 'direct-comment'" /> {$lang->ncenterlite_commnet_event_noti_some}</label>
</div>
</div>
</section>
<section class="section collapsed">
<h1>{$lang->cmd_layout_setup} ({$lang->ncenterlite_click_to_open})</h1>
<div class="x_control-group">
<label class="x_control-label" for="layout_srl">{$lang->layout}</label>
<div class="x_controls">
<select name="layout_srl" id="layout_srl">
<option value="0">{$lang->notuse}</option>
<option loop="$layout_list => $key, $val" value="{$val->layout_srl}" selected="selected"|cond="$config->layout_srl==$val->layout_srl">{$val->title} ({$val->layout})</option>
</select>
<a href="#aboutLayout" data-toggle class="x_icon-question-sign">{$lang->help}</a>
<p class="x_help-block" id="aboutLayout" hidden>{$lang->about_layout}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="layout_srl">{$lang->mobile} {$lang->layout}</label>
<div class="x_controls">
<select name="mlayout_srl" id="mlayout_srl">
<option value="0">{$lang->notuse}</option>
<option loop="$mlayout_list => $key, $val" value="{$val->layout_srl}" selected="selected"|cond="$config->mlayout_srl==$val->layout_srl">{$val->title} ({$val->layout})</option>
</select>
<a href="#aboutLayout" data-toggle class="x_icon-question-sign">{$lang->help}</a>
<p class="x_help-block" id="aboutLayout" hidden>{$lang->about_layout}</p>
</div>
</div>
</section>
<section class="section collapsed">
<h1>{$lang->ncenterlite_skin_settings} ({$lang->ncenterlite_click_to_open})</h1>
<div class="x_control-group">
<label class="x_control-label">{$lang->skin}</label>
<div class="x_controls">
<select name="skin" onchange="doDisplaySkinColorset(this); return false;">
<option loop="$skin_list => $key, $val" value="{$key}" selected="selected"|cond="$config->skin == $key">
{$val->title} ({htmlspecialchars($key)})
</option>
</select>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">{$lang->colorset}</label>
<div class="x_controls">
<select name="colorset" id="ncenterlite_colorset">
<option loop="$colorset_list => $key, $val" value="{$val->name}" selected="selected"|cond="$config->colorset == $val->name">
{$val->title} ({$val->name})
</option>
</select>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">mobile {$lang->mskin}</label>
<div class="x_controls">
<select name="mskin" onchange="doDisplayMobileSkinColorset(this); return false;">
<option loop="$mskin_list => $key, $val" value="{$key}" selected="selected"|cond="$config->mskin == $key">
{$val->title} ({htmlspecialchars($key)})
</option>
</select>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">mobile {$lang->colorset}</label>
<div class="x_controls">
<select name="mcolorset" id="ncenterlite_colorset">
<option loop="$mcolorset_list => $key, $val" value="{$val->name}" selected="selected"|cond="$config->mcolorset == $val->name">
{$val->title} ({$val->name})
</option>
</select>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">{$lang->ncenterlite_zindex}</label>
<div class="x_controls">
<input type="number" name="zindex" value="{$config->zindex}" />
<p class="x_help-block">{$lang->ncenterlite_zindex_about}</p>
</div>
</div>
</section>
<div class="x_clearfix btnArea">
<div class="x_pull-right">
<button class="x_btn x_btn-primary" type="submit">{$lang->cmd_registration}</button>
</div>
</div>
<section class="section">
<h1>{$lang->etc}</h1>
<div class="x_control-group">
<label class="x_control-label">{$lang->ncenterlite_test_mention}</label>
<div class="x_controls">
<label><input type="button" name="dummy" onClick="doDummyDataInsert();" class="x_btn" value="{$lang->ncenterlite_test_make_dummy}"> {$lang->ncenterlite_test_mention_about}</label>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">{$lang->ncenterlite_test_push}</label>
<div class="x_controls">
<label><input type="button" name="dummy" onClick="doDummyPushDataInsert();" class="x_btn" value="{$lang->ncenterlite_test_make_dummy}"> {$lang->ncenterlite_test_push_about}</label>
</div>
</div>
</section>
</form>
<div cond="$_ncenterlite_iframe_url">
<p>{$lang->ncenterlite_install_version} : Lite v{$ncenterlite_module_info->version}</p>
<iframe frameborder="0" src="{$_ncenterlite_iframe_url}" style="display:block; margin:10px auto; padding:0; width:90%;border:3px solid #7361d6; border-radius:10px; height:200px; overflow:scroll; "></iframe>
</div>

View file

@ -0,0 +1,12 @@
.mention_option ul.preview,
.mention_option ul.preview li { margin:0; padding:0; list-style:none; }
.mention_option ul.preview li { display:inline-block; margin:5px; padding:3px 7px; border-radius:50px; color:red; font-size:1.2em; background:#EEE; }
.mention_option ul.preview li strong { color:black; }
.mention_option ul.preview li.enable,
.mention_option ul.preview li.disable { color:black; }
.mention_option ul.preview li.enable strong,
.mention_option ul.preview li.disable strong { color:#FFF; }
.mention_option ul.preview li.enable { background:green; }
.mention_option ul.preview li.disable { background:red; }

View file

@ -0,0 +1,14 @@
<div class="x_page-header">
<h1>{$lang->ncenterlite}</h1>
</div>
<div class="header4">
<ul class="x_nav x_nav-tabs">
<li class="x_active"|cond="$act=='dispNcenterliteAdminConfig'"><a href="{getUrl('act','dispNcenterliteAdminConfig')}">{$lang->env_setup}</a></li>
<li class="x_active"|cond="$act=='dispNcenterliteAdminList'"><a href="{getUrl('act','dispNcenterliteAdminList')}">{$lang->ncenterlite_notice_list}</a></li>
</ul>
</div>
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>

View file

@ -0,0 +1,106 @@
function doDisplaySkinColorset(sel, colorset)
{
var skin = sel.options[sel.selectedIndex].value;
var params = new Array();
params["skin"] = skin;
params["colorset"] = colorset;
var response_tags = ['error', 'message', 'colorset_list'];
exec_xml('ncenterlite', 'getColorsetList', params, completeGetSkinColorset, response_tags, params);
}
function completeGetSkinColorset(ret_obj, response_tags, params, fo_obj)
{
var sel = get_by_id('fo_ncenterlite').colorset;
var length = sel.options.length;
var selected_colorset = params['colorset'];
for(var i=0;i<length;i++) sel.remove(0);
var colorset_list = ret_obj['colorset_list'].split("\n");
var selected_index = 0;
for(var i=0;i<colorset_list.length;i++) {
var tmp = colorset_list[i].split('|@|');
if(selected_colorset && selected_colorset==tmp[0]) selected_index = i;
var opt = new Option(tmp[1], tmp[0], false, false);
sel.options.add(opt);
}
sel.selectedIndex = selected_index;
}
(function($) {
function debugPrint(msg){if(typeof console == 'object' && typeof console.log == 'function'){console.log(msg)}};
$(function(){
var $mentionOption = $('.mention_option');
var $checkbox = $('input:checkbox', $mentionOption);
var $preview = $('ul.preview', $mentionOption);
var $previewItem = $('li', $preview);
var mentionRegx = /(^|\s)@([^\s]+)/ig;
$mentionOption.bind('prepare', function() {
mentionRegx = ['(^|\\s)@([^\\s', '', ']+)'];
var mentionSplit = [];
$checkbox.each(function(){
if($(this).is(':checked')) mentionSplit.push($(this).data('mention-split'));
});
mentionRegx[1] = mentionSplit.join('');
mentionRegx = mentionRegx.join('');
mentionRegx = new RegExp(mentionRegx, 'ig');
});
$preview.bind('prepare', function() {
$previewItem.each(function() {
var $this = $(this);
var $strong = $('strong', $this);
var names = [];
$strong.contents().each(function() {
names.push(this.nodeValue.replace('@', ''));
});
$this.data('mention-target', names);
});
});
$preview.triggerHandler('prepare');
$preview.bind('preview', function() {
$mentionOption.triggerHandler('prepare');
$previewItem.each(function() {
var $this = $(this);
var target = $this.data('mention-target');
var defaultClass = $this.data('mention-default');
var content = $this.text();
var matched = content.match(mentionRegx);
if(matched) $.map(matched, function(text, idx) { matched[idx] = $.trim(text.replace(['@'], ''))});
$this.attr('class', (compare(target, matched)) ? 'enable' : (defaultClass && defaultClass == 'enable') ? 'disable' : '');
});
});
$preview.triggerHandler('preview');
$checkbox.click(function() {$preview.triggerHandler('preview');})
function compare(arrayA, arrayB) {
if(!arrayA || !arrayB) return false;
if(arrayA.length != arrayB.length) return false;
var a = $.extend(true, [], arrayA);
var b = $.extend(true, [], arrayB);
for(var i = 0, l = a.length; i < l; i++) {
if(a[i] !== b[i]) return false;
}
return true;
}
});
}) (jQuery);
function doDummyDataInsert()
{
jQuery.exec_json('ncenterlite.procNcenterliteAdminInsertDummyData', {}, function completeGetDummyInfo(ret_obj){alert(ret_obj.message)});
}
function doDummyPushDataInsert()
{
jQuery.exec_json('ncenterlite.procNcenterliteAdminInsertPushData', {}, function completeGetDummyPushInfo(ret_obj){alert(ret_obj.message)});
}

View file

@ -0,0 +1,57 @@
var ncenterlite_need_highlight = true;
function ncenterlite_highlight() {
function y(element, startcolour, endcolour, time_elapsed, c) {
var interval = 30;
var steps = time_elapsed / interval;
var red_change = (startcolour[0] - endcolour[0]) / steps;
var green_change = (startcolour[1] - endcolour[1]) / steps;
var blue_change = (startcolour[2] - endcolour[2]) / steps;
var currentcolour = startcolour;
var stepcount = 0;
element.style.backgroundColor = 'rgb(' + currentcolour.toString() + ')';
var timer = setInterval(function(){
currentcolour[0] = parseInt(currentcolour[0] - red_change);
currentcolour[1] = parseInt(currentcolour[1] - green_change);
currentcolour[2] = parseInt(currentcolour[2] - blue_change);
element.style.backgroundColor = 'rgb(' + currentcolour.toString() + ')';
stepcount += 1;
if (stepcount >= steps) {
//element.style.backgroundColor = 'rgb(' + endcolour.toString() + ')';
element.style.backgroundColor = c; //'rgb(' + endcolour.toString() + ')';
clearInterval(timer);
}
}, interval);
}
var s = decodeURIComponent(location.href).replace(/.*#comment_/,'');
if(!s || s === decodeURIComponent(location.href)) return;
s = 'comment_' + s;
jQuery('.xe_content').each(function(){
var t = jQuery(this);
if(t.hasClass(s) || (new RegExp(s + '_')).test(t.attr('class'))){
var c = t.css('display','block').css('background-color');
y(this, [255,255,60], [255,255,255], 750, c);
ncenterlite_need_highlight = false;
}
});
}
if(typeof _viewSubComment == 'function') {
old__viewSubComment = _viewSubComment;
_viewSubComment = function(ret_obj) {
old__viewSubComment(ret_obj);
if(ncenterlite_need_highlight) {
setTimeout(function(){
var s = decodeURIComponent(location.href).match(/#.*comment_([0-9]+)/);
if(s) {
ncenterlite_highlight();
location.href = '#social_comment_' + s[1];
}
}, 500);
}
};
}
jQuery(function(){
ncenterlite_highlight();
});

View file

@ -0,0 +1,67 @@
<load target="css/ncenter_admin.css" />
<include target="header.html" />
<section class="section">
<h1>알림 목록</h1>
<p class="x_well x_well-small" cond="!$ncenterlite_list">알림이 없습니다.</p>
<block cond="$ncenterlite_list">
<div class="x_clearfix">
<form ruleset="cleanLogs" action="./" method="post">
<fieldset>
<input type="hidden" name="module" value="ncenterlite" />
<input type="hidden" name="act" value="procNcenterliteAdminDeleteNofity" />
<button type="submit" class="x_btn">전체 삭제</button>
<button type="submit" name="old_date" value="{date('Ymd', strtotime('-1 month'))}" class="x_btn">한 달 이전의 알림 삭제</button>
<p class="x_help-block"><span class="x_label x_label-important">주의!</span> 회원이 확인하지 않은 알림도 삭제됩니다.</p>
</fieldset>
</form>
</div>
<table class="x_table x_table-striped x_table-hover" style="margin-top:20px;">
<thead>
<tr>
<th scope="col" class="nowr" style="width:100px;">보낸사람</th>
<th scope="col" style="width:100px;">받은사람</th>
<th scope="col" style="width:500px;">내용</th>
<th scope="col" style="width:50px;">읽음여부</th>
<th scope="col" style="width:100px;">{$lang->date}</th>
</tr>
</thead>
<tbody>
<!--@foreach($ncenterlite_list as $no => $val)-->
{@
$oMemberModel = getModel('member');
$member_info = $oMemberModel->getMemberInfoByMemberSrl($val->member_srl);
}
<tr>
<td>{$val->target_nick_name}</td>
<td cond="$member_info->member_srl">{$member_info->nick_name}</td> <td cond="!$member_info->member_srl">타겟없음</td>
<td><a href="{$val->target_url}">{$val->text}</a></td>
<td>{$val->readed}</td>
<td>
{zdate($val->regdate,"Y-m-d")}
</br>
{zdate($val->regdate,"H:i:s")}
</td>
</tr>
<!--@endforeach-->
</tbody>
</table>
<div class="x_pagination">
<ul>
<li><a href="{getUrl('page','')}" class="prevEnd">{$lang->first_page}</a></li>
<!--@while($page_no = $page_navigation->getNextPage())-->
<!--@if($page == $page_no)-->
<li class="x_active"><a href="{getUrl('page',$page_no)}">{$page_no}</a></li>
<!--@else-->
<li><a href="{getUrl('page',$page_no)}">{$page_no}</a></li>
<!--@endif-->
<!--@end-->
<li><a href="{getUrl('page',$page_navigation->last_page)}" class="nextEnd">{$lang->last_page}</a></li>
</ul>
</div>
</block>
</section>