Commit graph

249 commits

Author SHA1 Message Date
Kijin Sung
25eef85d8a Remove two-tier caching of template files 2016-02-11 10:44:47 +09:00
conory
9f7f955e28 Revert template handler 2016-01-31 16:04:06 +09:00
conory
a840b5fe46 글로벌 변수도 사용할 수 있도록 추가 2016-01-27 20:55:14 +09:00
conory
614cdf3f63 예외 경우 추가 (에러 수정) 2016-01-27 19:50:13 +09:00
conory
8caa495073 대문자 상수 인식, 템플릿에서 $_SERVER 변수를 사용할 수 있도록 개선 2016-01-27 19:03:16 +09:00
Kijin Sung
acf44a3e03 Clean up method signatures in TemplateHandler 2016-01-22 14:43:37 +09:00
Kijin Sung
b0bfb9a364 Set up replacement table for path conversions 2016-01-12 14:02:26 +09:00
Kijin Sung
386e1658a0 Merge branch 'develop' into refactor/functions 2016-01-10 13:52:35 +09:00
Kijin Sung
840b2356f8 Merge branch 'develop' into fix/context-static-this 2016-01-09 15:18:11 +09:00
Kijin Sung
6c5f9aadd1 Don't use home-made JSON encoder in display handlers 2016-01-08 20:38:35 +09:00
Kijin Sung
db87085967 Remove unnecessary calls to getMicroTime() 2016-01-08 14:05:48 +09:00
Kijin Sung
8dac7bc5e9 Fix inconsistent use of static and non-static methods in Context class 2016-01-08 13:14:03 +09:00
conory
ded0e014a2 PHP7 preg_match_all 함수가 값 반환을 제대로 하지못하는 것 같아 변경.
메뉴관리 페이지의 cond 속성을 제대로 처리하지못하는 문제 수정.
2016-01-02 14:49:36 +09:00
Kijin Sung
d0fae0688b Merge #1712 Loop 에 사용되는 변수 한번만 호출하는 PR by misol
* pr/1712:
  Unit test 에서 변화된 부분 수정3
  Unit test 에서 변화된 부분 수정2
  Loop 문 변경으로 바뀐 unit 테스트 예측값 추가 수정
  추가 - 변수명 충돌 방지, 테스트 코드 수정
  Loop 에 사용되는 변수 한번만 호출하기
2015-10-08 15:08:46 +09:00
Kijin Sung
65ba3902f4 Merge #1267 템플릿에 auto-escape (htmlspecialchars 자동 적용) 기능 추가 by kijin
* pr/1267:
  Add exception for {$content} in layout.html
  Remove nodouble option and make it the default behavior
  Initial implementation of autoescape for the template handler
2015-10-08 14:08:50 +09:00
MinSoo Kim
56da2dbd5f 추가 - 변수명 충돌 방지, 테스트 코드 수정
변수명에 대해서 템플릿 코드와 idx 에 따라 변수가 바뀌도록 했습니다. @kijin 님 의견을 참고하여 md5 해시 값을
이용하여보았습니다.
2015-08-19 00:10:14 +09:00
MinSoo Kim
d1ada21087 Loop 에 사용되는 변수 한번만 호출하기
스킨의 loop로 인한 불필요한 쿼리 발생 방지
https://github.com/xpressengine/xe-core/pull/1711 를 보고 빠르게 만들어 보았습니다.
2015-08-18 01:41:46 +09:00
bnu
a4f9897423 fix #1510 이미지 상대경로 처리 보완 2015-06-04 17:51:40 +09:00
bnu
0130ab6493 fix #1510 이미지 상대경로 처리 보완 2015-06-04 17:08:24 +09:00
bnu
f6a538a655 fix #1510 이미지 경로 전에 cond사용이 제한되는 문제 고침
- `>`문자열로 img태그의 종료점을 찾으므로 `cond`속성을 먼저 사용할 경우 제한될 수 있었음
- test case 추가
2015-06-04 15:08:34 +09:00
Changwan Jun
e2928534c5 ob_start * bug fix. 2015-05-26 14:57:42 +09:00
bnu
6d093aed91 TemplateHandler::init(), TemplateHandler::parse() visibility 변경 2015-04-10 14:55:17 +09:00
Kijin Sung
cd823663b4 Allow protocol-relative URLs in <load> syntax 2015-02-25 16:05:35 +09:00
Kijin Sung
f8d2c130bc Add exception for {$content} in layout.html 2015-02-16 20:13:32 +09:00
Kijin Sung
d0addddbec Remove nodouble option and make it the default behavior 2015-02-16 20:09:17 +09:00
Kijin Sung
bd365c7ff1 Initial implementation of autoescape for the template handler 2015-02-15 17:52:21 +09:00
YJSoft
a35c51c311 __DEBUG__가 1일때만 file 캐시 사용시 eval
__DEBUG__가 0일경우 기존 include 방식을 사용
2014-05-29 11:31:28 +09:00
YJSoft
9ee99ea7b9 오타 수정및 주석문 추가 2014-05-11 19:57:12 +09:00
YJSoft
5c9bf55b97 exception을 사용하도록 수정 2014-05-11 19:33:29 +09:00
YJSoft
96de92beed file cache 사용시 오류 예외처리가 되지 않던점 수정 & 오타 수정
include문 사용시 parse error 예외처리가 불가능함으로 FileHandler::readFile로 읽어 들인뒤 eval하는 방식으로 수정하였습니다.

추가:pharse가 아니라 parse네요;;;
2014-04-27 01:02:02 +09:00
YJSoft
b9a515c101 #588 템플릿 파일 오류시 오류 정보와 해당 오류가 발생한 템플릿 파일을 출력
eval에서 발생하는 오류 대신 실제 오류가 발생한 템플릿 파일을 출력함으로 디버깅시 참고 가능하게함

개선 코드(by @lansi951 ) 반영
2014-04-26 18:16:08 +09:00
bnu
d48d9d80a7 fix #385 object cache 정리 및 오류가 발생할 수 는 문제 해결 2014-01-29 14:36:42 +09:00
bnu
932862be1f #64 서버 내 경로를 절대경로로 변경 2013-11-23 11:59:49 +09:00
bnu
a00f2d1033 _ZBXE_VERSION_ 대체. 2013-11-20 22:52:17 +09:00
akasima
736f382b27 #66 install php version check
#16 install rewrite module usable check
#48 htmlspecialchars function params add
2013-11-19 13:32:39 +09:00
khongchi
3581db5932 remove cdn feature
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13187 201d5d3c-b55e-5fd7-737f-ddc643e51545
2013-11-08 06:04:28 +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
misol
f70ce644ce Close Connection when there is no connection value.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13161 201d5d3c-b55e-5fd7-737f-ddc643e51545
2013-09-25 15:29:32 +00:00
flyskyko
4eb6660d3d changed a access mofifier to public from private for backward compatibility
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12749 201d5d3c-b55e-5fd7-737f-ddc643e51545
2013-02-14 02:51:52 +00:00
flyskyko
0973ed647a issue 2119. supporting php 5.4. template class.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12694 201d5d3c-b55e-5fd7-737f-ddc643e51545
2013-02-05 02:47:06 +00:00
ovclas
15fa10dc39 issue 2662 coding convention
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12220 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-11-14 09:59:39 +00:00
ovclas
d3672fda8f issue 2647 Template cond bug fix
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11982 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-10-31 04:55:58 +00:00
devjin
170c5c057a issue 2369 return origin conde when src value started '${'.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11789 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-10-18 13:48:37 +00:00
devjin
42eb19ae10 merge from 1.5.3.2(r11162 ~ r11201)
and from luminous (r11141 ~ r11193)

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11202 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-09-11 02:52:49 +00:00
flyskyko
d97822999e merge from 1.5.3 (~r10951). required minify admin.min.js
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.1@10952 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-07-27 03:04:27 +00:00
devjin
2c5c1fe8f5 issue 1886 return origin code when src value include variable.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.1@10918 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-07-19 11:57:56 +00:00
misol
9892444c15 Issue 2157 remove 'space removing' syntax.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3@10917 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-07-19 11:29:15 +00:00
misol
1830ff3d0d Issue 2157 space removing fix.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3@10913 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-07-19 05:11:25 +00:00
flyskyko
33d2137574 issue 1981, fixed a bug on replace parent directory mark ../
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.1@10904 201d5d3c-b55e-5fd7-737f-ddc643e51545
2012-07-17 08:53:50 +00:00