Commit graph

160 commits

Author SHA1 Message Date
Kijin Sung
a2160d8787 Remove unused method parameters 2025-06-03 11:17:37 +09:00
Kijin Sung
f4a686ce47 Fix comment about nullable return type 2025-06-03 11:17:18 +09:00
Kijin Sung
b5e9cd9343 Display required level in "Not permitted" error message ##2548 2025-05-22 13:36:23 +09:00
Kijin Sung
bb4cd62e31 Return different "Not permitted" error message depending on what is required #2548 2025-05-22 13:20:48 +09:00
Kijin Sung
4916a589aa Support not_member permission in module.xml #2499 2025-05-22 00:59:21 +09:00
Kijin Sung
008a15bcd5 Use admin scopes to check manager privileges 2024-10-14 23:41:33 +09:00
Kijin Sung
05f330cabe Only modify module_info->layout_srl (or mlayout_srl) when it has a positive value 2024-01-17 14:53:11 +09:00
Kijin Sung
fb85d62f2f Fix setLayoutAndTemplatePaths() no-op when PC layout is set to -1 2024-01-17 14:49:36 +09:00
Kijin Sung
a102f20766 Fix #2237 failure to recognize layout.blade.php 2023-12-30 23:53:05 +09:00
Kijin Sung
8176bdb845 Fix undefined variables in several module config templates 2023-11-09 01:37:38 +09:00
Kijin Sung
96330593fd Add $this->request to module and template instances 2023-10-29 23:37:08 +09:00
Kijin Sung
6a2a2826ec Optimize common code paths using Template class 2023-10-23 14:11:26 +09:00
Kijin Sung
4e8c184d0c Don't add .html automatically to template name 2023-10-15 02:45:58 +09:00
Kijin Sung
45f016d53b Update references to TemplateHandler in common code paths 2023-10-10 15:05:46 +09:00
Kijin Sung
48e0f55d6b Support event handlers (triggers) that are only called before/after specific action 2023-08-12 01:14:36 +09:00
conory
fe724d93ef Allow an array of URL parameters in setRedirectUrl()
$this->setRedirectUrl(['module' => 'admin', 'act' => '...']);
2023-07-01 01:44:43 +09:00
Kijin Sung
7b16ee31c3 Fix backward incompatible behavior when is_skin_fix or is_mskin_fix is set 2023-06-27 00:16:29 +09:00
Kijin Sung
18b5d66605 Fix backward incompatible behavior when skin directory is a symlink 2023-06-27 00:09:56 +09:00
Kijin Sung
340b3aa49a Set layout and template paths in one place 2023-06-26 22:12:32 +09:00
Kijin Sung
bd8fe996e1 Always return an error code of -2 if an exception is thrown during module init 2023-04-30 22:16:59 +09:00
Kijin Sung
dfa1e93c79 Remove unnecessary header and footer from class files
- 아래에 이미 author 언급이 있으므로 중복되는 저작권 표기는 제거
- 클래스 하단에 불필요한 end of file 표시 제거 (파일 하나에 클래스 하나씩이므로
  파일이 중간에 끊겼다면 클래스가 닫히지 않아 쉽게 알 수 있음)
2023-01-30 23:52:23 +09:00
Kijin Sung
c881e73c1d Remove trailing whitespace in legacy class files 2023-01-17 21:07:55 +09:00
Kijin Sung
e97f44826d Add ModuleObject->copyResponseFrom() 2022-12-28 02:14:47 +09:00
Kijin Sung
b1b25cac40 Fix #95 #626 #853 #1278 display login form if board action is not permitted and the user is not logged in 2022-12-19 20:41:36 +09:00
Kijin Sung
0fafb1cf6b #2025 좀더 근본적인 해결: 모듈 autoload시 lang파일 자동 로딩하도록 변경 2022-12-15 22:52:00 +09:00
Kijin Sung
e4e252c1b4 Add more detailed ERR_* error codes to common error messages
가장 많이 발생하는 '잘못된 요청입니다', '보안정책상 허용되지 않습니다'
오류에 좀더 구체적인 ERR_* 코드를 추가하여 디버깅 편의 개선
2022-10-13 00:23:20 +09:00
Kijin Sung
7e82d37cfa Fix PHP warnings due to unitiated variables #1866 thanks to @Erictoby 2022-02-04 01:41:56 +09:00
Kijin Sung
70cfe24cdd Use $this->user instead of $logged_info more consistently #1866 2022-02-04 01:19:30 +09:00
Kijin Sung
093fa43e37 Fix incorrect variable reference 2021-11-02 20:58:20 +09:00
Kijin Sung
8e4bfdc1a7 모듈 아래에 네임스페이스를 넣을 경우 module_path, module 변수가 잘못 세팅되는 문제 수정 2021-04-12 16:58:59 +09:00
Kijin Sung
bc7f8a73c3 ModuleObject::getInstance() 주석의 반환타입을 static으로 바꾸어 에디터가 제대로 인식하도록 개선 2021-04-10 16:18:53 +09:00
Kijin Sung
70d88bc026 Fix #1521 error in PHP 8.0 if API class doesn't exist 2020-12-25 23:12:01 +09:00
Kijin Sung
8c161bc28d Various fixes to improve PHP 8.0 compatibility
- XmlParser 클래스가 PHP 내장 클래스가 되어버려서 XeXmlParser로 변경
- 함수나 파라미터의 형태가 맞지 않아서 치명적인 오류 나는 곳 수정
- undefined 변수 및 배열 키 다수 수정 (치명적인 오류는 아님)
- 계속 수정중...
2020-10-31 00:25:26 +09:00
Kijin Sung
438386f3dc Fix #1430 path conversion error in Windows 2020-10-19 13:36:14 +09:00
Kijin Sung
99f36f56a6 Change unnecessary ModuleModel instance method calls to static calls in ModuleObject 2020-06-18 21:08:16 +09:00
Kijin Sung
5fa72f8629 Add 404 error handler and update permission data structure 2020-06-18 14:13:23 +09:00
Kijin Sung
052930a6d4 Replace some usages of getModel(), getController(), etc. with getInstance() 2020-05-18 21:45:44 +09:00
Kijin Sung
abedfbb55c Implement getInstance() for module classes 2020-05-18 21:20:38 +09:00
Kijin Sung
fda343afd1 Set $this->user only once 2020-05-18 20:41:57 +09:00
Kijin Sung
564563f56c Clean up constructors and other method signatures 2020-05-18 20:37:16 +09:00
Kijin Sung
339fd234a5 Show where an Exception was thrown or error object was returned
- 관리자에게만 표시함
  - 오류 화면을 표시하는 방식에 따라서는 표시되지 않을 수 있음
  - 코어 내부에서 발생하는 오류는 표시되지 않을 수 있음
  - message 모듈 스킨에 의존함
2020-03-19 00:58:30 +09:00
conory
0a97a0de53 모듈 기본 스킨을 셋팅하는 코드 정리
init()에서 setTemplatePath(...)하는 모듈에서 사이트 기본 스킨을 사용할 경우 '/USE_DEFAULT/' 그대로 유지되어 템플릿 경로 오류가 발생하는 문제 수정
불필요한 코드 제거
2019-01-11 11:13:48 +09:00
Kijin Sung
7d318c3122 Fix #1100 member skin being overwritten by mid defaults 2018-10-11 20:27:28 +09:00
Kijin Sung
11858c0b13 Fix #985 improve responsive skin support
- 모바일에서 반응형 스킨 사용을 기본값으로 지정한 경우
  - 사이트 디자인 설정 화면에서 /USE_RESPONSIVE/가 노출되는 문제 수정
  - 신규 생성한 게시판에서 모바일 스킨을 찾지 못하는 문제 수정

- 게시판 모듈에서 스킨 처리하는 루틴을 ModuleObject로 이관하여
  모든 모듈에서 혜택을 볼 수 있도록 함

- 반응형 스킨이 기본값으로 지정된 경우, 아무 것도 지정되지 않은 경우,
  기본값으로 지정된 스킨이 삭제된 경우 등 다양한 상황에 대처

- TODO: 회원 모듈, 커뮤니케이션 모듈 등에서 자체 스킨을 들여오는 방식 재검토
2018-10-10 23:07:48 +09:00
Kijin Sung
10c8d11785 Add FeatureDisabled and SecurityViolation exception classes 2018-09-06 10:00:47 +09:00
Kijin Sung
5b7ce90a3d Also catch exceptions in init() method of module instances 2018-09-06 00:19:27 +09:00
Kijin Sung
f6fa7493f6 Catch Rhymix\Framework\Exception in module act and triggers 2018-08-26 23:46:13 +09:00
conory
9e59a6d839 페이지 편집 페이지에서 '모듈 설정 화면' 설정과는 상관없이 무조건 사용자 레이아웃 적용
레이아웃마다 너비가 모두 다르므로 관리자 레이아웃 적용시 정확도가 엄청 떨어짐
2018-08-14 15:20:00 +09:00
Kijin Sung
6f447df66c Add option to view module config screen in admin layout
모듈 설정 화면을 관리자 레이아웃으로 보는 기능을 옵션으로 만들어 복원함
최근 수정된 관리자 레이아웃 디자인을 여기에도 적용
2018-08-14 12:41:30 +09:00
Kijin Sung
4ca3bdccc6 Display module settings in own layout
Partially revert 8d718c0
2018-08-14 11:11:58 +09:00