Commit graph

123 commits

Author SHA1 Message Date
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
417e4d15b0 More fixes to improve PHP 8.0 compatibility 2020-10-31 00:40:28 +09:00
Kijin Sung
68076b40c6 Make JPG quality in document/comment thumbnails configurable, too 2019-08-01 16:37:05 +09:00
Kijin Sung
8c242327a8 Implement auto-rotation of uploaded images 2019-08-01 15:25:12 +09:00
Kijin Sung
2b67798cab Add option to adjust quality of JPG output 2019-08-01 03:49:16 +09:00
Kijin Sung
bf93afd7e5 Support converting BMP and WEBP images to JPG 2019-08-01 03:13:58 +09:00
Kijin Sung
bb6dc77acd 투명한 배경의 PNG 파일은 썸네일 생성시에도 투명하게 나오도록 변경
xpressengine/xe-core#2243
2018-06-11 23:40:33 +09:00
conory
fe1c182ecc php7.2 Warning: count(): Parameter must be an array or an object that implements Countable 2018-03-03 21:45:45 +09:00
BJRambo
488181eaae FileHandler::writeFile 의 리턴 주석 고침.
기존의 경우 FileHandler::writeFile의 주석이 void으로 반환한다고 되어잇지만 실제 리턴값은 bool과 string으로 리턴합니다. 해당 리턴값주석을 Rhymix\Framework\Storage::write에 있는 내용과 일치 시켰습니다.
2018-02-26 13:36:32 +09:00
Kijin Sung
b25ce87ae5 Import new XE functions clearStatCache() and invalidateOpcache()
xpressengine/xe-core 23ec7b7

라이믹스는 Storage 클래스에서 파일을 쓸 때마다 opcache와 stat cache를
자동으로 비워주고 있으므로 이런 조치가 필요하지 않으나,
XE와의 호환성을 위해 동일한 함수를 제공함. 사용을 권장하지 않음.
2017-12-09 01:38:46 +09:00
Kijin Sung
1a81fd43f3 Convert Object class to BaseObject in core classes 2017-11-27 22:34:28 +09:00
Kijin Sung
2ef85c2555 Use Storage::deleteEmptyDirectory() in FileHandler::removeEmptyDir() 2017-01-26 18:01:47 +09:00
Kijin Sung
4f15ae24ea Display GB and TB sizes correctly in FileHandler::filesize() 2016-12-17 22:30:51 +09:00
Kijin Sung
d34ef5901f Improve FileHandler::returnBytes() to handle a wider range of sizes 2016-12-17 20:49:10 +09:00
Kijin Sung
313e7048d5 Remove safe_mode condition from FileHandler 2016-07-03 17:59:50 +09:00
Kijin Sung
6c545fce08 Only use proxy server when the constant is defined 2016-06-18 15:07:42 +09:00
Kijin Sung
6791208ae1 Prevent function arguments from being exposed in the error log
Also: Produce backtrace when a regular error occurs
Also: Remove unnecessary check for DEBUG_BACKTRACE_IGNORE_ARGS
(This is not necessary in PHP > 5.3.6)
2016-06-15 17:03:32 +09:00
Kijin Sung
2d54687a52 Add slow remote requests to debug content 2016-06-08 16:15:32 +09:00
Kijin Sung
e1232cf4c1 Fix missing variable in FileHandler::getRemoteResource (thanks @bjrambo) 2016-06-03 13:36:27 +09:00
Kijin Sung
eedba6f032 Fix invalid result of FileHandler::getRealPath() on Windows 2016-05-19 21:03:44 +09:00
Kijin Sung
25965b5d72 Initial support for LESS and SCSS stylesheets 2016-05-03 21:23:38 +09:00
Kijin Sung
921d7d8568 Fix incorrect handling of path separator on Windows systems 2016-04-01 14:47:34 +09:00
Kijin Sung
9b5ee1af48 Fix #414 Unable to download file to nonexistent directory 2016-03-29 00:00:40 +09:00
conory
032f399d35 #405 이미지 메모리 체크에서 항상 false를 반환하는 문제수정 2016-03-25 19:32:48 +09:00
Kijin Sung
45b2910cee Fix #397 error while uploading file to an existing directory 2016-03-21 16:18:31 +09:00
Kijin Sung
89bd526a13 Refactor FileHandler to call Storage class internally 2016-03-18 20:54:04 +09:00
Kijin Sung
2f64a4ce8f Fix thumbnails for external URLs with no extension 2016-01-26 11:13:57 +09:00
Kijin Sung
971a3bd115 Move remaining non-composer classes to common/libraries 2016-01-13 16:22:07 +09:00
Kijin Sung
192e81620d Replace Pear HTTP_Request with rmccue/Requests 2016-01-13 15:17:13 +09:00
Kijin Sung
8d6068ab2b Immediately invalidate PHP scripts from opcache if modified or deleted 2016-01-09 21:04:51 +09:00
conory
e0b8ee720f FileHandler static 2015-12-22 19:12:17 +09:00
Kijin Sung
377e1db946 Merge #1654 Cannot redeclare class HTTP_Request by sejin7940
* pr/1654:
  Update FileHandler.class.php
2015-10-08 15:07:08 +09:00
Kijin Sung
a7ed4c56c8 Merge #1363 PHP 5 방식의 생성자 (__construct) 사용 by kijin
* pr/1363:
  ExtraItem 클래스에도 PHP 5 방식의 생성자 (__construct) 사용
  PHP 5 방식의 생성자 (__construct) 사용

Conflicts:
	classes/context/Context.class.php
2015-10-08 14:10:32 +09:00
sejin7940
ccdca9dba3 Update FileHandler.class.php 2015-07-17 23:19:02 +09:00
Kijin Sung
1392a1d1e6 FileHandler::getRemoteResource()에서 타임아웃 설정 사용시 존재하지 않는 메소드 호출 현상 수정 2015-06-13 15:23:06 +09:00
bnu
a480454664 fix #1409 FileHandler::getRemoteResource()에서 timeout 설정이 반영되지 않는 문제 고침 2015-04-15 12:40:23 +09:00
bnu
b3149a06e0 fix fff4ef1109 2015-04-08 10:18:04 +09:00
bnu
fff4ef1109 FileHandler::returnBytes()에서 잘못된 값을 반환하는 문제 수정 2015-04-01 13:46:44 +09:00
Kijin Sung
15d3ba7ca1 PHP 5 방식의 생성자 (__construct) 사용 2015-04-01 11:30:04 +09:00
bnu
14ffdbe5f0 #1182 보완
- file::_changeBytes()를 FIleHandler::returnBytes()로 대체
2015-02-04 17:42:28 +09:00
bnu
c3f005ec4c fix #1053 typo 2014-12-08 11:26:48 +09:00
YJSoft
5f7c79d9c3 getRemoteFile에서 연결 설정을 수정할 수 있게 수정
getRemoteResource 자체는 연결 설정이 가능하나 getRemoteFile은 불가능하기에 수정
2014-10-25 22:29:37 +09:00
akasima
683d6c30a9 #904 autoinstall without ftp 2014-09-01 08:33:12 +09:00
akasima
66a2440daa #839 getRemoteResource 에서 연결 설정을 수정할 수 있도록 처리 2014-07-21 12:20:01 +09:00
akasima
87fa55a0c6 #220 return data type errro 2014-02-17 16:25:38 +09:00
bnu
5a6558dfdc NOISSUE windows에서 설치 시 문제 수정. 2014-01-27 15:20:50 +09:00
bnu
1c1f1175e6 #302 보완 2014-01-24 11:21:00 +09:00
bnu
9cc43f3159 fix #302 windows에서 설치가 되지 않는 문제 해결-beta 2014-01-22 20:17:59 +09:00
bnu
f43fadbe0f fixed #121 FileHandler::removeFilesInDir() 등 문제 수정. 2013-11-29 15:35:43 +09:00
bnu
e9dacc6cdf substr_compare()에서 문제를 일으킬 수 있는 부분 보완. 2013-11-27 15:16:26 +09:00