From 826aa8aa3659f0906c230c1893711b13a3674e3d Mon Sep 17 00:00:00 2001
From: BJRambo
Date: Thu, 17 Mar 2016 06:05:05 +0900
Subject: [PATCH] add ncenterlite module from xe-public.
---
modules/ncenterlite/LICENSE | 84 ++
modules/ncenterlite/LICENSE-ko | 97 ++
modules/ncenterlite/conf/info.xml | 14 +
modules/ncenterlite/conf/module.xml | 30 +
modules/ncenterlite/lang/lang.xml | 458 +++++++
.../m.skins/default/NotifyList.html | 24 +
modules/ncenterlite/m.skins/default/img/p.png | Bin 0 -> 7463 bytes
.../ncenterlite/m.skins/default/ncenter.html | 124 ++
.../m.skins/default/ncenterlite.black.css | 15 +
.../default/ncenterlite.blacknoprofile.css | 17 +
.../m.skins/default/ncenterlite.css | 185 +++
.../m.skins/default/ncenterlite.gray.css | 16 +
.../default/ncenterlite.graynoprofile.css | 18 +
.../m.skins/default/ncenterlite.html | 122 ++
.../m.skins/default/ncenterlite.mobile.css | 12 +
.../m.skins/default/ncenterlite.white.css | 16 +
.../default/ncenterlite.whitenoprofile.css | 18 +
.../ncenterlite/m.skins/default/notify.css | 97 ++
modules/ncenterlite/m.skins/default/skin.xml | 32 +
.../m.skins/default/userconfig.html | 66 ++
.../ncenterlite.admin.controller.php | 152 +++
.../ncenterlite/ncenterlite.admin.model.php | 105 ++
.../ncenterlite/ncenterlite.admin.view.php | 90 ++
modules/ncenterlite/ncenterlite.class.php | 213 ++++
.../ncenterlite/ncenterlite.controller.php | 1050 +++++++++++++++++
modules/ncenterlite/ncenterlite.mobile.php | 38 +
modules/ncenterlite/ncenterlite.model.php | 376 ++++++
modules/ncenterlite/ncenterlite.view.php | 71 ++
modules/ncenterlite/queries/deleteNotify.xml | 10 +
.../ncenterlite/queries/deleteNotifyAll.xml | 8 +
.../queries/deleteNotifyByMemberSrl.xml | 10 +
.../ncenterlite/queries/deleteNotifyBySrl.xml | 10 +
.../queries/deleteNotifyByTargetSrl.xml | 10 +
.../queries/getAdminNotifyList.xml | 11 +
.../ncenterlite/queries/getAllUserConfig.xml | 11 +
.../queries/getCountNewMessage.xml | 13 +
.../ncenterlite/queries/getDispNotifyList.xml | 20 +
.../ncenterlite/queries/getMemberAdmins.xml | 12 +
.../ncenterlite/queries/getMemberSrlById.xml | 13 +
.../queries/getMemberSrlByNickName.xml | 13 +
.../ncenterlite/queries/getMemberTotals.xml | 12 +
modules/ncenterlite/queries/getNotifyList.xml | 21 +
.../ncenterlite/queries/getNotifyNewCount.xml | 14 +
modules/ncenterlite/queries/getNotifyType.xml | 13 +
.../ncenterlite/queries/getNotifyTypeByID.xml | 13 +
.../ncenterlite/queries/getSocialxeCount.xml | 13 +
modules/ncenterlite/queries/getUserConfig.xml | 13 +
modules/ncenterlite/queries/insertNotify.xml | 24 +
.../ncenterlite/queries/insertNotifyType.xml | 11 +
.../ncenterlite/queries/insertUserConfig.xml | 12 +
.../queries/updateNotifyReaded.xml | 12 +
.../queries/updateNotifyReadedAll.xml | 11 +
.../queries/updateNotifyReadedBySrl.xml | 13 +
.../queries/updateNotifyReadedByTargetSrl.xml | 12 +
.../queries/updateNotifyReadedByType.xml | 12 +
.../ncenterlite/queries/updateUserConfig.xml | 14 +
modules/ncenterlite/ruleset/insertConfig.xml | 13 +
.../schemas/ncenterlite_notify.xml | 24 +
.../schemas/ncenterlite_notify_type.xml | 6 +
.../schemas/ncenterlite_user_set.xml | 7 +
.../ncenterlite/skins/default/NotifyList.html | 46 +
modules/ncenterlite/skins/default/img/p.png | Bin 0 -> 7463 bytes
.../skins/default/ncenterlite.black.css | 15 +
.../default/ncenterlite.blacknoprofile.css | 17 +
.../ncenterlite/skins/default/ncenterlite.css | 185 +++
.../skins/default/ncenterlite.gray.css | 16 +
.../default/ncenterlite.graynoprofile.css | 18 +
.../skins/default/ncenterlite.html | 125 ++
.../skins/default/ncenterlite.mobile.css | 12 +
.../skins/default/ncenterlite.white.css | 16 +
.../default/ncenterlite.whitenoprofile.css | 18 +
modules/ncenterlite/skins/default/skin.xml | 40 +
.../ncenterlite/skins/default/userconfig.html | 68 ++
.../skins/default_bottom/NotifyList.html | 46 +
.../skins/default_bottom/img/p.png | Bin 0 -> 7463 bytes
.../default_bottom/ncenterlite.black.css | 15 +
.../ncenterlite.blacknoprofile.css | 17 +
.../skins/default_bottom/ncenterlite.css | 177 +++
.../skins/default_bottom/ncenterlite.gray.css | 16 +
.../ncenterlite.graynoprofile.css | 18 +
.../skins/default_bottom/ncenterlite.html | 124 ++
.../default_bottom/ncenterlite.mobile.css | 12 +
.../default_bottom/ncenterlite.white.css | 16 +
.../ncenterlite.whitenoprofile.css | 18 +
.../ncenterlite/skins/default_bottom/skin.xml | 40 +
.../skins/default_bottom/userconfig.html | 68 ++
modules/ncenterlite/tpl/Config.html | 272 +++++
modules/ncenterlite/tpl/css/ncenter_admin.css | 12 +
modules/ncenterlite/tpl/header.html | 14 +
modules/ncenterlite/tpl/js/ncenter_admin.js | 106 ++
modules/ncenterlite/tpl/js/ncenterlite.js | 57 +
modules/ncenterlite/tpl/ncenter_list.html | 67 ++
92 files changed, 5622 insertions(+)
create mode 100644 modules/ncenterlite/LICENSE
create mode 100644 modules/ncenterlite/LICENSE-ko
create mode 100644 modules/ncenterlite/conf/info.xml
create mode 100644 modules/ncenterlite/conf/module.xml
create mode 100644 modules/ncenterlite/lang/lang.xml
create mode 100644 modules/ncenterlite/m.skins/default/NotifyList.html
create mode 100644 modules/ncenterlite/m.skins/default/img/p.png
create mode 100644 modules/ncenterlite/m.skins/default/ncenter.html
create mode 100644 modules/ncenterlite/m.skins/default/ncenterlite.black.css
create mode 100644 modules/ncenterlite/m.skins/default/ncenterlite.blacknoprofile.css
create mode 100644 modules/ncenterlite/m.skins/default/ncenterlite.css
create mode 100644 modules/ncenterlite/m.skins/default/ncenterlite.gray.css
create mode 100644 modules/ncenterlite/m.skins/default/ncenterlite.graynoprofile.css
create mode 100644 modules/ncenterlite/m.skins/default/ncenterlite.html
create mode 100644 modules/ncenterlite/m.skins/default/ncenterlite.mobile.css
create mode 100644 modules/ncenterlite/m.skins/default/ncenterlite.white.css
create mode 100644 modules/ncenterlite/m.skins/default/ncenterlite.whitenoprofile.css
create mode 100644 modules/ncenterlite/m.skins/default/notify.css
create mode 100644 modules/ncenterlite/m.skins/default/skin.xml
create mode 100644 modules/ncenterlite/m.skins/default/userconfig.html
create mode 100644 modules/ncenterlite/ncenterlite.admin.controller.php
create mode 100644 modules/ncenterlite/ncenterlite.admin.model.php
create mode 100644 modules/ncenterlite/ncenterlite.admin.view.php
create mode 100644 modules/ncenterlite/ncenterlite.class.php
create mode 100644 modules/ncenterlite/ncenterlite.controller.php
create mode 100644 modules/ncenterlite/ncenterlite.mobile.php
create mode 100644 modules/ncenterlite/ncenterlite.model.php
create mode 100644 modules/ncenterlite/ncenterlite.view.php
create mode 100644 modules/ncenterlite/queries/deleteNotify.xml
create mode 100644 modules/ncenterlite/queries/deleteNotifyAll.xml
create mode 100644 modules/ncenterlite/queries/deleteNotifyByMemberSrl.xml
create mode 100644 modules/ncenterlite/queries/deleteNotifyBySrl.xml
create mode 100644 modules/ncenterlite/queries/deleteNotifyByTargetSrl.xml
create mode 100644 modules/ncenterlite/queries/getAdminNotifyList.xml
create mode 100644 modules/ncenterlite/queries/getAllUserConfig.xml
create mode 100644 modules/ncenterlite/queries/getCountNewMessage.xml
create mode 100644 modules/ncenterlite/queries/getDispNotifyList.xml
create mode 100644 modules/ncenterlite/queries/getMemberAdmins.xml
create mode 100644 modules/ncenterlite/queries/getMemberSrlById.xml
create mode 100644 modules/ncenterlite/queries/getMemberSrlByNickName.xml
create mode 100644 modules/ncenterlite/queries/getMemberTotals.xml
create mode 100644 modules/ncenterlite/queries/getNotifyList.xml
create mode 100644 modules/ncenterlite/queries/getNotifyNewCount.xml
create mode 100644 modules/ncenterlite/queries/getNotifyType.xml
create mode 100644 modules/ncenterlite/queries/getNotifyTypeByID.xml
create mode 100644 modules/ncenterlite/queries/getSocialxeCount.xml
create mode 100644 modules/ncenterlite/queries/getUserConfig.xml
create mode 100644 modules/ncenterlite/queries/insertNotify.xml
create mode 100644 modules/ncenterlite/queries/insertNotifyType.xml
create mode 100644 modules/ncenterlite/queries/insertUserConfig.xml
create mode 100644 modules/ncenterlite/queries/updateNotifyReaded.xml
create mode 100644 modules/ncenterlite/queries/updateNotifyReadedAll.xml
create mode 100644 modules/ncenterlite/queries/updateNotifyReadedBySrl.xml
create mode 100644 modules/ncenterlite/queries/updateNotifyReadedByTargetSrl.xml
create mode 100644 modules/ncenterlite/queries/updateNotifyReadedByType.xml
create mode 100644 modules/ncenterlite/queries/updateUserConfig.xml
create mode 100644 modules/ncenterlite/ruleset/insertConfig.xml
create mode 100644 modules/ncenterlite/schemas/ncenterlite_notify.xml
create mode 100644 modules/ncenterlite/schemas/ncenterlite_notify_type.xml
create mode 100644 modules/ncenterlite/schemas/ncenterlite_user_set.xml
create mode 100644 modules/ncenterlite/skins/default/NotifyList.html
create mode 100644 modules/ncenterlite/skins/default/img/p.png
create mode 100644 modules/ncenterlite/skins/default/ncenterlite.black.css
create mode 100644 modules/ncenterlite/skins/default/ncenterlite.blacknoprofile.css
create mode 100644 modules/ncenterlite/skins/default/ncenterlite.css
create mode 100644 modules/ncenterlite/skins/default/ncenterlite.gray.css
create mode 100644 modules/ncenterlite/skins/default/ncenterlite.graynoprofile.css
create mode 100644 modules/ncenterlite/skins/default/ncenterlite.html
create mode 100644 modules/ncenterlite/skins/default/ncenterlite.mobile.css
create mode 100644 modules/ncenterlite/skins/default/ncenterlite.white.css
create mode 100644 modules/ncenterlite/skins/default/ncenterlite.whitenoprofile.css
create mode 100644 modules/ncenterlite/skins/default/skin.xml
create mode 100644 modules/ncenterlite/skins/default/userconfig.html
create mode 100644 modules/ncenterlite/skins/default_bottom/NotifyList.html
create mode 100644 modules/ncenterlite/skins/default_bottom/img/p.png
create mode 100644 modules/ncenterlite/skins/default_bottom/ncenterlite.black.css
create mode 100644 modules/ncenterlite/skins/default_bottom/ncenterlite.blacknoprofile.css
create mode 100644 modules/ncenterlite/skins/default_bottom/ncenterlite.css
create mode 100644 modules/ncenterlite/skins/default_bottom/ncenterlite.gray.css
create mode 100644 modules/ncenterlite/skins/default_bottom/ncenterlite.graynoprofile.css
create mode 100644 modules/ncenterlite/skins/default_bottom/ncenterlite.html
create mode 100644 modules/ncenterlite/skins/default_bottom/ncenterlite.mobile.css
create mode 100644 modules/ncenterlite/skins/default_bottom/ncenterlite.white.css
create mode 100644 modules/ncenterlite/skins/default_bottom/ncenterlite.whitenoprofile.css
create mode 100644 modules/ncenterlite/skins/default_bottom/skin.xml
create mode 100644 modules/ncenterlite/skins/default_bottom/userconfig.html
create mode 100644 modules/ncenterlite/tpl/Config.html
create mode 100644 modules/ncenterlite/tpl/css/ncenter_admin.css
create mode 100644 modules/ncenterlite/tpl/header.html
create mode 100644 modules/ncenterlite/tpl/js/ncenter_admin.js
create mode 100644 modules/ncenterlite/tpl/js/ncenterlite.js
create mode 100644 modules/ncenterlite/tpl/ncenter_list.html
diff --git a/modules/ncenterlite/LICENSE b/modules/ncenterlite/LICENSE
new file mode 100644
index 000000000..2fb57a6e4
--- /dev/null
+++ b/modules/ncenterlite/LICENSE
@@ -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.
\ No newline at end of file
diff --git a/modules/ncenterlite/LICENSE-ko b/modules/ncenterlite/LICENSE-ko
new file mode 100644
index 000000000..f51a8569f
--- /dev/null
+++ b/modules/ncenterlite/LICENSE-ko
@@ -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자가 프로그램을 조작함으로써 발생된 손실이나 다른 소프트웨어와 프로그램을 함께 동작시키는 것으로 인해서 발생된 데이터의 상실 및 부정확한 산출 결과에만 국한되는 것이 아닙니다. 발생된 손실의 일반성이나 특수성 뿐 아니라 원인의 우발성 및 필연성도 전혀 고려되지 않습니다.
diff --git a/modules/ncenterlite/conf/info.xml b/modules/ncenterlite/conf/info.xml
new file mode 100644
index 000000000..6d943f59c
--- /dev/null
+++ b/modules/ncenterlite/conf/info.xml
@@ -0,0 +1,14 @@
+
+
+ XE 알림센터 Lite
+ XE Notification Center Lite
+ 사이트 사용자간의 커뮤니케이션에 대한 정보를 알려주는 모듈입니다.
+ This module notify users of information about new documents, comments and/or messages that call them. This module will enhance communication beween site users.
+ 2.1.5
+ 2014-12-09
+ content
+
+ XE Public
+ XE Public
+
+
diff --git a/modules/ncenterlite/conf/module.xml b/modules/ncenterlite/conf/module.xml
new file mode 100644
index 000000000..489517102
--- /dev/null
+++ b/modules/ncenterlite/conf/module.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/lang/lang.xml b/modules/ncenterlite/lang/lang.xml
new file mode 100644
index 000000000..d6a8762c3
--- /dev/null
+++ b/modules/ncenterlite/lang/lang.xml
@@ -0,0 +1,458 @@
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+ %1$s님이 "%2$s"라고 글을 남겼습니다.]]>
+ %1$s wrote an article as "%2$s".]]>
+ %1$s wrote an article as "%2$s".]]>
+
+ -
+ %1$s님이 게시판 "%2$s"에 "%3$s"라고 글을 남겼습니다.]]>
+ %1$s wrote an article as "%3$s" on the board %2$s.]]>
+ %1$s wrote an article as "%3$s" on the board %2$s.]]>
+
+ -
+ %1$s님이 회원님의 %2$s에 "%3$s"라고 댓글을 남겼습니다.]]>
+ %1$s commented as "%3$s" on your %2$s.]]>
+ %sさんがあなたの%sに「%s」とコメントしました。]]>
+
+ -
+ %1$s님이 게시판 "%2$s"에 "%3$s"라고 댓글을 남겼습니다.]]>
+ %1$s commented as "%3$s" on the board %2$s.]]>
+ %1$s commented as "%3$s" on the board %2$s.]]>
+
+ -
+ %s님이 "%s" %s에서 회원님을 언급하였습니다.]]>
+ %s mentioned you on "%s" %s.]]>
+ %sさんが「%s」%sにあなたをタグ付けしました。]]>
+
+ -
+ %d개의 읽지 않은 메시지가 있습니다.]]>
+ %d new message(s).]]>
+ %d件の読んでないメッセージがあります。]]>
+
+ -
+ %s님께서 "%s"라고 메세지를 보내셨습니다.]]>
+ %1$s sent a message as "%2$s".]]>
+ %1$s sent a message as "%2$s".]]>
+
+ -
+ %s님! 스킨 테스트 알림을 완료했습니다.]]>
+ %s! Skin test notification has been done.]]>
+ %s! Skin test notification has been done.]]>
+
+ -
+ %s님이 "%s" 글을 추천하였습니다.]]>
+ %1$s marked the article "%2$s" with a recommendation.]]>
+ %1$s marked the article "%2$s" with a recommendation.]]>
+
+ -
+
+
+
+
+ -
+
-
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+ -
+ %s개의 알림이 있습니다.]]>
+ %s notification.]]>
+ %s件のお知らせがあります。]]>
+
+ -
+ %s개의 알림이 있습니다.]]>
+ %s notifications.]]>
+ %s件のお知らせがあります。]]>
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+ 도와주세요! 사용 환경 정보 제공 동의]]>
+ HELP! Agreement on gathering server environment information]]>
+ HELP! Agreement on gathering server environment information]]>
+
+ -
+ '알림센터 Lite'를 자유소프트웨어로 제공하고 있습니다.
+ '알림센터 Lite'는 사용자의 버그 보고, 의견 제출을 통해 공동의 힘으로 발전하고 있습니다.
'제공 동의'를 선택하면 아래와 같은 항목이 전송되며, 알림센터 Lite의 기능을 개선하는데 참고하겠습니다. 감사합니다.
+
+ - 이 사이트의 도메인
+ - 알림센터 Lite의 버전
+ - XE 버전
+ - PHP 버전
+
+ ]]>
+ 'Notification Center Lite' is distributed as an free software.
+ 'Notification Center Lite' is developing with collective intelligence, such as users' bug reports, suggestions and/or contributions.
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.
+
+ - Domain name of this website
+ - Version value of Notification Center Lite
+ - XE Core version value
+ - PHP version value
+
+ ]]>
+ 'Notification Center Lite' is distributed as an free software.
+ 'Notification Center Lite' is developing with collective intelligence, such as users' bug reports, suggestions and/or contributions.
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.
+
+ - Domain name of this website
+ - Version value of Notification Center Lite
+ - XE Core version value
+ - PHP version value
+
+ ]]>
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+ 주의! 알림센터를 레이아웃이나 위젯으로 표현할 수 있을 때에만 동작안함 선택하세요.]]>
+ Watch out! 알림센터를 레이아웃이나 위젯으로 표현할 수 있을 때에만 동작안함 선택하세요.]]>
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+
\ No newline at end of file
diff --git a/modules/ncenterlite/m.skins/default/NotifyList.html b/modules/ncenterlite/m.skins/default/NotifyList.html
new file mode 100644
index 000000000..6c111c5a6
--- /dev/null
+++ b/modules/ncenterlite/m.skins/default/NotifyList.html
@@ -0,0 +1,24 @@
+
+
+
{$lang->ncenterlite_my_list}
+
+ -
+ {@
+ $oMemberModel = getModel('member');
+ $member_info = $oMemberModel->getMemberInfoByMemberSrl($val->member_srl);
+ }
+
+
+ {$val->target_nick_name} ->
+ {$member_info->nick_name}
+
+
+
{$val->text}
+
({zdate($val->regdate,"Y-m-d H:i:s")})
+
({$lang->ncenterlite_read_y})
+
({$lang->ncenterlite_read_n})
+
+
+
+
+
\ No newline at end of file
diff --git a/modules/ncenterlite/m.skins/default/img/p.png b/modules/ncenterlite/m.skins/default/img/p.png
new file mode 100644
index 0000000000000000000000000000000000000000..44e3d8d1203e991132d400e26b13aa3e469862d9
GIT binary patch
literal 7463
zcmV+?9oXWDP)5000;CX+uL$Nkc;*
zP;zf(X>4Tx09b{USqC_l(c3@I^SsM=?Y(91y_3E79;v+crq@;^B&(2-LJEl#O;kc8
zC0U75q!3D_fvkKFjsO4qkL$a>b6w{=zxRIbbD#U%_kG6wyZ~_AAcchm!E^uwheVKV
zjdb~(U0nI_uK*0_0VCi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1U6_I6-^kX0
zOv&e&j8H0psLpu=Vcu4J+_bc_>J37ca
l(>%5XU^6|Cd|?`v-#SNw`M^J`4Z=002ovPDHLkV1i5TjzRzc
literal 0
HcmV?d00001
diff --git a/modules/ncenterlite/m.skins/default/ncenter.html b/modules/ncenterlite/m.skins/default/ncenter.html
new file mode 100644
index 000000000..f43222c58
--- /dev/null
+++ b/modules/ncenterlite/m.skins/default/ncenter.html
@@ -0,0 +1,124 @@
+
+
+
+
+
+
diff --git a/modules/ncenterlite/m.skins/default/ncenterlite.black.css b/modules/ncenterlite/m.skins/default/ncenterlite.black.css
new file mode 100644
index 000000000..6f2596f91
--- /dev/null
+++ b/modules/ncenterlite/m.skins/default/ncenterlite.black.css
@@ -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; }
diff --git a/modules/ncenterlite/m.skins/default/ncenterlite.blacknoprofile.css b/modules/ncenterlite/m.skins/default/ncenterlite.blacknoprofile.css
new file mode 100644
index 000000000..88c94a4a4
--- /dev/null
+++ b/modules/ncenterlite/m.skins/default/ncenterlite.blacknoprofile.css
@@ -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;}
diff --git a/modules/ncenterlite/m.skins/default/ncenterlite.css b/modules/ncenterlite/m.skins/default/ncenterlite.css
new file mode 100644
index 000000000..60df8e548
--- /dev/null
+++ b/modules/ncenterlite/m.skins/default/ncenterlite.css
@@ -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;
+ }
+}
diff --git a/modules/ncenterlite/m.skins/default/ncenterlite.gray.css b/modules/ncenterlite/m.skins/default/ncenterlite.gray.css
new file mode 100644
index 000000000..4d167ea21
--- /dev/null
+++ b/modules/ncenterlite/m.skins/default/ncenterlite.gray.css
@@ -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; }
diff --git a/modules/ncenterlite/m.skins/default/ncenterlite.graynoprofile.css b/modules/ncenterlite/m.skins/default/ncenterlite.graynoprofile.css
new file mode 100644
index 000000000..d8704070b
--- /dev/null
+++ b/modules/ncenterlite/m.skins/default/ncenterlite.graynoprofile.css
@@ -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;}
diff --git a/modules/ncenterlite/m.skins/default/ncenterlite.html b/modules/ncenterlite/m.skins/default/ncenterlite.html
new file mode 100644
index 000000000..07c776b5d
--- /dev/null
+++ b/modules/ncenterlite/m.skins/default/ncenterlite.html
@@ -0,0 +1,122 @@
+
+
+
+
diff --git a/modules/ncenterlite/m.skins/default/ncenterlite.mobile.css b/modules/ncenterlite/m.skins/default/ncenterlite.mobile.css
new file mode 100644
index 000000000..ef3125177
--- /dev/null
+++ b/modules/ncenterlite/m.skins/default/ncenterlite.mobile.css
@@ -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; }
diff --git a/modules/ncenterlite/m.skins/default/ncenterlite.white.css b/modules/ncenterlite/m.skins/default/ncenterlite.white.css
new file mode 100644
index 000000000..c3fd4444a
--- /dev/null
+++ b/modules/ncenterlite/m.skins/default/ncenterlite.white.css
@@ -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; }
diff --git a/modules/ncenterlite/m.skins/default/ncenterlite.whitenoprofile.css b/modules/ncenterlite/m.skins/default/ncenterlite.whitenoprofile.css
new file mode 100644
index 000000000..69342bd1d
--- /dev/null
+++ b/modules/ncenterlite/m.skins/default/ncenterlite.whitenoprofile.css
@@ -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;}
diff --git a/modules/ncenterlite/m.skins/default/notify.css b/modules/ncenterlite/m.skins/default/notify.css
new file mode 100644
index 000000000..0c6e55f3d
--- /dev/null
+++ b/modules/ncenterlite/m.skins/default/notify.css
@@ -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;}
diff --git a/modules/ncenterlite/m.skins/default/skin.xml b/modules/ncenterlite/m.skins/default/skin.xml
new file mode 100644
index 000000000..bc4725b2d
--- /dev/null
+++ b/modules/ncenterlite/m.skins/default/skin.xml
@@ -0,0 +1,32 @@
+
+
+ XE 알림센터 Lite 기본스킨
+ 1.1.1
+ 2013-03-21
+
+
+ XE Magazine
+
+
+
+
+ 검은색
+
+
+ 회색
+
+
+ 흰색
+
+
+
+ 검은색(no profile)
+
+
+ 회색(no profile)
+
+
+ 흰색(no profile)
+
+
+
diff --git a/modules/ncenterlite/m.skins/default/userconfig.html b/modules/ncenterlite/m.skins/default/userconfig.html
new file mode 100644
index 000000000..fae62dae5
--- /dev/null
+++ b/modules/ncenterlite/m.skins/default/userconfig.html
@@ -0,0 +1,66 @@
+
+
+
+
+
{$XE_VALIDATOR_MESSAGE}
+
+
+
+
+
\ No newline at end of file
diff --git a/modules/ncenterlite/ncenterlite.admin.controller.php b/modules/ncenterlite/ncenterlite.admin.controller.php
new file mode 100644
index 000000000..91b15fa10
--- /dev/null
+++ b/modules/ncenterlite/ncenterlite.admin.controller.php
@@ -0,0 +1,152 @@
+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;
+ }
+ }
+}
diff --git a/modules/ncenterlite/ncenterlite.admin.model.php b/modules/ncenterlite/ncenterlite.admin.model.php
new file mode 100644
index 000000000..4e5a9ecb9
--- /dev/null
+++ b/modules/ncenterlite/ncenterlite.admin.model.php
@@ -0,0 +1,105 @@
+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('%s님이 회원님의 %s에 "%s" 댓글을 남겼습니다.', $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('%1$s님이 게시판 "%2$s"에 "%3$s"라고 댓글을 남겼습니다.', $target_member, $type, $v->target_summary);
+ break;
+ case 'M':
+ $str = sprintf($lang->ncenterlite_mentioned, $target_member, $v->target_summary, $type);
+ //$str = sprintf('%s님이 "%s" %s에서 회원님을 언급하였습니다.', $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);
+ //%s님께서 "%s"라고 메세지를 보내셨습니다.
+ }
+ 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);
+ //%1$s님이 게시판 "%2$s"에 "%3$s"라고 글을 남겼습니다.
+ 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;
+ }
+
+}
\ No newline at end of file
diff --git a/modules/ncenterlite/ncenterlite.admin.view.php b/modules/ncenterlite/ncenterlite.admin.view.php
new file mode 100644
index 000000000..4c745ed0b
--- /dev/null
+++ b/modules/ncenterlite/ncenterlite.admin.view.php
@@ -0,0 +1,90 @@
+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() . '-XE' . __XE_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');
+ }
+
+}
diff --git a/modules/ncenterlite/ncenterlite.class.php b/modules/ncenterlite/ncenterlite.class.php
new file mode 100644
index 000000000..edcc7777f
--- /dev/null
+++ b/modules/ncenterlite/ncenterlite.class.php
@@ -0,0 +1,213 @@
+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;
+ }
+
+ 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]);
+ }
+ }
+
+ 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();
+ }
+}
diff --git a/modules/ncenterlite/ncenterlite.controller.php b/modules/ncenterlite/ncenterlite.controller.php
new file mode 100644
index 000000000..99538bb5b
--- /dev/null
+++ b/modules/ncenterlite/ncenterlite.controller.php
@@ -0,0 +1,1050 @@
+member_srl;
+ }
+
+ if($logged_info->member_srl != $member_srl && $logged_info->is_admin != 'Y') return new Object(-1, 'ncenterlite_stop_no_permission_other_user_settings');
+
+ $output = $oNcenterliteModel->getMemberConfig($member_srl);
+
+ $obj = Context::getRequestVars();
+
+ $args = new stdClass();
+ $args->member_srl = $member_srl;
+ $args->comment_notify = $obj->comment_notify;
+ $args->mention_notify = $obj->mention_notify;
+ $args->message_notify = $obj->message_notify;
+
+ if(!$output)
+ {
+ $outputs = executeQuery('ncenterlite.insertUserConfig', $args);
+ }
+ else
+ {
+ $outputs = executeQuery('ncenterlite.updateUserConfig', $args);
+ }
+
+ $this->setMessage('success_updated');
+
+ if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON')))
+ {
+ $returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'act', 'dispNcenterliteUserConfig','member_srl',$member_srl);
+ header('location: ' . $returnUrl);
+ return;
+ }
+ }
+
+ function triggerAfterDeleteMember($obj)
+ {
+ $oNcenterliteModel = getModel('ncenterlite');
+ $config = $oNcenterliteModel->getConfig();
+
+ $member_srl = $obj->member_srl;
+ if(!$member_srl) return new Object();
+
+ $args = new stdClass();
+ $args->member_srl = $member_srl;
+ $output = executeQuery('ncenterlite.deleteNotifyByMemberSrl', $args);
+ if(!$output->toBool())
+ {
+ return $output;
+ }
+ return new Object();
+ }
+
+ function triggerAfterInsertDocument(&$obj)
+ {
+ $oModuleModel = getModel('module');
+
+ if($this->_isDisable()) return;
+
+ $oNcenterliteModel = getModel('ncenterlite');
+ $config = $oNcenterliteModel->getConfig();
+ if($config->use != 'Y') return new Object();
+
+ $content = strip_tags($obj->title . ' ' . $obj->content);
+
+ $mention_targets = $this->_getMentionTarget($content);
+ if(!$mention_targets || !count($mention_targets)) return new Object();
+
+ $oDocumentModel = getModel('document');
+ $document_srl = $obj->document_srl;
+ $oDocument = $oDocumentModel->getDocument($document_srl);
+ $module_info = $oModuleModel->getModuleInfoByDocumentSrl($document_srl);
+
+ $is_anonymous = $this->_isAnonymous($this->_TYPE_DOCUMENT, $obj);
+ // 맨션 알림일경우 맨션알림 시작.
+ if($mention_targets)
+ {
+ // !TODO 공용 메소드로 분리
+ foreach($mention_targets as $mention_member_srl)
+ {
+ $target_member_config = $oNcenterliteModel->getMemberConfig($mention_member_srl);
+ $notify_member_config = $target_member_config->data;
+
+ if($notify_member_config->mention_notify == 'N')
+ {
+ continue;
+ }
+
+ $args = new stdClass();
+ $args->member_srl = $mention_member_srl;
+ $args->srl = $obj->document_srl;
+ $args->target_p_srl = $obj->document_srl;
+ $args->target_srl = $obj->document_srl;
+ $args->type = $this->_TYPE_DOCUMENT;
+ $args->target_type = $this->_TYPE_MENTION;
+ $args->target_url = getNotEncodedFullUrl('', 'document_srl', $obj->document_srl);
+ $args->target_summary = cut_str(strip_tags($obj->title), 50);
+ $args->target_nick_name = $obj->nick_name;
+ $args->target_email_address = $obj->email_address;
+ $args->regdate = date('YmdHis');
+ $args->target_browser = $module_info->browser_title;
+ $args->notify = $this->_getNotifyId($args);
+ $output = $this->_insertNotify($args, $is_anonymous);
+ }
+ }
+
+ return new Object();
+ }
+
+ function triggerAfterInsertComment(&$obj)
+ {
+ if($this->_isDisable()) return;
+
+ $oNcenterliteModel = getModel('ncenterlite');
+ $config = $oNcenterliteModel->getConfig();
+ if($config->use != 'Y') return new Object();
+
+ $logged_info = Context::get('logged_info');
+ $notify_member_srl = array();
+
+ $document_srl = $obj->document_srl;
+ $oModuleModel = getModel('module');
+ $module_info = $oModuleModel->getModuleInfoByDocumentSrl($document_srl);
+ $comment_srl = $obj->comment_srl;
+ $parent_srl = $obj->parent_srl;
+ $content = $obj->content;
+ $regdate = $obj->regdate;
+
+ // 익명 노티 체크
+ $is_anonymous = $this->_isAnonymous($this->_TYPE_COMMENT, $obj);
+
+ // 멘션
+ $mention_targets = $this->_getMentionTarget(strip_tags($obj->content));
+ // !TODO 공용 메소드로 분리
+ foreach($mention_targets as $mention_member_srl)
+ {
+ $target_member_config = $oNcenterliteModel->getMemberConfig($mention_member_srl);
+ $notify_member_config = $target_member_config->data;
+ if($notify_member_config->mention_notify == 'N')
+ {
+ continue;
+ }
+
+ $args = new stdClass();
+ $args->member_srl = $mention_member_srl;
+ $args->target_p_srl = $obj->comment_srl;
+ $args->srl = $obj->document_srl;
+ $args->target_srl = $obj->comment_srl;
+ $args->type = $this->_TYPE_COMMENT;
+ $args->target_type = $this->_TYPE_MENTION;
+ $args->target_url = getNotEncodedFullUrl('', 'document_srl', $document_srl, '_comment_srl', $comment_srl) . '#comment_'. $comment_srl;
+ $args->target_summary = cut_str(strip_tags($content), 50);
+ $args->target_nick_name = $obj->nick_name;
+ $args->target_email_address = $obj->email_address;
+ $args->regdate = date('YmdHis');
+ $args->target_browser = $module_info->browser_title;
+ $args->notify = $this->_getNotifyId($args);
+ $output = $this->_insertNotify($args, $is_anonymous);
+ $notify_member_srl[] = $mention_member_srl;
+ }
+
+ $admin_list = $oNcenterliteModel->getMemberAdmins();
+ $admins_list = $admin_list->data;
+
+ foreach($admins_list as $admins)
+ {
+ if(is_array($config->admin_comment_module_srls) && in_array($module_info->module_srl, $config->admin_comment_module_srls))
+ {
+ $args = new stdClass();
+ $args->member_srl = $admins->member_srl;
+ $args->target_p_srl = $obj->comment_srl;
+ $args->srl = $obj->document_srl;
+ $args->target_srl = $obj->comment_srl;
+ $args->type = $this->_TYPE_COMMENT;
+ $args->target_type = $this->_TYPE_ADMIN_COMMENT;
+ $args->target_url = getNotEncodedFullUrl('', 'document_srl', $document_srl, '_comment_srl', $comment_srl) . '#comment_'. $comment_srl;
+ $args->target_summary = cut_str(strip_tags($content), 50);
+ $args->target_nick_name = $obj->nick_name;
+ $args->target_email_address = $obj->email_address;
+ $args->regdate = date('YmdHis');
+ $args->target_browser = $module_info->browser_title;
+ $args->notify = $this->_getNotifyId($args);
+ $output = $this->_insertNotify($args, $is_anonymous);
+ }
+ }
+ // 대댓글
+ if($parent_srl)
+ {
+ $oCommentModel = getModel('comment');
+ $oComment = $oCommentModel->getComment($parent_srl);
+ $member_srl = $oComment->member_srl;
+ $comment_member_config = $oNcenterliteModel->getMemberConfig($member_srl);
+ $parent_member_config = $comment_member_config->data;
+
+ // !TODO 공용 메소드로 분리
+ if(!in_array(abs($member_srl), $notify_member_srl) && (!$logged_info || ($member_srl != 0 && abs($member_srl) != $logged_info->member_srl)) && $parent_member_config->comment_notify != 'N')
+ {
+ $args = new stdClass();
+ $args->member_srl = abs($member_srl);
+ $args->srl = $obj->document_srl;
+ $args->target_p_srl = $parent_srl;
+ $args->target_srl = $obj->comment_srl;
+ $args->type = $this->_TYPE_COMMENT;
+ $args->target_type = $this->_TYPE_COMMENT;
+ $args->target_url = getNotEncodedFullUrl('', 'document_srl', $document_srl, '_comment_srl', $comment_srl) . '#comment_'. $comment_srl;
+ $args->target_summary = cut_str(strip_tags($content), 50);
+ $args->target_nick_name = $obj->nick_name;
+ $args->target_email_address = $obj->email_address;
+ $args->regdate = $regdate;
+ $args->target_browser = $module_info->browser_title;
+ $args->notify = $this->_getNotifyId($args);
+ $output = $this->_insertNotify($args, $is_anonymous);
+ $notify_member_srl[] = abs($member_srl);
+ }
+ }
+ // 대댓글이 아니고, 게시글의 댓글을 남길 경우
+ if(!$parent_srl || ($parent_srl && $config->document_notify == 'all-comment'))
+ {
+ $oDocumentModel = getModel('document');
+ $oDocument = $oDocumentModel->getDocument($document_srl);
+
+ $member_srl = $oDocument->get('member_srl');
+ $comment_member_config = $oNcenterliteModel->getMemberConfig($member_srl);
+ $document_comment_member_config = $comment_member_config->data;
+
+ // !TODO 공용 메소드로 분리
+ if(!in_array(abs($member_srl), $notify_member_srl) && (!$logged_info || ($member_srl != 0 && abs($member_srl) != $logged_info->member_srl)) && $document_comment_member_config->comment_notify != 'N')
+ {
+ $args = new stdClass();
+ $args->member_srl = abs($member_srl);
+ $args->srl = $document_srl;
+ $args->target_p_srl = $comment_srl;
+ $args->target_srl = $comment_srl;
+ $args->type = $this->_TYPE_DOCUMENT;
+ $args->target_type = $this->_TYPE_COMMENT;
+ $args->target_url = getNotEncodedFullUrl('', 'document_srl', $document_srl, '_comment_srl', $comment_srl) . '#comment_'. $comment_srl;
+ $args->target_summary = cut_str(strip_tags($content), 50);
+ $args->target_nick_name = $obj->nick_name;
+ $args->target_email_address = $obj->email_address;
+ $args->regdate = $regdate;
+ $args->target_browser = $module_info->browser_title;
+ $args->notify = $this->_getNotifyId($args);
+ $output = $this->_insertNotify($args, $is_anonymous);
+ }
+ }
+
+ return new Object();
+ }
+
+ function triggerBeforeModuleObjectProc(&$oModule)
+ {
+ if(version_compare(__XE_VERSION__, '1.7.4', '>='))
+ {
+ return new Object();
+ }
+ $oNcenterliteModel = getModel('ncenterlite');
+ $config = $oNcenterliteModel->getConfig();
+ if($config->use != 'Y') return new Object();
+
+ $vars = Context::getRequestVars();
+ $logged_info = Context::get('logged_info');
+
+ $messages_member_config = $oNcenterliteModel->getMemberConfig($logged_info->member_srl);
+ $message_member_config = $messages_member_config->data;
+
+ // 쪽지 체크 및 유저 쪽지 알림 채크
+ if($config->message_notify == 'Y' && $message_member_config->message_notify != 'N')
+ {
+ $flag_path = './files/ncenterlite/new_message_flags/';
+
+ $need_update = false;
+ // 쪽지 알림 메시지 체크
+ if(strpos(Context::getHtmlFooter(), 'xeNotifyMessage') !== FALSE)
+ {
+ $need_update = true;
+ }
+ // 메시지 플래그 파일 체크
+ else if(file_exists($flag_path . $logged_info->member_srl))
+ {
+ $need_update = true;
+ }
+
+ if($oModule->act == 'procCommunicationSendMessage')
+ {
+ FileHandler::makeDir($flag_path);
+ $flag_file = sprintf('%s%s', $flag_path, $vars->receiver_srl);
+ FileHandler::writeFile($flag_file, $vars->receiver_srl);
+ }
+ else if($need_update)
+ {
+ $oMemberModel = getModel('member');
+ $_sender_member_srl = trim(FileHandler::readFile($flag_path . $logged_info->member_srl));
+ $sender_member_info = $oMemberModel->getMemberInfoByMemberSrl($_sender_member_srl);
+ FileHandler::removeFile($flag_path . $logged_info->member_srl);
+
+ // 새 쪽지 수
+ $args = new stdClass();
+ $args->receiver_srl = $logged_info->member_srl;
+ $output = executeQuery('ncenterlite.getCountNewMessage', $args);
+ $message_count = $output->data->count;
+
+ // 기존 쪽지 알림을 읽은 것으로 변경
+ $cond = new stdClass();
+ $cond->type = $this->_TYPE_MESSAGE;
+ $cond->member_srl = $logged_info->member_srl;
+ $output = executeQuery('ncenterlite.updateNotifyReadedByType', $cond);
+
+ if(!$message_count) return;
+
+ // 알림 추가
+ $args = new stdClass();
+ $args->member_srl = $logged_info->member_srl;
+ $args->srl = $sender_member_info->member_srl;
+ if(!$args->srl) $args->srl = 0;
+ $args->target_p_srl = 1;
+ $args->target_srl = $sender_member_info->member_srl;
+ if(!$args->srl) $args->target_srl = 0;
+ $args->type = $this->_TYPE_MESSAGE;
+ $args->target_type = $this->_TYPE_MESSAGE;
+ $args->target_url_params = $target_url_params;
+ $args->target_summary = $message_count;
+ $args->target_nick_name = $sender_member_info->nick_name;
+ $args->target_member_srl = $sender_member_info->member_srl;
+ $args->regdate = date('YmdHis');
+ $args->notify = $this->_getNotifyId($args);
+ $args->target_url = getNotEncodedFullUrl('', 'act', 'dispCommunicationMessages');
+
+ $output = $this->_insertNotify($args);
+ }
+ }
+ }
+
+ function triggerAfterSendMessage(&$trigger_obj)
+ {
+ $oNcenterliteModel = getModel('ncenterlite');
+ $config = $oNcenterliteModel->getConfig();
+ if($config->use != 'Y') return new Object();
+ if($config->message_notify == 'N')
+ {
+ return new Object();
+ }
+ $messages_member_config = $oNcenterliteModel->getMemberConfig($trigger_obj->receiver_srl);
+ $message_member_config = $messages_member_config->data;
+
+ if(version_compare(__XE_VERSION__, '1.8', '>=') && $message_member_config->message_notify != 'N')
+ {
+ $args = new stdClass();
+ $args->member_srl = $trigger_obj->receiver_srl;
+ $args->srl = $trigger_obj->related_srl;
+ $args->target_p_srl = '1';
+ $args->target_srl = $trigger_obj->message_srl;
+ $args->type = $this->_TYPE_MESSAGE;
+ $args->target_type = $this->_TYPE_MESSAGE;
+ $args->target_summary = $trigger_obj->title;
+ $args->regdate = date('YmdHis');
+ $args->notify = $this->_getNotifyId($args);
+ $args->target_url = getNotEncodedFullUrl('', 'act', 'dispCommunicationMessages', 'message_srl', $trigger_obj->related_srl);
+ $output = $this->_insertNotify($args);
+ }
+ elseif($message_member_config->message_notify != 'N')
+ {
+ $args = new stdClass();
+ $args->member_srl = $trigger_obj->receiver_srl;
+ $args->srl = $trigger_obj->receiver_srl;
+ $args->target_p_srl = '1';
+ $args->target_srl = $trigger_obj->sender_srl;
+ $args->type = $this->_TYPE_MESSAGE;
+ $args->target_type = $this->_TYPE_MESSAGE;
+ $args->target_summary = $trigger_obj->title;
+ $args->regdate = date('YmdHis');
+ $args->notify = $this->_getNotifyId($args);
+ $args->target_url = getNotEncodedFullUrl('', 'act', 'dispCommunicationMessages');
+ $output = $this->_insertNotify($args);
+ }
+
+ }
+
+ function triggerAfterVotedupdate(&$obj)
+ {
+ $oDocumentModel = getModel('document');
+ $oDocument = $oDocumentModel->getDocument($obj->document_srl, false, false);
+
+ $oNcenterliteModel = getModel('ncenterlite');
+ $config = $oNcenterliteModel->getConfig();
+ if($config->use != 'Y') return new Object();
+ if($config->voted_format != 'Y') return new Object();
+ if($obj->point < 0) return new Object();
+
+ $args = new stdClass();
+ $args->member_srl = $obj->member_srl;
+ $args->srl = $obj->document_srl;
+ $args->target_p_srl = '1';
+ $args->target_srl = $obj->document_srl;
+ $args->type = $this->_TYPE_DOCUMENT;
+ $args->target_type = $this->_TYPE_VOTED;
+ $args->target_summary = $oDocument->get('title');
+ $args->regdate = date('YmdHis');
+ $args->notify = $this->_getNotifyId($args);
+ $args->target_url = getNotEncodedFullUrl('', 'document_srl', $obj->document_srl);
+ $output = $this->_insertNotify($args, $is_anonymous);
+ }
+
+ function triggerAfterDeleteComment(&$obj)
+ {
+ $oNcenterliteModel = getModel('ncenterlite');
+ $config = $oNcenterliteModel->getConfig();
+ if($config->use != 'Y') return new Object();
+
+ $args = new stdClass();
+ $args->srl = $obj->comment_srl;
+ $output = executeQuery('ncenterlite.deleteNotifyBySrl', $args);
+ return new Object();
+ }
+
+ function triggerAfterDeleteDocument(&$obj)
+ {
+ $oNcenterliteModel = getModel('ncenterlite');
+ $config = $oNcenterliteModel->getConfig();
+ if($config->use != 'Y') return new Object();
+
+ $args = new stdClass();
+ $args->srl = $obj->document_srl;
+ $output = executeQuery('ncenterlite.deleteNotifyBySrl', $args);
+ return new Object();
+ }
+
+ function triggerAfterModuleHandlerProc(&$oModule)
+ {
+ $vars = Context::getRequestVars();
+ $logged_info = Context::get('logged_info');
+ $args = new stdClass();
+
+ if($oModule->getLayoutFile() == 'popup_layout.html') Context::set('ncenterlite_is_popup', TRUE);
+
+ $oNcenterliteModel = getModel('ncenterlite');
+ $config = $oNcenterliteModel->getConfig();
+ if($config->use != 'Y') return new Object();
+
+ $this->_hide_ncenterlite = false;
+ if($oModule->module == 'beluxe' && Context::get('is_modal'))
+ {
+ $this->_hide_ncenterlite = true;
+ }
+ if($oModule->module == 'bodex' && Context::get('is_iframe'))
+ {
+ $this->_hide_ncenterlite = true;
+ }
+ if($oModule->getLayoutFile() == 'popup_layout.html')
+ {
+ $this->_hide_ncenterlite = true;
+ }
+
+ if($oModule->act == 'dispBoardReplyComment')
+ {
+ $comment_srl = Context::get('comment_srl');
+ $logged_info = Context::get('logged_info');
+ if($comment_srl && $logged_info)
+ {
+ $args->target_srl = $comment_srl;
+ $args->member_srl = $logged_info->member_srl;
+ $output_update = executeQuery('ncenterlite.updateNotifyReadedByTargetSrl', $args);
+ }
+ }
+ else if($oModule->act == 'dispBoardContent')
+ {
+ $comment_srl = Context::get('_comment_srl');
+ $document_srl = Context::get('document_srl');
+ $oDocument = Context::get('oDocument');
+ $logged_info = Context::get('logged_info');
+
+ if($document_srl && $logged_info && $config->document_read=='Y')
+ {
+ $args->srl = $document_srl;
+ $args->member_srl = $logged_info->member_srl;
+ $outputs = executeQuery('ncenterlite.updateNotifyReadedBySrl', $args);
+ }
+
+ if($comment_srl && $document_srl && $oDocument)
+ {
+ $_comment_list = $oDocument->getComments();
+ if($_comment_list)
+ {
+ if(array_key_exists($comment_srl, $_comment_list))
+ {
+ $url = getNotEncodedUrl('_comment_srl','') . '#comment_' . $comment_srl;
+ $need_check_socialxe = true;
+ }
+ else
+ {
+ $cpage = $oDocument->comment_page_navigation->cur_page;
+ if($cpage > 1)
+ {
+ $url = getNotEncodedUrl('cpage', $cpage-1) . '#comment_' . $comment_srl;
+ $need_check_socialxe = true;
+ }
+ else
+ {
+ $url = getNotEncodedUrl('_comment_srl', '', 'cpage', '') . '#comment_' . $comment_srl;
+ }
+ }
+
+ if($need_check_socialxe)
+ {
+ $oDB = &DB::getInstance();
+ if($oDB->isTableExists('socialxe'))
+ {
+ $args = new stdClass();
+ $oModuleModel = getModel('module');
+ $module_info = $oModuleModel->getModuleInfoByDocumentSrl($document_srl);
+ $args->module_srl = $module_info->module_srl;
+ $output = executeQuery('ncenterlite.getSocialxeCount', $args);
+ if($output->data->cnt)
+ {
+ $socialxe_comment_srl = $comment_srl;
+
+ $args = new stdClass();
+ $args->comment_srl = $comment_srl;
+ $oCommentModel = getModel('comment');
+ $oComment = $oCommentModel->getComment($comment_srl);
+ $parent_srl = $oComment->get('parent_srl');
+ if($parent_srl)
+ {
+ $socialxe_comment_srl = $parent_srl;
+ }
+
+ $url = getNotEncodedUrl('_comment_srl', '', 'cpage', '', 'comment_srl', $socialxe_comment_srl) . '#comment_' . $comment_srl;
+ }
+ }
+ }
+
+ $url = str_replace('&','&',$url);
+ header('location: ' . $url);
+ Context::close();
+ exit;
+ }
+ }
+ }
+ elseif($oModule->act == 'dispCommunicationMessages')
+ {
+ $message_srl = Context::get('message_srl');
+ $logged_info = Context::get('logged_info');
+ if($message_srl)
+ {
+ $args = new stdClass();
+ $args->target_srl = $message_srl;
+ $args->member_srl = $logged_info->member_srl;
+ executeQuery('ncenterlite.updateNotifyReadedByTargetSrl', $args);
+ }
+ }
+
+ // 지식인 모듈의 의견
+ // TODO: 코드 분리
+ if($oModule->act == 'procKinInsertComment')
+ {
+ // 글, 댓글 구분
+ $parent_type = ($vars->document_srl == $vars->parent_srl) ? 'DOCUMENT' : 'COMMENT';
+ if($parent_type == 'DOCUMENT')
+ {
+ $oDocumentModel = getModel('document');
+ $oDocument = $oDocumentModel->getDocument($vars->document_srl);
+ $member_srl = $oDocument->get('member_srl');
+ $type = $this->_TYPE_DOCUMENT;
+ }
+ else
+ {
+ $oCommentModel = getModel('comment');
+ $oComment = $oCommentModel->getComment($vars->parent_srl);
+ $member_srl = $oComment->get('member_srl');
+ $type = $this->_TYPE_COMMENT;
+ }
+
+ if($logged_info->member_srl != $member_srl)
+ {
+ $args = new stdClass();
+ $args->member_srl = abs($member_srl);
+ $args->srl = ($parent_type == 'DOCUMENT') ? $vars->document_srl : $vars->parent_srl;
+ $args->type = $type;
+ $args->target_type = $this->_TYPE_COMMENT;
+ $args->target_srl = $vars->parent_srl;
+ $args->target_p_srl = '1';
+ $args->target_url = getNotEncodedFullUrl('', 'document_srl', $vars->document_srl, '_comment_srl', $vars->parent_srl) . '#comment_'. $vars->parent_srl;
+ $args->target_summary = cut_str(strip_tags($vars->content), 50);
+ $args->target_nick_name = $logged_info->nick_name;
+ $args->target_email_address = $logged_info->email_address;
+ $args->regdate = date('YmdHis');
+ $args->notify = $this->_getNotifyId($args);
+ $output = $this->_insertNotify($args);
+ }
+ }
+ else if($oModule->act == 'dispKinView' || $oModule->act == 'dispKinIndex')
+ {
+ // 글을 볼 때 알림 제거
+ $oDocumentModel = getModel('document');
+ $oDocument = $oDocumentModel->getDocument($vars->document_srl);
+ $member_srl = $oDocument->get('member_srl');
+
+ if($logged_info->member_srl == $member_srl)
+ {
+ $args = new stdClass;
+ $args->member_srl = $logged_info->member_srl;
+ $args->srl = $vars->document_srl;
+ $args->type = $this->_TYPE_DOCUMENT;
+ $output = executeQuery('ncenterlite.updateNotifyReadedBySrl', $args);
+ }
+ }
+ else if($oModule->act == 'getKinComments')
+ {
+ // 의견을 펼칠 때 알림 제거
+ $args = new stdClass;
+ $args->member_srl = $logged_info->member_srl;
+ $args->target_srl = $vars->parent_srl;
+ $output = executeQuery('ncenterlite.updateNotifyReadedByTargetSrl', $args);
+ }
+
+ return new Object();
+ }
+
+ function triggerBeforeDisplay(&$output_display)
+ {
+ $act = Context::get('act');
+ // 팝업창이면 중지
+ if(Context::get('ncenterlite_is_popup')) return;
+
+ // 자신의 알림목록을 보고 있을 경우엔 알림센터창을 띄우지 않는다.
+ if($act == 'dispNcenterliteNotifyList') return;
+
+ if(count($this->disable_notify_bar_act))
+ {
+ if(in_array(Context::get('act'), $this->disable_notify_bar_act)) return;
+ }
+
+ // HTML 모드가 아니면 중지 + act에 admin이 포함되어 있으면 중지
+ if(Context::getResponseMethod() != 'HTML' || strpos(strtolower(Context::get('act')), 'admin') !== false) return;
+
+ $logged_info = Context::get('logged_info');
+
+ // 로그인 상태가 아니면 중지
+ if(!$logged_info) return;
+
+ $module_info = Context::get('module_info');
+
+ if(count($this->disable_notify_bar_mid))
+ {
+ if(in_array($module_info->mid, $this->disable_notify_bar_mid)) return;
+ }
+
+ // admin 모듈이면 중지
+ if($module_info->module == 'admin' ) return;
+
+ $oNcenterliteModel = getModel('ncenterlite');
+ $config = $oNcenterliteModel->getConfig();
+
+ // 알림센터가 비활성화 되어 있으면 중지
+ if($config->use != 'Y') return new Object();
+ if($config->display_use == 'N') return new Object();
+
+ // 노티바 제외 페이지이면 중지
+ if(in_array($module_info->module_srl, $config->hide_module_srls)) return new Object();
+
+ Context::set('ncenterlite_config', $config);
+
+ $oModuleModel = getModel('module');
+ $ncenterlite_module_info = $oModuleModel->getModuleInfoXml('ncenterlite');
+ $jsCacheRefresh = '?'.$ncenterlite_module_info->version.'.'.$ncenterlite_module_info->date.'.js';
+ Context::addJsFile('./modules/ncenterlite/tpl/js/ncenterlite.js'.$jsCacheRefresh, true, '', 100000);
+
+
+ $oNcenterliteModel = getModel('ncenterlite');
+
+ // 알림 목록 가져오기
+ $_output = $oNcenterliteModel->getMyNotifyList();
+ if(!$_output->data) return; // 알림 메시지가 없어도 항상 표시하게 하려면 이 줄을 제거 또는 주석 처리하세요.
+
+ $_latest_notify_id = array_slice($_output->data, 0, 1);
+ $_latest_notify_id = $_latest_notify_id[0]->notify;
+ Context::set('ncenterlite_latest_notify_id', $_latest_notify_id);
+
+ if($_COOKIE['_ncenterlite_hide_id'] && $_COOKIE['_ncenterlite_hide_id'] == $_latest_notify_id) return;
+ setcookie('_ncenterlite_hide_id', '', 0, '/');
+
+ $oMemberModel = getModel('member');
+ $memberConfig = $oMemberModel->getMemberConfig();
+ if($memberConfig->profile_image == 'Y')
+ {
+ $profileImage = $oMemberModel->getProfileImage($logged_info->member_srl);
+ Context::set('profileImage', $profileImage);
+ }
+ Context::set('useProfileImage', ($memberConfig->profile_image == 'Y') ? true : false);
+
+ Context::set('ncenterlite_list', $_output->data);
+ Context::set('ncenterlite_page_navigation', $_output->page_navigation);
+
+ if(Mobile::isFromMobilePhone())
+ {
+ $this->template_path = sprintf('%sm.skins/%s/', $this->module_path, $config->mskin);
+ if(!is_dir($this->template_path)||!$config->mskin)
+ {
+ $config->mskin = 'default';
+ $this->template_path = sprintf('%sm.skins/%s/',$this->module_path, $config->mskin);
+ }
+ }
+ else
+ {
+ $this->template_path = sprintf('%sskins/%s/', $this->module_path, $config->skin);
+ if(!is_dir($this->template_path)||!$config->skin)
+ {
+ $config->skin = 'default';
+ $this->template_path = sprintf('%sskins/%s/',$this->module_path, $config->skin);
+ }
+ }
+
+ Context::addHtmlFooter('');
+
+ $this->_addFile();
+ $html = $this->_getTemplate();
+ $output_display = $html . $output_display;
+ }
+
+ function triggerAddMemberMenu()
+ {
+ $oNcenterliteModel = getModel('ncenterlite');
+ $config = $oNcenterliteModel->getConfig();
+
+ if($config->user_config_list == 'Y')
+ {
+ $logged_info = Context::get('logged_info');
+ if(!Context::get('is_logged')) return new Object();
+ $target_srl = Context::get('target_srl');
+
+ $oMemberController = getController('member');
+ $oMemberController->addMemberMenu('dispNcenterliteNotifyList', 'ncenterlite_my_list');
+ $oMemberController->addMemberMenu('dispNcenterliteUserConfig', 'ncenterlite_my_settings');
+
+ if($logged_info->is_admin== 'Y')
+ {
+ $url = getUrl('','act','dispNcenterliteUserConfig','member_srl',$target_srl);
+ $str = Context::getLang('ncenterlite_user_settings');
+ $oMemberController->addMemberPopupMenu($url, $str, '');
+ }
+ }
+
+ return new Object();
+ }
+
+ function _addFile()
+ {
+ $oModuleModel = getModel('module');
+ $module_info = $oModuleModel->getModuleInfoXml('ncenterlite');
+ if(file_exists(FileHandler::getRealPath($this->template_path . 'ncenterlite.css')))
+ {
+ Context::addCssFile($this->template_path . 'ncenterlite.css', true, 'all', '', 100);
+ }
+
+ $oNcenterliteModel = getModel('ncenterlite');
+ $config = $oNcenterliteModel->getConfig();
+ if(!Mobile::isFromMobilePhone())
+ {
+ if($config->colorset && file_exists(FileHandler::getRealPath($this->template_path . 'ncenterlite.' . $config->colorset . '.css')))
+ {
+ Context::addCssFile($this->template_path . 'ncenterlite.'.$config->colorset.'.css', true, 'all', '', 100);
+ }
+ }
+ elseif(Mobile::isFromMobilePhone())
+ {
+ if($config->mcolorset && file_exists(FileHandler::getRealPath($this->template_path . 'ncenterlite.' . $config->mcolorset . '.css')))
+ {
+ Context::addCssFile($this->template_path . 'ncenterlite.'.$config->mcolorset.'.css', true, 'all', '', 100);
+ }
+
+ Context::loadFile(array('./common/js/jquery.min.js', 'head', '', -100000), true);
+ Context::loadFile(array('./common/js/xe.min.js', 'head', '', -100000), true);
+ Context::addCssFile($this->template_path . 'ncenterlite.mobile.css', true, 'all', '', 100);
+ }
+ if($config->zindex)
+ {
+ Context::set('ncenterlite_zindex', ' style="z-index:' . $config->zindex . ';" ');
+ }
+ }
+
+ function _getTemplate()
+ {
+ $oNcenterModel = getModel('ncenterlite');
+ $config = $oNcenterModel->getConfig();
+
+ $oTemplateHandler = TemplateHandler::getInstance();
+ $result = '';
+
+ if(Mobile::isFromMobilePhone())
+ {
+ $path = sprintf('%sm.skins/%s/', $this->module_path, $config->mskin);
+ }
+ else
+ {
+ $path = sprintf('%sskins/%s/', $this->module_path, $config->skin);
+ }
+ $result = $oTemplateHandler->compile($path, 'ncenterlite.html');
+
+ return $result;
+ }
+
+ function updateNotifyRead($notify, $member_srl)
+ {
+ $args = new stdClass();
+ $args->member_srl = $member_srl;
+ $args->notify = $notify;
+ $output = executeQuery('ncenterlite.updateNotifyReaded', $args);
+ //$output = executeQuery('ncenterlite.deleteNotify', $args);
+
+ return $output;
+ }
+
+ function updateNotifyReadiByTargetSrl($target_srl, $member_srl)
+ {
+ $args = new stdClass();
+ $args->member_srl = $member_srl;
+ $args->target_srl = $target_srl;
+ $output = executeQuery('ncenterlite.updateNotifyReadedByTargetSrl', $args);
+ //$output = executeQuery('ncenterlite.deleteNotifyByTargetSrl', $args);
+
+ return $output;
+ }
+
+ function updateNotifyReadAll($member_srl)
+ {
+ $args = new stdClass();
+ $args->member_srl = $member_srl;
+ $output = executeQuery('ncenterlite.updateNotifyReadedAll', $args);
+ //$output = executeQuery('ncenterlite.deleteNotifyByMemberSrl', $args);
+
+ return $ouptut;
+ }
+
+ function procNcenterliteNotifyRead()
+ {
+ $logged_info = Context::get('logged_info');
+ $target_srl = Context::get('target_srl');
+ if(!$logged_info || !$target_srl) return new Object(-1, 'msg_invalid_request');
+
+ $output = $this->updateNotifyRead($notify, $logged_info->member_srl);
+ return $output;
+ }
+
+ function procNcenterliteNotifyReadAll()
+ {
+ $logged_info = Context::get('logged_info');
+ if(!$logged_info) return new Object(-1, 'msg_invalid_request');
+
+ $output = $this->updateNotifyReadAll($logged_info->member_srl);
+ return $output;
+ }
+
+ function procNcenterliteRedirect()
+ {
+ $logged_info = Context::get('logged_info');
+ $url = Context::get('url');
+ $notify = Context::get('notify');
+ if(!$logged_info || !$url || !$notify) return new Object(-1, 'msg_invalid_request');
+
+ $output = $this->updateNotifyRead($notify, $logged_info->member_srl);
+ if(!$output->toBool()) return $output;
+
+ $url = str_replace('&', '&', $url);
+ header('Location: ' . $url, TRUE, 302);
+ Context::close();
+ exit;
+ }
+
+ /**
+ * @brief 익명으로 노티해야 할지 체크하여 반환
+ * @return boolean
+ **/
+ function _isAnonymous($source_type, $triggerObj)
+ {
+ // 회원번호가 음수
+ if($triggerObj->member_srl < 0) return TRUE;
+
+ $module_info = Context::get('module_info');
+
+ // DX 익명 체크박스
+ if($module_info->module == 'beluxe' && $triggerObj->anonymous == 'Y') return TRUE;
+
+ if($source_type == $this->_TYPE_COMMENT)
+ {
+ // DX 익명 강제
+ if($module_info->module == 'beluxe' && $module_info->use_anonymous == 'Y') return TRUE;
+ }
+
+ if($source_type == $this->_TYPE_DOCUMENT)
+ {
+ // DX 익명 강제
+ if($module_info->module == 'beluxe' && $module_info->use_anonymous == 'Y') return TRUE;
+ }
+
+ return FALSE;
+ }
+
+ function _insertNotify($args, $anonymous = FALSE)
+ {
+ $oNcenterliteModel = getModel('ncenterlite');
+ $config = $oNcenterliteModel->getConfig();
+ // 비회원 노티 제거
+ if($args->member_srl <= 0) return new Object();
+
+ $logged_info = Context::get('logged_info');
+
+ if($anonymous == TRUE)
+ {
+ // 설정에서 익명 이름이 설정되어 있으면 익명 이름을 설정함. 없을 경우 Anonymous 를 사용한다.
+ if(!$config->anonymous_name)
+ {
+ $anonymous_name = 'Anonymous';
+ }
+ else
+ {
+ $anonymous_name = $config->anonymous_name;
+ }
+ // 익명 노티 시 회원정보 제거
+ $args->target_member_srl = 0;
+ $args->target_nick_name = $anonymous_name;
+ $args->target_user_id = $anonymous_name;
+ $args->target_email_address = $anonymous_name;
+ }
+ else if($logged_info)
+ {
+ // 익명 노티가 아닐 때 로그인 세션의 회원정보 넣기
+ $args->target_member_srl = $logged_info->member_srl;
+ $args->target_nick_name = $logged_info->nick_name;
+ $args->target_user_id = $logged_info->user_id;
+ $args->target_email_address = $logged_info->email_address;
+ }
+ else if($args->target_member_srl)
+ {
+ $oMemberModel = getModel('member');
+ $member_info = $oMemberModel->getMemberInfoByMemberSrl($args->target_member_srl);
+ $args->target_member_srl = $member_info->member_srl;
+ $args->target_nick_name = $member_info->nick_name;
+ $args->target_user_id = $member_info->user_id;
+ $args->target_email_address = $member_info->email_address;
+ }
+ else
+ {
+ // 비회원
+ $args->target_member_srl = 0;
+ $args->target_user_id = '';
+ }
+
+ $output = executeQuery('ncenterlite.insertNotify', $args);
+ if(!$output->toBool())
+ {
+ return $output;
+ }
+
+ if($output->toBool())
+ {
+ $trigger_notify = ModuleHandler::triggerCall('ncenterlite._insertNotify', 'after', $args);
+ if(!$trigger_notify->toBool())
+ {
+ return $trigger_notify;
+ }
+ }
+
+ return $output;
+ }
+
+ /**
+ * @brief 노티 ID 반환
+ **/
+ function _getNotifyId($args)
+ {
+ return md5(uniqid('') . $args->member_srl . $args->srl . $args->target_srl . $args->type . $args->target_type);
+ }
+
+ /**
+ * @brief 멘션 대상 member_srl 목록 반환
+ * @return array
+ **/
+ function _getMentionTarget($content)
+ {
+ $oNcenterliteModel = getModel('ncenterlite');
+ $config = $oNcenterliteModel->getConfig();
+ $logged_info = Context::get('logged_info');
+
+ $list = array();
+
+ $content = strip_tags($content);
+ $content = str_replace(' ', ' ', $content);
+
+ // 정규표현식 정리
+ $split = array();
+ if(in_array('comma', $config->mention_format)) $split[] = ',';
+ $regx = join('', array('/(^|\s)@([^@\s', join('', $split), ']+)/i'));
+
+ preg_match_all($regx, $content, $matches);
+
+ // '님'문자 이후 제거
+ if(in_array('respect', $config->mention_format))
+ {
+ foreach($matches[2] as $idx => $item)
+ {
+ $pos = strpos($item, '님');
+ if($pos !== false && $pos > 0)
+ {
+ $matches[2][$idx] = trim(substr($item, 0, $pos));
+ if($logged_info && $logged_info->nick_name == $matches[2][$idx]) unset($matches[2][$idx]);
+ }
+ }
+ }
+
+ $nicks = array_unique($matches[2]);
+
+ $oMemberModel = getModel('member');
+ $member_config = $oMemberModel->getMemberConfig();
+
+ if($config->mention_names == 'id' && $member_config->identifier != 'email_address')
+ {
+ foreach($nicks as $user_id)
+ {
+ $vars = new stdClass();
+ $vars->user_id = $user_id;
+ $output = executeQuery('ncenterlite.getMemberSrlById', $vars);
+ if($output->data && $output->data->member_srl) $list[] = $output->data->member_srl;
+ }
+ }
+ else
+ {
+ foreach($nicks as $nick_name)
+ {
+ $vars = new stdClass();
+ $vars->nick_name = $nick_name;
+ $output = executeQuery('ncenterlite.getMemberSrlByNickName', $vars);
+ if($output->data && $output->data->member_srl) $list[] = $output->data->member_srl;
+ }
+ }
+
+ return $list;
+ }
+}
diff --git a/modules/ncenterlite/ncenterlite.mobile.php b/modules/ncenterlite/ncenterlite.mobile.php
new file mode 100644
index 000000000..8d8a5a7c0
--- /dev/null
+++ b/modules/ncenterlite/ncenterlite.mobile.php
@@ -0,0 +1,38 @@
+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();
+ }
+
+}
diff --git a/modules/ncenterlite/ncenterlite.model.php b/modules/ncenterlite/ncenterlite.model.php
new file mode 100644
index 000000000..bb4c48c18
--- /dev/null
+++ b/modules/ncenterlite/ncenterlite.model.php
@@ -0,0 +1,376 @@
+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('%s님이 회원님의 %s에 "%s" 댓글을 남겼습니다.', $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('%1$s님이 게시판 "%2$s"에 "%3$s"라고 댓글을 남겼습니다.', $target_member, $type, $v->target_summary);
+ break;
+ case 'M':
+ $str = sprintf($lang->ncenterlite_mentioned, $target_member, $v->target_summary, $type);
+ //$str = sprintf('%s님이 "%s" %s에서 회원님을 언급하였습니다.', $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);
+ }
+ 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);
+ 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;
+ 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('&', '&', $obj->url);
+ }
+
+ $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;
+ }
+
+ $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');
+ }
+}
diff --git a/modules/ncenterlite/ncenterlite.view.php b/modules/ncenterlite/ncenterlite.view.php
new file mode 100644
index 000000000..13c9b4823
--- /dev/null
+++ b/modules/ncenterlite/ncenterlite.view.php
@@ -0,0 +1,71 @@
+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');
+ }
+}
diff --git a/modules/ncenterlite/queries/deleteNotify.xml b/modules/ncenterlite/queries/deleteNotify.xml
new file mode 100644
index 000000000..53f3b42a6
--- /dev/null
+++ b/modules/ncenterlite/queries/deleteNotify.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/deleteNotifyAll.xml b/modules/ncenterlite/queries/deleteNotifyAll.xml
new file mode 100644
index 000000000..f6886172b
--- /dev/null
+++ b/modules/ncenterlite/queries/deleteNotifyAll.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/deleteNotifyByMemberSrl.xml b/modules/ncenterlite/queries/deleteNotifyByMemberSrl.xml
new file mode 100644
index 000000000..35492b021
--- /dev/null
+++ b/modules/ncenterlite/queries/deleteNotifyByMemberSrl.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/deleteNotifyBySrl.xml b/modules/ncenterlite/queries/deleteNotifyBySrl.xml
new file mode 100644
index 000000000..384f992c0
--- /dev/null
+++ b/modules/ncenterlite/queries/deleteNotifyBySrl.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/deleteNotifyByTargetSrl.xml b/modules/ncenterlite/queries/deleteNotifyByTargetSrl.xml
new file mode 100644
index 000000000..202147b77
--- /dev/null
+++ b/modules/ncenterlite/queries/deleteNotifyByTargetSrl.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/getAdminNotifyList.xml b/modules/ncenterlite/queries/getAdminNotifyList.xml
new file mode 100644
index 000000000..d1a12d794
--- /dev/null
+++ b/modules/ncenterlite/queries/getAdminNotifyList.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/getAllUserConfig.xml b/modules/ncenterlite/queries/getAllUserConfig.xml
new file mode 100644
index 000000000..61bb35180
--- /dev/null
+++ b/modules/ncenterlite/queries/getAllUserConfig.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/getCountNewMessage.xml b/modules/ncenterlite/queries/getCountNewMessage.xml
new file mode 100644
index 000000000..ba1aa4a84
--- /dev/null
+++ b/modules/ncenterlite/queries/getCountNewMessage.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/getDispNotifyList.xml b/modules/ncenterlite/queries/getDispNotifyList.xml
new file mode 100644
index 000000000..e39b573b2
--- /dev/null
+++ b/modules/ncenterlite/queries/getDispNotifyList.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/getMemberAdmins.xml b/modules/ncenterlite/queries/getMemberAdmins.xml
new file mode 100644
index 000000000..46a776b5c
--- /dev/null
+++ b/modules/ncenterlite/queries/getMemberAdmins.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/getMemberSrlById.xml b/modules/ncenterlite/queries/getMemberSrlById.xml
new file mode 100644
index 000000000..2fcec16c1
--- /dev/null
+++ b/modules/ncenterlite/queries/getMemberSrlById.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/getMemberSrlByNickName.xml b/modules/ncenterlite/queries/getMemberSrlByNickName.xml
new file mode 100644
index 000000000..3bb63a178
--- /dev/null
+++ b/modules/ncenterlite/queries/getMemberSrlByNickName.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/getMemberTotals.xml b/modules/ncenterlite/queries/getMemberTotals.xml
new file mode 100644
index 000000000..9036bc858
--- /dev/null
+++ b/modules/ncenterlite/queries/getMemberTotals.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/getNotifyList.xml b/modules/ncenterlite/queries/getNotifyList.xml
new file mode 100644
index 000000000..fc8901dde
--- /dev/null
+++ b/modules/ncenterlite/queries/getNotifyList.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/getNotifyNewCount.xml b/modules/ncenterlite/queries/getNotifyNewCount.xml
new file mode 100644
index 000000000..dd6b55f1f
--- /dev/null
+++ b/modules/ncenterlite/queries/getNotifyNewCount.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/getNotifyType.xml b/modules/ncenterlite/queries/getNotifyType.xml
new file mode 100644
index 000000000..803ce2aba
--- /dev/null
+++ b/modules/ncenterlite/queries/getNotifyType.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/getNotifyTypeByID.xml b/modules/ncenterlite/queries/getNotifyTypeByID.xml
new file mode 100644
index 000000000..c2977adfe
--- /dev/null
+++ b/modules/ncenterlite/queries/getNotifyTypeByID.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/getSocialxeCount.xml b/modules/ncenterlite/queries/getSocialxeCount.xml
new file mode 100644
index 000000000..33b2c96ae
--- /dev/null
+++ b/modules/ncenterlite/queries/getSocialxeCount.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/getUserConfig.xml b/modules/ncenterlite/queries/getUserConfig.xml
new file mode 100644
index 000000000..2a0ce0f41
--- /dev/null
+++ b/modules/ncenterlite/queries/getUserConfig.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/insertNotify.xml b/modules/ncenterlite/queries/insertNotify.xml
new file mode 100644
index 000000000..24e96cdd4
--- /dev/null
+++ b/modules/ncenterlite/queries/insertNotify.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/insertNotifyType.xml b/modules/ncenterlite/queries/insertNotifyType.xml
new file mode 100644
index 000000000..5f1e1f27e
--- /dev/null
+++ b/modules/ncenterlite/queries/insertNotifyType.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/insertUserConfig.xml b/modules/ncenterlite/queries/insertUserConfig.xml
new file mode 100644
index 000000000..c2bc581e3
--- /dev/null
+++ b/modules/ncenterlite/queries/insertUserConfig.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/updateNotifyReaded.xml b/modules/ncenterlite/queries/updateNotifyReaded.xml
new file mode 100644
index 000000000..23f9f24bc
--- /dev/null
+++ b/modules/ncenterlite/queries/updateNotifyReaded.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/updateNotifyReadedAll.xml b/modules/ncenterlite/queries/updateNotifyReadedAll.xml
new file mode 100644
index 000000000..935cea3bf
--- /dev/null
+++ b/modules/ncenterlite/queries/updateNotifyReadedAll.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/updateNotifyReadedBySrl.xml b/modules/ncenterlite/queries/updateNotifyReadedBySrl.xml
new file mode 100644
index 000000000..2ecae2689
--- /dev/null
+++ b/modules/ncenterlite/queries/updateNotifyReadedBySrl.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/updateNotifyReadedByTargetSrl.xml b/modules/ncenterlite/queries/updateNotifyReadedByTargetSrl.xml
new file mode 100644
index 000000000..842363152
--- /dev/null
+++ b/modules/ncenterlite/queries/updateNotifyReadedByTargetSrl.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/updateNotifyReadedByType.xml b/modules/ncenterlite/queries/updateNotifyReadedByType.xml
new file mode 100644
index 000000000..6f6328df3
--- /dev/null
+++ b/modules/ncenterlite/queries/updateNotifyReadedByType.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/queries/updateUserConfig.xml b/modules/ncenterlite/queries/updateUserConfig.xml
new file mode 100644
index 000000000..7bfcb07d6
--- /dev/null
+++ b/modules/ncenterlite/queries/updateUserConfig.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/ruleset/insertConfig.xml b/modules/ncenterlite/ruleset/insertConfig.xml
new file mode 100644
index 000000000..1015ba521
--- /dev/null
+++ b/modules/ncenterlite/ruleset/insertConfig.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/schemas/ncenterlite_notify.xml b/modules/ncenterlite/schemas/ncenterlite_notify.xml
new file mode 100644
index 000000000..083da9708
--- /dev/null
+++ b/modules/ncenterlite/schemas/ncenterlite_notify.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ncenterlite/schemas/ncenterlite_notify_type.xml b/modules/ncenterlite/schemas/ncenterlite_notify_type.xml
new file mode 100644
index 000000000..5beb4bf6e
--- /dev/null
+++ b/modules/ncenterlite/schemas/ncenterlite_notify_type.xml
@@ -0,0 +1,6 @@
+
diff --git a/modules/ncenterlite/schemas/ncenterlite_user_set.xml b/modules/ncenterlite/schemas/ncenterlite_user_set.xml
new file mode 100644
index 000000000..0562ed1e4
--- /dev/null
+++ b/modules/ncenterlite/schemas/ncenterlite_user_set.xml
@@ -0,0 +1,7 @@
+
diff --git a/modules/ncenterlite/skins/default/NotifyList.html b/modules/ncenterlite/skins/default/NotifyList.html
new file mode 100644
index 000000000..dae56b337
--- /dev/null
+++ b/modules/ncenterlite/skins/default/NotifyList.html
@@ -0,0 +1,46 @@
+
+
+
+
+ | {$lang->ncenterlite_sender} |
+ {$lang->ncenterlite_addressee} |
+ {$lang->ncenterlite_noti_contents} |
+ {$lang->ncenterlite_read} |
+ {$lang->date} |
+
+
+
+
+ {@
+ $oMemberModel = getModel('member');
+ $member_info = $oMemberModel->getMemberInfoByMemberSrl($val->member_srl);
+ }
+
+ | {$val->target_nick_name} |
+ {$member_info->nick_name} | {$lang->ncenterlite_no_target} |
+ {$val->text} |
+
+ {$lang->ncenterlite_read_y}
+ {$lang->ncenterlite_read_n}
+ |
+
+ {zdate($val->regdate,"Y-m-d")}
+
+ {zdate($val->regdate,"H:i:s")}
+ |
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/modules/ncenterlite/skins/default/img/p.png b/modules/ncenterlite/skins/default/img/p.png
new file mode 100644
index 0000000000000000000000000000000000000000..44e3d8d1203e991132d400e26b13aa3e469862d9
GIT binary patch
literal 7463
zcmV+?9oXWDP)5000;CX+uL$Nkc;*
zP;zf(X>4Tx09b{USqC_l(c3@I^SsM=?Y(91y_3E79;v+crq@;^B&(2-LJEl#O;kc8
zC0U75q!3D_fvkKFjsO4qkL$a>b6w{=zxRIbbD#U%_kG6wyZ~_AAcchm!E^uwheVKV
zjdb~(U0nI_uK*0_0VCi5j3m$SFdb`abMRlw(lCIwo=>H=Wc_!(|5)g~yu&>KfUHsM
z;T7%~jN%&rAWfcOBf_?D4vLw`sDdc2+`_)UaMKp{_=S76dF*ZVP&@$u
zfto}j`vO3mN9lY~p1!CY8fpM=3?W|rAt);!ig$VXk-Pxla7TG0gM&l2a2AS1J^o3K
z@BfnN@mD5^bLzv)$B5xTa&>COHTCiYu4Lh+Daq_M+qJR2G4po3yA6t4${nr-o;c7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T;c>vm(Wzkl&vyx_3Qk9l3j|aZ(&KM(Mf9}jgcvFM{
z8-tJz0XitjmM}tyhEtl_@^II(TGY&{5@RlwsdlN%_8Hn?q
z`&Gl|A6B%pa_s2f)!n+m82J6q9j9}TEd;#|ORhX~+@?tCc)#SI3eGDJn>jyyT48N5
z0+91gfV)+TEed}7W6R;x1weYO^wyrq!D{{_`|G`D(Nui?xWw85RYg@9lm8MSRb@G^
z`SD?iF(%x!35O@adGdK*C3M8Y<=F8G_}QfkK{BUa3p3VX2-
zi3nwpg7_kkYblISSu^?U>ed5bQsiC;p(+>=j4|o|w`Jf@O5;Sa$v&gXlqSv2$W?97
zDTaTiL<+p7>QW(wYJRhEs9auO=gO4i>JmRD>RJSAudjUkaxtkm^l~GmA+Dsox7k
z21V!2;eAH@7wD7HM79vYrQ0n+@090r|86kROy7G>=WdK3kGu>eWe}5cIE7e4dekdl
zw@13pjfbx{WPd!f+n+JUjLQGG5t8ovC^8ZUo*2>0i{q)|)V&>@FusN^y+3qxolnIq
z^}eZIAVbkhoH3(kL`MoEbiLm
zx$|^5vp<|EOg6&aVjjtKOU(dBpNc}*?Vs80pI_V_XB_X9zrUU6dPia8^5!v>o{K5W
zRQJpeU3z9%@b4gRK71t#yy9pSJDPXpW`8Prkt4-0O1#!EMFcZMXynl~=qsC}c94um
z-efgLRcY#ySrumZX#$7qV2m(tOG;~QBRNrWMqu(yF}D&M+Q4oF?$-@%Tk?{`_c4IY
zvSHp;aG9s%pH`89$3INV$hY^^!B{IBCzCPC|r7f7xN;>E1U6_I6-^kX0
zOv&e&j8H0psLpu=Vcu4J+_bc_>J37ca
l(>%5XU^6|Cd|?`v-#SNw`M^J`4Z=002ovPDHLkV1i5TjzRzc
literal 0
HcmV?d00001
diff --git a/modules/ncenterlite/skins/default/ncenterlite.black.css b/modules/ncenterlite/skins/default/ncenterlite.black.css
new file mode 100644
index 000000000..6f2596f91
--- /dev/null
+++ b/modules/ncenterlite/skins/default/ncenterlite.black.css
@@ -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; }
diff --git a/modules/ncenterlite/skins/default/ncenterlite.blacknoprofile.css b/modules/ncenterlite/skins/default/ncenterlite.blacknoprofile.css
new file mode 100644
index 000000000..88c94a4a4
--- /dev/null
+++ b/modules/ncenterlite/skins/default/ncenterlite.blacknoprofile.css
@@ -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;}
diff --git a/modules/ncenterlite/skins/default/ncenterlite.css b/modules/ncenterlite/skins/default/ncenterlite.css
new file mode 100644
index 000000000..60df8e548
--- /dev/null
+++ b/modules/ncenterlite/skins/default/ncenterlite.css
@@ -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;
+ }
+}
diff --git a/modules/ncenterlite/skins/default/ncenterlite.gray.css b/modules/ncenterlite/skins/default/ncenterlite.gray.css
new file mode 100644
index 000000000..4d167ea21
--- /dev/null
+++ b/modules/ncenterlite/skins/default/ncenterlite.gray.css
@@ -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; }
diff --git a/modules/ncenterlite/skins/default/ncenterlite.graynoprofile.css b/modules/ncenterlite/skins/default/ncenterlite.graynoprofile.css
new file mode 100644
index 000000000..d8704070b
--- /dev/null
+++ b/modules/ncenterlite/skins/default/ncenterlite.graynoprofile.css
@@ -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;}
diff --git a/modules/ncenterlite/skins/default/ncenterlite.html b/modules/ncenterlite/skins/default/ncenterlite.html
new file mode 100644
index 000000000..39d6ebe10
--- /dev/null
+++ b/modules/ncenterlite/skins/default/ncenterlite.html
@@ -0,0 +1,125 @@
+
+
+
+
diff --git a/modules/ncenterlite/skins/default/ncenterlite.mobile.css b/modules/ncenterlite/skins/default/ncenterlite.mobile.css
new file mode 100644
index 000000000..ef3125177
--- /dev/null
+++ b/modules/ncenterlite/skins/default/ncenterlite.mobile.css
@@ -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; }
diff --git a/modules/ncenterlite/skins/default/ncenterlite.white.css b/modules/ncenterlite/skins/default/ncenterlite.white.css
new file mode 100644
index 000000000..c3fd4444a
--- /dev/null
+++ b/modules/ncenterlite/skins/default/ncenterlite.white.css
@@ -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; }
diff --git a/modules/ncenterlite/skins/default/ncenterlite.whitenoprofile.css b/modules/ncenterlite/skins/default/ncenterlite.whitenoprofile.css
new file mode 100644
index 000000000..69342bd1d
--- /dev/null
+++ b/modules/ncenterlite/skins/default/ncenterlite.whitenoprofile.css
@@ -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;}
diff --git a/modules/ncenterlite/skins/default/skin.xml b/modules/ncenterlite/skins/default/skin.xml
new file mode 100644
index 000000000..78ac42418
--- /dev/null
+++ b/modules/ncenterlite/skins/default/skin.xml
@@ -0,0 +1,40 @@
+
+
+ XE 알림센터 Lite 기본스킨
+ XE Notification Center Lite Default Skin
+ 1.1.1
+ 2013-03-21
+
+
+ XE Public
+ XE Public
+
+
+
+
+ 검은색
+ Black
+
+
+ 회색
+ Gray
+
+
+ 흰색
+ White
+
+
+
+ 검은색(no profile)
+ Black (no profile)
+
+
+ 회색(no profile)
+ Gray (no profile)
+
+
+ 흰색(no profile)
+ White (no profile)
+
+
+
diff --git a/modules/ncenterlite/skins/default/userconfig.html b/modules/ncenterlite/skins/default/userconfig.html
new file mode 100644
index 000000000..fffbfeaeb
--- /dev/null
+++ b/modules/ncenterlite/skins/default/userconfig.html
@@ -0,0 +1,68 @@
+
+
+
+
+
+
{$XE_VALIDATOR_MESSAGE}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/modules/ncenterlite/skins/default_bottom/NotifyList.html b/modules/ncenterlite/skins/default_bottom/NotifyList.html
new file mode 100644
index 000000000..dae56b337
--- /dev/null
+++ b/modules/ncenterlite/skins/default_bottom/NotifyList.html
@@ -0,0 +1,46 @@
+
+
+
+
+ | {$lang->ncenterlite_sender} |
+ {$lang->ncenterlite_addressee} |
+ {$lang->ncenterlite_noti_contents} |
+ {$lang->ncenterlite_read} |
+ {$lang->date} |
+
+
+
+
+ {@
+ $oMemberModel = getModel('member');
+ $member_info = $oMemberModel->getMemberInfoByMemberSrl($val->member_srl);
+ }
+
+ | {$val->target_nick_name} |
+ {$member_info->nick_name} | {$lang->ncenterlite_no_target} |
+ {$val->text} |
+
+ {$lang->ncenterlite_read_y}
+ {$lang->ncenterlite_read_n}
+ |
+
+ {zdate($val->regdate,"Y-m-d")}
+
+ {zdate($val->regdate,"H:i:s")}
+ |
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/modules/ncenterlite/skins/default_bottom/img/p.png b/modules/ncenterlite/skins/default_bottom/img/p.png
new file mode 100644
index 0000000000000000000000000000000000000000..44e3d8d1203e991132d400e26b13aa3e469862d9
GIT binary patch
literal 7463
zcmV+?9oXWDP)5000;CX+uL$Nkc;*
zP;zf(X>4Tx09b{USqC_l(c3@I^SsM=?Y(91y_3E79;v+crq@;^B&(2-LJEl#O;kc8
zC0U75q!3D_fvkKFjsO4qkL$a>b6w{=zxRIbbD#U%_kG6wyZ~_AAcchm!E^uwheVKV
zjdb~(U0nI_uK*0_0VCi5j3m$SFdb`abMRlw(lCIwo=>H=Wc_!(|5)g~yu&>KfUHsM
z;T7%~jN%&rAWfcOBf_?D4vLw`sDdc2+`_)UaMKp{_=S76dF*ZVP&@$u
zfto}j`vO3mN9lY~p1!CY8fpM=3?W|rAt);!ig$VXk-Pxla7TG0gM&l2a2AS1J^o3K
z@BfnN@mD5^bLzv)$B5xTa&>COHTCiYu4Lh+Daq_M+qJR2G4po3yA6t4${nr-o;c7oYL
zJS?qH%z$D+&u~50Uov6kI6r%*-#q4C-ueb8MxzLJCWqSo;r9!Vvin1ii}Ta7{KFqW
zGTrhw4T>{J1HVK}K8S?m+RSun24W-(&TL1X=!`3q0jRHnjbXSG~ix=es>t
zgrB|fFZl>v1R4OpWFlNX{)Q&MbU`?8%X~TXqmcv5$9%!*7{L
zh8IcS?3YcD5?}~OfDF8W2M7ThfDf1hJ)r-)J_{FBK4(#PX(kAK(65KL`L{mmg;D?2B<{-^&xW{fky
z>En!XhBz@K4Y`hVA@`6+NHfw1_>fkl3F$%ZZsC6!h4kAhO$n9St|52mJ
zzZ}1*G~zT$z;>HI5Pj$WcLc|6t^NN^N+eo6P)PykJF~xY{9|ch)VfL-U5qAbXVk_R
z77PcF!YHB^*THC^K2SobdjHz%cPj;awrv@;J(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vYrQ0n+@090r|86kROy7G>=WdK3kGu>eWe}5cIE7e4dekdl
zw@13pjfbx{WPd!f+n+JUjLQGG5t8ovC^8ZUo*2>0i{q)|)V&>@FusN^y+3qxolnIq
z^}eZIAVbkhoH3(kL`MoEbiLm
zx$|^5vp<|EOg6&aVjjtKOU(dBpNc}*?Vs80pI_V_XB_X9zrUU6dPia8^5!v>o{K5W
zRQJpeU3z9%@b4gRK71t#yy9pSJDPXpW`8Prkt4-0O1#!EMFcZMXynl~=qsC}c94um
z-efgLRcY#ySrumZX#$7qV2m(tOG;~QBRNrWMqu(yF}D&M+Q4oF?$-@%Tk?{`_c4IY
zvSHp;aG9s%pH`89$3INV$hY^^!B{IBCzCPC|r7f7xN;>E1U6_I6-^kX0
zOv&e&j8H0psLpu=Vcu4J+_bc_>J37ca
l(>%5XU^6|Cd|?`v-#SNw`M^J`4Z=002ovPDHLkV1i5TjzRzc
literal 0
HcmV?d00001
diff --git a/modules/ncenterlite/skins/default_bottom/ncenterlite.black.css b/modules/ncenterlite/skins/default_bottom/ncenterlite.black.css
new file mode 100644
index 000000000..e0eb7f2ac
--- /dev/null
+++ b/modules/ncenterlite/skins/default_bottom/ncenterlite.black.css
@@ -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; }
diff --git a/modules/ncenterlite/skins/default_bottom/ncenterlite.blacknoprofile.css b/modules/ncenterlite/skins/default_bottom/ncenterlite.blacknoprofile.css
new file mode 100644
index 000000000..3db203843
--- /dev/null
+++ b/modules/ncenterlite/skins/default_bottom/ncenterlite.blacknoprofile.css
@@ -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;}
diff --git a/modules/ncenterlite/skins/default_bottom/ncenterlite.css b/modules/ncenterlite/skins/default_bottom/ncenterlite.css
new file mode 100644
index 000000000..d22532260
--- /dev/null
+++ b/modules/ncenterlite/skins/default_bottom/ncenterlite.css
@@ -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;
+ }
+}
diff --git a/modules/ncenterlite/skins/default_bottom/ncenterlite.gray.css b/modules/ncenterlite/skins/default_bottom/ncenterlite.gray.css
new file mode 100644
index 000000000..91f3e6898
--- /dev/null
+++ b/modules/ncenterlite/skins/default_bottom/ncenterlite.gray.css
@@ -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; }
diff --git a/modules/ncenterlite/skins/default_bottom/ncenterlite.graynoprofile.css b/modules/ncenterlite/skins/default_bottom/ncenterlite.graynoprofile.css
new file mode 100644
index 000000000..b7a8c5d5a
--- /dev/null
+++ b/modules/ncenterlite/skins/default_bottom/ncenterlite.graynoprofile.css
@@ -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;}
diff --git a/modules/ncenterlite/skins/default_bottom/ncenterlite.html b/modules/ncenterlite/skins/default_bottom/ncenterlite.html
new file mode 100644
index 000000000..b4a5b5703
--- /dev/null
+++ b/modules/ncenterlite/skins/default_bottom/ncenterlite.html
@@ -0,0 +1,124 @@
+
+
+
diff --git a/modules/ncenterlite/skins/default_bottom/ncenterlite.mobile.css b/modules/ncenterlite/skins/default_bottom/ncenterlite.mobile.css
new file mode 100644
index 000000000..c221ae4da
--- /dev/null
+++ b/modules/ncenterlite/skins/default_bottom/ncenterlite.mobile.css
@@ -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; }
diff --git a/modules/ncenterlite/skins/default_bottom/ncenterlite.white.css b/modules/ncenterlite/skins/default_bottom/ncenterlite.white.css
new file mode 100644
index 000000000..5cd778257
--- /dev/null
+++ b/modules/ncenterlite/skins/default_bottom/ncenterlite.white.css
@@ -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; }
diff --git a/modules/ncenterlite/skins/default_bottom/ncenterlite.whitenoprofile.css b/modules/ncenterlite/skins/default_bottom/ncenterlite.whitenoprofile.css
new file mode 100644
index 000000000..175a58afe
--- /dev/null
+++ b/modules/ncenterlite/skins/default_bottom/ncenterlite.whitenoprofile.css
@@ -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;}
diff --git a/modules/ncenterlite/skins/default_bottom/skin.xml b/modules/ncenterlite/skins/default_bottom/skin.xml
new file mode 100644
index 000000000..aeecfd5cf
--- /dev/null
+++ b/modules/ncenterlite/skins/default_bottom/skin.xml
@@ -0,0 +1,40 @@
+
+
+ XE 알림센터 Lite 기본스킨 - 우측 하단
+ XE Notification Center Lite Default Skin - Right bottom
+ 1.2.0
+ 2013-05-10
+
+
+ XE Public
+ XE Public
+
+
+
+
+ 검은색
+ Black
+
+
+ 회색
+ Gray
+
+
+ 흰색
+ White
+
+
+
+ 검은색(no profile)
+ Black (no profile)
+
+
+ 회색(no profile)
+ Gray (no profile)
+
+
+ 흰색(no profile)
+ White (no profile)
+
+
+
diff --git a/modules/ncenterlite/skins/default_bottom/userconfig.html b/modules/ncenterlite/skins/default_bottom/userconfig.html
new file mode 100644
index 000000000..52e2e2f0b
--- /dev/null
+++ b/modules/ncenterlite/skins/default_bottom/userconfig.html
@@ -0,0 +1,68 @@
+
+
+
+
+
+
{$XE_VALIDATOR_MESSAGE}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/modules/ncenterlite/tpl/Config.html b/modules/ncenterlite/tpl/Config.html
new file mode 100644
index 000000000..0067f5496
--- /dev/null
+++ b/modules/ncenterlite/tpl/Config.html
@@ -0,0 +1,272 @@
+
+
+
+
+
+
+
+
+
+
{$lang->ncenterlite_install_version} : Lite v{$ncenterlite_module_info->version}
+
+
\ No newline at end of file
diff --git a/modules/ncenterlite/tpl/css/ncenter_admin.css b/modules/ncenterlite/tpl/css/ncenter_admin.css
new file mode 100644
index 000000000..b01d9527b
--- /dev/null
+++ b/modules/ncenterlite/tpl/css/ncenter_admin.css
@@ -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; }
diff --git a/modules/ncenterlite/tpl/header.html b/modules/ncenterlite/tpl/header.html
new file mode 100644
index 000000000..be44bc02d
--- /dev/null
+++ b/modules/ncenterlite/tpl/header.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+
{$XE_VALIDATOR_MESSAGE}
+
\ No newline at end of file
diff --git a/modules/ncenterlite/tpl/js/ncenter_admin.js b/modules/ncenterlite/tpl/js/ncenter_admin.js
new file mode 100644
index 000000000..5fa289894
--- /dev/null
+++ b/modules/ncenterlite/tpl/js/ncenter_admin.js
@@ -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= 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();
+});
diff --git a/modules/ncenterlite/tpl/ncenter_list.html b/modules/ncenterlite/tpl/ncenter_list.html
new file mode 100644
index 000000000..2bf1b1fad
--- /dev/null
+++ b/modules/ncenterlite/tpl/ncenter_list.html
@@ -0,0 +1,67 @@
+
+
+
+
+ 알림 목록
+
+ 알림이 없습니다.
+
+
+
+
+
+
+
+ | 보낸사람 |
+ 받은사람 |
+ 내용 |
+ 읽음여부 |
+ {$lang->date} |
+
+
+
+
+ {@
+ $oMemberModel = getModel('member');
+ $member_info = $oMemberModel->getMemberInfoByMemberSrl($val->member_srl);
+ }
+
+ | {$val->target_nick_name} |
+ {$member_info->nick_name} | 타겟없음 |
+ {$val->text} |
+ {$val->readed} |
+
+ {zdate($val->regdate,"Y-m-d")}
+
+ {zdate($val->regdate,"H:i:s")}
+ |
+
+
+
+
+
+
+
+
\ No newline at end of file