Commit graph

66 commits

Author SHA1 Message Date
Kijin Sung
b2738bbb39 Fix fatal error when dispPageNotFound() is called as a 404 handler without arguments 2024-05-16 20:43:13 +09:00
Kijin Sung
bd43950c75 Fix index page being displayed with 404 code if user requests domain.com/1234 with non-existent document_srl 2024-02-04 23:21:18 +09:00
Kijin Sung
578de6404b Ignore document_srl in widgets pages, too #2019 2024-02-04 23:05:25 +09:00
Kijin Sung
3233619eac Fix template v2 not working in external pages
https://xetown.com/questions/1792598
2023-10-31 21:42:27 +09:00
Kijin Sung
a2767b0dd8 Merge branch 'develop' into template-v2 2023-10-10 15:13:47 +09:00
Kijin Sung
861135bd6c Fix undefined variables in article page 2023-10-10 15:12:17 +09:00
Kijin Sung
45f016d53b Update references to TemplateHandler in common code paths 2023-10-10 15:05:46 +09:00
Kijin Sung
ed557883c7 Fix default skin handling in page module 2023-06-27 21:32:59 +09:00
Kijin Sung
67b4e7eade Fix capitalization of class names in Page module 2023-06-19 13:44:08 +09:00
Kijin Sung
37b0d3a1e6 Remove trailing whitespace 2023-01-30 21:43:21 +09:00
Min-Soo Kim
ecec361766
페이지 모듈의 주소 중 문서 번호가 들어간 경우 적절히 처리되도록 수정 (#2019)
https://github.com/rhymix/rhymix/issues/1983 관련
- 라이믹스의 짧은 주소 기능을 활용하는 경우, 숫자로 입력된 주소가 `act`로 인식되는 문제 수정 (짧은 주소 규칙을 모듈 xml에 정의)
- `article` 타입의 페이지인 경우, 문서 번호를 무시하도록 수정
  - Page type이 article이 아니라면, 기존 주소 유지
  - https://github.com/rhymix/rhymix/pull/2019#discussion_r1019876776 내용을 반영하여서 수정
  - document srl을 일괄 삭제하면, 필요한 위젯이나 outside 페이지에서는 문제가 생길 수 있기 때문에 이를 반영함.
  - `article` type의 페이지는 page 모듈에서 모든 권한을 가지고 통제할 수 있기 때문에 이 페이지의 경우는 `document_srl`으로 접속하는 경우 `mid`만을 남기고 주소에서 삭제
2022-11-17 19:40:12 +09:00
dewekk
9c0123ae66
위젯 페이지에서 괄호 등 GET/POST 불가 문제 수정
RVE-2022-2 보안 패치가 외부페이지 뿐만 아니라 위젯 페이지에도 적용되어
위젯으로 구현된 검색, 입력폼 등에서 일반적인 괄호를 못 쓰는 문제를 수정합니다.
2022-03-24 18:05:01 +09:00
Kijin Sung
5b195ce16e Fix mobile external page path 2022-03-16 14:13:57 +09:00
Kijin Sung
9ce7593820 Fix error when loading external page in document root folder 2022-03-16 00:54:10 +09:00
Kijin Sung
63fa80db82 No need to fail hard if unable to write cache file at the end 2022-03-15 22:48:06 +09:00
Kijin Sung
def6166c8e Clean up duplicate path definitions 2022-03-15 22:39:55 +09:00
Kijin Sung
09abdfa88a Implement safe order of parsing template code and including as PHP 2022-03-15 22:29:07 +09:00
Kijin Sung
d13241ed7c Parse external document as PHP and/or Rhymix template if configured 2022-03-15 21:30:36 +09:00
Kijin Sung
0272c5d27a Prevent '_getContent method is not exists' error when page info is improperly cached 2022-03-15 02:00:14 +09:00
Kijin Sung
d4a1be1ef0 Merge duplicate code paths in PageView and PageMobile classes
보안 체크가 한 곳에서 이루어지도록 중복되는 메소드 제거
2022-03-15 01:46:47 +09:00
Kijin Sung
9170d9444c Throw SecurityViolation if anyone tries to exploit RVE-2022-2 with GET/POST vars 2022-03-15 01:36:13 +09:00
Kijin Sung
1ab9a2899b Adjust cache paths to prevent loading old cache 2022-03-15 01:28:59 +09:00
Kijin Sung
0c1ee32073 Disable template compilation in external page content 2022-03-14 02:29:18 +09:00
Kijin Sung
a28a8e29e1 More cleanup 2022-03-14 02:17:16 +09:00
Kijin Sung
063d38487e Clean up some dirty code in page.view.php 2022-03-14 02:11:57 +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
conory
0a97a0de53 모듈 기본 스킨을 셋팅하는 코드 정리
init()에서 setTemplatePath(...)하는 모듈에서 사이트 기본 스킨을 사용할 경우 '/USE_DEFAULT/' 그대로 유지되어 템플릿 경로 오류가 발생하는 문제 수정
불필요한 코드 제거
2019-01-11 11:13:48 +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
e5ab366d91 Fix missing sprintf() in page module 2018-09-06 15:28:18 +09:00
Kijin Sung
be1ce69073 Update more modules to throw exceptions 2018-09-05 23:12:08 +09:00
Kijin Sung
431fc363a2 Fix #1048 unable to use $lang in outside file 2018-08-04 21:22:04 +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
7d508f50bd Remove unnecessary grant of admin rights on nonexistent documents 2017-03-02 21:02:49 +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
Changwan Jun
e2928534c5 ob_start * bug fix. 2015-05-26 14:57:42 +09:00
bnu
194ce8614a NOISSUE remove reference operator. 2013-12-30 17:35:02 +09:00
bnu
41ff8ace3b NOISSUE PHP 5.4 이상 호환성 개선. 2013-11-30 18:05:36 +09:00
bnu
932862be1f #64 서버 내 경로를 절대경로로 변경 2013-11-23 11:59:49 +09:00
khongchi
540da2c75c #85, time()을 $_SERVER['REQUEST_TIME']으로 대체 2013-11-21 16:14:13 +09:00
khongchi
4bf61afddf fix syntax error
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13203 201d5d3c-b55e-5fd7-737f-ddc643e51545
2013-11-13 06:44:27 +00:00
khongchi
5693e340fe issue 3645, php5 대응, 함수 대체
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13202 201d5d3c-b55e-5fd7-737f-ddc643e51545
2013-11-13 01:40:53 +00:00
akasima
bce0a0b6d4 copyright add to php files
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13186 201d5d3c-b55e-5fd7-737f-ddc643e51545
2013-11-08 05:52:51 +00:00
ngleader
dbc18a4f99 change author
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13180 201d5d3c-b55e-5fd7-737f-ddc643e51545
2013-11-07 02:42:42 +00:00
ovclas
7bb7241447 issue 2662 page
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12255 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-11-19 09:56:12 +00:00
devjin
cdbdef7adc issue 2303 add a mobile content in type of ARTICLE page.
git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11126 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-08-30 09:27:19 +00:00
devjin
4fedfd7e99 issue 2281 added skin_info.html
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11111 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-08-29 04:54:40 +00:00
flyskyko
9bcaa0f4de issue 185, separate widget page cache file by ssl option
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11088 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-08-27 04:54:43 +00:00
flyskyko
467e4ebd69 issue 2302, fixed a widget page cache problem
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11087 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-08-27 04:29:30 +00:00