Commit graph

133 commits

Author SHA1 Message Date
Kijin Sung
23190bd2f5 Remove all use of global variables as debug timers 2025-08-20 00:34:57 +09:00
Kijin Sung
cbf9cb8ccc Improve backward compatibility with old widgets 2025-06-21 08:29:05 +09:00
Kijin Sung
69a27d7835 Ensure that all widget variables always exist #2564 2025-06-17 21:15:37 +09:00
Kijin Sung
34840508f7 Fix warnings in widget editor and support default values in info.xml 2025-06-17 18:45:16 +09:00
Kijin Sung
14dbac7890 Clean up non-static method calls in Widget module 2025-05-26 22:49:29 +09:00
Kijin Sung
ec6ade4e26 Replace all remaining use of XE XML Parser with SimpleXML in widget module 2025-05-19 21:50:16 +09:00
Kijin Sung
3f6dbf847d Remove references to old XeXmlParser in widget module 2025-05-18 22:04:18 +09:00
Kijin Sung
b4098ce804 Separate widget cache by lang type 2025-03-27 11:02:46 +09:00
Kijin Sung
efaeda640d Fix widget cache for all assets loaded from all types of templates
https://rhymix.org/community/1905161
2025-03-27 10:58:48 +09:00
Kijin Sung
e192bc0ff6 Add widget directive for Template v2 2025-03-20 14:01:56 +09:00
Kijin Sung
85532fa502 Fix #2341 undefined property access in WidgetController 2024-05-04 21:23:38 +09:00
Kijin Sung
45f016d53b Update references to TemplateHandler in common code paths 2023-10-10 15:05:46 +09:00
Kijin Sung
866f9c670d Fix capitalization of class names 2023-10-02 22:59:25 +09:00
Kijin Sung
3e38515c23 Remove unnecessary CSS for old browsers and IE 2023-08-31 00:35:11 +09:00
Kijin Sung
37b0d3a1e6 Remove trailing whitespace 2023-01-30 21:43:21 +09:00
conory
faea821e78 Fix warning in PHP 8.0 2021-07-05 14:19:06 +09:00
Kijin Sung
786dace639 Fix various warnings in PHP 8.0 2021-06-20 22:25:16 +09:00
Kijin Sung
f0df00a82d Fix fatal error when widget code contains invalid XML 2021-05-17 20:06:46 +09:00
Kijin Sung
f8859769e8 Clean up ModuleController::replaceDefinedLangCode() 2021-01-08 21:27:44 +09:00
Kijin Sung
db6f44a913 Fix warnings in PHP 8.0 2021-01-08 00:11:12 +09:00
Kijin Sung
87db7c0371 Replace old XML parser with SimpleXML in widget controller 2021-01-07 11:16:26 +09:00
Kijin Sung
1a204d8c52 Completely disable Debug logging if it is not enabled for the current user
관리자 또는 특정 IP에서만 디버그 기능을 사용하도록 설정된 경우,
그 밖의 요청에서는 어떤 에러메시지, 쿼리, 트리거 소요시간 등의 기록도
디버그 클래스에 저장하지 않도록 변경합니다.

워닝이 많이 발생하는 PHP 8.0에서는 20~30%의 성능 개선 효과가 있습니다.
2021-01-07 02:51:43 +09:00
Kijin Sung
2f99d71f21 Remove unnecessary count() in widget controllre 2020-12-19 23:36:16 +09:00
BJRambo
6fd49c3bd1 #Fix #1501 error in PHP 8.0 2020-12-19 14:03:21 +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
49923844b2 Various fixes to remove warnings in PHP 8.0 2020-12-15 00:18:42 +09:00
Kijin Sung
372e392049 Fix #1480 misc errors in PHP 8.0 2020-12-11 21:38:39 +09:00
Kijin Sung
417e4d15b0 More fixes to improve PHP 8.0 compatibility 2020-10-31 00:40:28 +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
f5562356b4 Fix #1412 failure to load multilingual document in widget page 2020-10-22 00:07:25 +09:00
conory
8ccfd963b6 rhymix_content class 추가 2020-09-17 20:40:06 +09:00
Kijin Sung
be1ce69073 Update more modules to throw exceptions 2018-09-05 23:12:08 +09:00
Kijin Sung
f12cf74dda Revert "다른 프레임워크와 css 충돌을 피하기 위해 rhymix.less의 class/id 이름에 prefix 처리"
This reverts commit b1cb1f3f34.
2018-08-04 20:56:24 +09:00
conory
b1cb1f3f34 다른 프레임워크와 css 충돌을 피하기 위해 rhymix.less의 class/id 이름에 prefix 처리
변경전의 xe.less 파일도 rhymix.less와 함께 load 하여 호환정 유지

CSS 충돌 예)
bootstrap의 .btn
사용 예)
bootstrap 사용시엔 {Context::unloadBasicFiles('xe')}으로 unload 시키면 문제없음
2018-08-03 19:45:30 +09:00
Kijin Sung
6f35f5bafc Fix strict count() behavior in PHP 7.2 2017-12-01 01:42:03 +09:00
Kijin Sung
84e5542d77 Remove unnecessary use of BaseObject
- 트리거 등 반환값이 필요하지 않은 곳에서 new BaseObject()를 반환하는 것 삭제
- 모듈 설치, 업데이트 후 무의미한 new BaseObject()를 반환하는 것 삭제
- 사용자에게 에러 메시지를 돌려주는 용도로 new BaseObject(-1, '에러메시지')를
  사용하는 경우는 대부분 $this->setError()로 변경함. 언어 변환과 sprintf()
  처리까지 한 번에 이루어지므로 이쪽이 더 편리함.
2017-12-01 00:54:51 +09:00
BJRambo
f3f40f6859 php7.2호환을 위해 변경한 클래스 Object 를 BaseObject으로 변경 2017-11-28 20:01:28 +09:00
Kijin Sung
99d8383a37 Fix #866 content encoding error when saving widget page content 2017-07-04 17:45:36 +09:00
Kijin Sung
9615d85d81 Remove admin rights from all widget document methods 2017-03-02 20:19:23 +09:00
Kijin Sung
beb67dc5c5 Merge branch 'pr/security-fixes' into develop 2017-02-27 16:16:33 +09:00
Min-Soo Kim
5140047b5f 네모의 꿈/ 컨텐츠 위젯 스킨 (#712)
## 컨텐츠 모듈 스킨

- 사이트 테마를 따르지 않고 다른 색을 선택할 수 있도록 네모의 꿈 회원 스킨 컬러셋 추가.
- 탭이 많을 때 터치 환경이 아니면 좌우로 넘기기 어려운 점을 고려하여서 메뉴를 펼침.
- 작은 화면에서 화면을 최대한 활용하도록, 레이아웃 햄버거 메뉴를 부드럽게 나타내고 감춥니다.

## 위젯에서 LESS/SCSS 의 사용
- 변수를 위젯 캐시에도 전달할 수 있도록 해서 LESS 나 SCSS 에 값 전달이 가능하도록 함.
- LESS 나 SCSS 를 사용한 경우에 위젯 코드 캐싱 코드가 적절하게 기록되도록 해서 LESS나 SCSS 를 사용
가능하도록 수정.

## 그 외 변화
- Reduce the number of regular expressions.
2017-02-26 01:05:57 +09:00
Kijin Sung
1c45a5fc1c Fix unauthorized modification and deletion of documents via widget controller 2017-02-25 23:01:16 +09:00
Kijin Sung
4f821bca85 Do not even load counts of document in widget page 2016-04-24 17:57:51 +09:00
Kijin Sung
ddac7ecf2f Do not load extra vars of document in widget page 2016-04-24 17:41:32 +09:00
Kijin Sung
ba10c91d0e Change default cache driver to 'dummy' with minimal caching 2016-04-22 23:26:04 +09:00
Kijin Sung
8bd7f6e466 Fix styling of cached widget 2016-04-17 16:22:48 +09:00
Kijin Sung
884aba864e Update widget controller to use new cache system 2016-04-17 16:15:29 +09:00
conory
7c0c4dd7ba 파일캐시 사용시 위젯 캐시부분이 갱신되지않는 문제수정 2016-03-08 23:35:26 +09:00
Kijin Sung
57c225ff75 Remove debug code 2016-03-07 21:42:05 +09:00
Kijin Sung
9a8ce487ef Enable caching even if there is no widget sequence 2016-03-07 11:15:41 +09:00