Commit graph

632 commits

Author SHA1 Message Date
Kijin Sung
031261469e Fix #1900 incorrect detection of non-member vote status 2022-03-16 10:20:15 +09:00
Kijin Sung
ae28116ac0 Fix #1816 allow images of at least 100x100px when creating large thumbnails 2021-12-31 01:41:04 +09:00
Kijin Sung
e311207348 Fix #1840 query error when loading comment declared list 2021-12-31 01:14:02 +09:00
Kijin Sung
3925c24487 Add option to disable admin content protection
최고관리자의 글을 게시판 관리자가 수정/삭제하지 못하도록 하는 기능은
게시판을 위키 등 협업 용도로 사용하는 경우 불편을 유발할 수 있으므로
옵션으로 켜고 끌 수 있도록 합니다. 기본값은 수정/삭제 금지입니다.
2021-12-30 23:55:10 +09:00
Kijin Sung
12e8cc4510
Merge pull request #1822 from BOBODDO/develop
컨텐츠 위젯 및 comment 모듈 버그 수정
2021-12-09 23:16:26 +09:00
conory
94918a070d 휴지통 삭제시 댓글수가 반영되지 않을 수 있는 문제 수정
댓글 삭제로 인해 댓글수가 0이 되었을 경우에도 반영되어야 함
2021-11-30 21:51:31 +09:00
Kijin Sung
ae44f26bc5 Fix fatal error in PHP 8.0 when thumbnail size is not given as integer 2021-11-22 15:01:28 +09:00
BOBODDO
c6ef211867
댓글 자리남김 기능 사용 시 댓글 삭제 트리거 작동 안하는 문제 수정
ModuleHandler::triggerCall('comment.deleteComment', 'after', $obj); 을 ModuleHandler::triggerCall('comment.deleteComment', 'after', $comment); 로 수정해야합니다.
updateCommentByDelete 함수에서 받아오는 $obj 값을 그대로 사용해서 트리거로 전달하면 안되며, $comment = getModel('comment')->getComment($obj->comment_srl); 을 통해 저장한 $comment 값을 넘겨주어야 합니다.
2021-11-12 22:46:03 +09:00
Kijin Sung
c87e6d759c #1802 보완 2021-10-19 20:35:02 +09:00
BOBODDO
b611940adf
신고 불가 시 세션값을 FALSE > TRUE로 수정 필요 2021-10-08 23:42:37 +09:00
Kijin Sung
ce2d019aaf Fix #1784 error when getThumbnail() uses external image with $height = 'auto' 2021-09-07 01:48:21 +09:00
conory
c5138ab477 긴 댓글은 휴지통에 들어가지 않는 문제 수정
SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'title' at row 1

불필요 코드 제거
2021-09-03 01:04:41 +09:00
Kijin Sung
eb56785d54 Fix incorrect data type handling of thumbnail $height parameter
https://xetown.com/questions/1584581
2021-06-22 16:24:28 +09:00
Kijin Sung
786dace639 Fix various warnings in PHP 8.0 2021-06-20 22:25:16 +09:00
Kijin Sung
633bc340e7 Fix #1707 support thumbnail height value of 'auto' in any type 2021-06-19 23:11:59 +09:00
Kijin Sung
856f2af743 Fix #1732 inconsistent 'target' attribute in popup menus 2021-06-19 22:30:18 +09:00
Kijin Sung
8c0532297b Remove unnecessary arguments from query 2021-04-26 00:19:38 +09:00
conory
1d9033742a 검색옵션이 뒤죽박죽으로 표시될 수 있는 문제 수정
언어코드 이름이 모두 search_target_list로 같기에 향후 코어나 서드파티에 의해 호출 순서가 바뀌면 다른 모듈의 $lang->search_target_list 변수가 표시될 수 있다.
2021-04-24 11:50:39 +09:00
Kijin Sung
2330a5d6fd Merge status and is_secret columns in comment list view 2021-04-20 22:40:41 +09:00
Kijin Sung
76f3376670 Add getStatus() and getStatusText() methods to document and comment for easy management 2021-04-20 22:38:42 +09:00
Kijin Sung
1db10e4ada Fix #1652 non-member vote not working for comments 2021-03-17 23:22:41 +09:00
Kijin Sung
fc4d8a6824 Fix #1634 bypass spamfilter when sending messages from core modules 2021-02-23 22:01:32 +09:00
Kijin Sung
4fe083b3c7 Fix #1625 failure to preserve comment with children when parent is moved to trash 2021-02-22 22:00:41 +09:00
Kijin Sung
8c2bfd8297 Fix #1611 query error in declared document/comment list page 2021-02-10 15:57:13 +09:00
Kijin Sung
6b956d2e5b Allow admin to report (declare) even if it's the same IP 2021-02-10 15:56:47 +09:00
Kijin Sung
ebe806f7a5 Fix warnings in PHP 8.0 2021-02-07 15:29:28 +09:00
Kijin Sung
0873b371a1 Change some other instances of problematic GROUP BY into SELECT DISTINCT 2021-01-31 16:27:37 +09:00
Kijin Sung
41ed1d7bec Fix importer module not saving documents/comments with empty password fields 2021-01-29 15:01:26 +09:00
Kijin Sung
71d71a886c Set 'fill' as default thumbnail method 2021-01-19 17:42:00 +09:00
Kijin Sung
68ecf64a6b Add user-configurable index hints to getComment/DocumentListByMemberSrl 2021-01-15 00:40:39 +09:00
Kijin Sung
f190e07f83 Make order type customizable in getCommentListByMemberSrl query 2021-01-14 18:17:40 +09:00
Kijin Sung
57e702daea Fix count() error in PHP 8.0 in content widget
https://xetown.com/questions/1508131
2021-01-14 01:14:27 +09:00
Kijin Sung
f8859769e8 Clean up ModuleController::replaceDefinedLangCode() 2021-01-08 21:27:44 +09:00
Kijin Sung
82e1625d0c Fix #1525 error in PHP 8.0 in _arrangeComment if $list is null 2020-12-25 23:09:51 +09:00
Kijin Sung
b0f66a36c5 Convert all instances of _XE_PATH_, __XE_VERSION__, etc. to Rhymix constants
_XE_PATH_ -> RX_BASEDIR
__XE_VERSION__ -> RX_VERSION
2020-12-18 15:21:23 +09:00
Kijin Sung
0b265cde21 Make all addons, modules, and widgets follow RX_VERSION 2020-12-18 00:20:33 +09:00
Kijin Sung
a43f0368ec Fix #1341 also calculate point difference accurately when new file is uploaded to a comment 2020-12-15 23:39:25 +09:00
Kijin Sung
49923844b2 Various fixes to remove warnings in PHP 8.0 2020-12-15 00:18:42 +09:00
Kijin Sung
2d6a175b19 Fix #1468 inconsistent use of REMOTE_ADDR vs. RX_CLIENT_IP 2020-11-18 00:17:49 +09:00
BJRambo
2cb477fd55 게시글과 댓글을 작성 및 수정시 대기된 파일을 공개하는 방식을 변경
파일이 대기모드에서 공개할때 트리거에서 직접 호출 하는 방식으로 변경
2020-11-11 15:06:00 +09:00
Kijin Sung
b354d8af49 Revert 61f6456b and add a warning instead 2020-10-30 15:57:18 +09:00
Kijin Sung
61f6456b6c Remove support for $is_admin in getDocument(), getDocuments(), getComment()
단순히 문서나 댓글을 불러오는 동작에서는 $is_admin 변수를 무시하도록 합니다.
서드파티 자료에서 사용할 경우 해당 문서나 댓글에 관리자 권한이 부여되어 버려서
보안취약점이 발생할 수 있기 때문입니다.

실제로 많은 서드파티 자료들이 이 변수가 왜 필요한지, 어떤 기능을 하는지
이해하지 못하는 상태로 무작정 복붙하여 사용하고 있습니다.
이러한 서드파티 자료에서 이 패치로 인해 오작동이 발생할 경우에는
그 때 가서 적절한 조치를 취하도록 하겠습니다.

getDocumentListByMemberSrl(), getCommentListByMemberSrl(), getCommentList() 등
일부 메소드에서는 이미 $is_admin 변수를 무시하도록 되어 있습니다.
2020-10-28 00:30:39 +09:00
Kijin Sung
c3cc12008e Always display document and comment at top, in that order, in additions setup screen 2020-10-27 21:46:08 +09:00
Kijin Sung
4765919d1f Fix #1444 duplicate id attribute in extra settings 2020-10-27 21:43:27 +09:00
Kijin Sung
16d3209bbd Provide triggers document.getThumbnail (before) and comment.getThumbnail (before) 2020-10-01 17:22:06 +09:00
Kijin Sung
9d0e808514 Optimize thumbnail check logic 2020-10-01 17:03:42 +09:00
Kijin Sung
4102c4bda2 Use 'search' operation to improve search accuracy 2020-10-01 16:51:21 +09:00
Kijin Sung
01424ddd2d Update some commonly used methods to use ModuleModel::getMidByModuleSrl() 2020-10-01 16:34:07 +09:00
Kijin Sung
a02bd88a66 Clean up unnecessary module instances in documentItem and commentItem classes 2020-10-01 15:55:11 +09:00
Kijin Sung
1c786d8cd5 Remove module update scripts from XE 1.7 and before
XE 1.7 이하 버전에서 테이블 스키마 조정, 인덱스 추가, 임시파일 처리 등을 위해
만들어 놓은 업데이트 스크립트를 대부분 제거하여 처리 효율을 향상시킵니다.

이 중 대부분은 XE 개발 초창기(1.2 이전) 스키마 변경이 빈번하던 시절에
하위호환성을 위해 추가된 것으로, 이미 10년 이상 불필요한 상태였습니다.

단, 앞으로는 XE 1.8 미만 버전에서 라이믹스로 업데이트하기 어려워질 수 있습니다.
XE 1.8 미만 버전을 사용하는 사이트에서는 먼저 XE 최신 버전으로 업데이트한 후
라이믹스를 덮어씌우는 방식으로 진행하여야 합니다.
2020-09-29 01:33:57 +09:00