Commit graph

2606 commits

Author SHA1 Message Date
Kijin Sung
5d78d114a7 Remove deprecated argument $errcontext from default error handler 2023-09-26 12:06:20 +09:00
Kijin Sung
1de83747de Fix missing type declarations in Debug class 2023-09-26 11:27:30 +09:00
Kijin Sung
a1537bafe3 Fix incorrect or missing type declarations in Cache and DB classes 2023-09-26 11:09:55 +09:00
Kijin Sung
3c415e18d5 Fix #1204 #407 display more helpful error message when a post cannot be upvoted/downvoted/reported for whatever reason 2023-09-25 22:32:17 +09:00
Kijin Sung
234ba6c5c6 Fix some potentially misleading comments about constants 2023-09-24 23:01:54 +09:00
Kijin Sung
c48eb3a169 Add missing return type declarations 2023-09-24 22:57:37 +09:00
Kijin Sung
2fe3837f07 Mark changeValueInUrl() as deprecated 2023-09-24 22:57:24 +09:00
Kijin Sung
d8fcb3cc70 Add proper comments and some _rx_ variables to getDestroyXeVars() 2023-09-24 22:49:48 +09:00
Kijin Sung
caa80f8d97 Move deprecated functions to the end of legacy.php 2023-09-24 22:45:36 +09:00
Kijin Sung
29ea470f56 Mark more legacy functions as deprecated 2023-09-24 22:36:30 +09:00
Kijin Sung
6434a18b06 Add return types to legacy global functions
오래된 함수들은 서드파티 자료들이 예상치 못한 자료형의 변수를 넘기는 경우가
많으므로, 파라미터의 타입은 강제하지 않고 반환 타입만 선언함.
2023-09-24 22:33:02 +09:00
Kijin Sung
a7ac14ecbd Add type declarations to global functions where possible 2023-09-24 22:32:49 +09:00
Kijin Sung
585ea0f1d3 Version 2.1.5 2023-09-13 11:19:03 +09:00
Kijin Sung
e60ffb4e8d Add option to control partial page rendering (layout drop)
XE 시절부터 layout=none 또는 isLayoutDrop=1 파라미터로 레이아웃이 없는
부분적인 페이지 렌더링을 허용하는 기능이 있었습니다. 관리자 화면에서
팝업이나 iframe을 표시하는 용도로도 사용하고, AJAX로 페이지 일부 내용만
새로고침할 때 불필요한 데이터를 주고받지 않도록 하는 데도 유용합니다.

그러나 사이트에 따라서는 레이아웃을 적용하지 않을 경우 민감한 정보가
노출되는 등의 부작용이 발생할 수도 있으므로, 이 기능을 사용하지 않도록
선택하는 옵션을 제공합니다.
2023-09-12 00:33:54 +09:00
Kijin Sung
0f1ea1dbc2 Remove characters in writePHPData() comment that could cause syntax error 2023-09-05 02:07:21 +09:00
Kijin Sung
206f6e706a Encode non ASCII printable characters in cache keys for maximum compatibility with all cache backends 2023-09-05 01:57:26 +09:00
Kijin Sung
5b5010a401 Fix <!-- ETC --> comment stuck after body with no newline 2023-09-05 00:42:42 +09:00
Kijin Sung
770cde8b8a Preserve line numbers when compiling SCSS with sourcemap 2023-09-04 23:40:09 +09:00
Kijin Sung
096d841263 Create sourcemaps when compiling SCSS 2023-09-04 23:05:06 +09:00
Kijin Sung
74cc098370 Remove incorrect sourceMap link in concatenated JS output 2023-09-04 22:00:12 +09:00
Kijin Sung
99c905a6f4 Fix warning when session is used on CLI 2023-09-04 15:19:12 +09:00
Kijin Sung
0fde7eb7e7 Use console.error() instead of console.warn() in Firefox, because it doesn't show stack trace for warnings 2023-08-31 22:59:15 +09:00
Kijin Sung
1014208e49 Version 2.1.4 2023-08-31 12:27:00 +09:00
Kijin Sung
c5c8b70579 Fix collision of common constants with other programs like codeception 2023-08-31 12:02:57 +09:00
Kijin Sung
15648d10d1 Fix #2167 allow removing no-store and must-revalidate from Cache-Control headers 2023-08-31 02:19:18 +09:00
Kijin Sung
51cd77a06e Clean up more old files that haven't been used in a while in Rhymix 2023-08-31 01:00:12 +09:00
Kijin Sung
380c50aa6a Remove unnecessary polyfill for window.matchMedia 2023-08-31 00:51:52 +09:00
Kijin Sung
f75649ccb1 Remove unnecessary HTML5 shiv library 2023-08-31 00:49:27 +09:00
Kijin Sung
3e38515c23 Remove unnecessary CSS for old browsers and IE 2023-08-31 00:35:11 +09:00
Kijin Sung
6e38b440ea Convert popup menu AJAX actions from XML to JSON 2023-08-30 23:36:26 +09:00
Kijin Sung
f5997b642a Make Router::parseURL() return a consistent type and format for all action properties 2023-08-30 22:58:05 +09:00
Kijin Sung
79dd9ae45e Use console.warn for JS deprecation notices so that the user can see a stack trace 2023-08-30 22:38:41 +09:00
Kijin Sung
0d8b8a51dd Improve parser logic for action attributes 2023-08-30 01:53:55 +09:00
Kijin Sung
ec36839303 Add options in module.xml to disable session and Cache-Control headers for individual actions 2023-08-30 01:45:37 +09:00
Kijin Sung
a1ce3ccaf2 Fix missing array key in session 2023-08-29 23:55:40 +09:00
Kijin Sung
4af7354bf0 Add options to control autologin cookie lifetime and refresh function 2023-08-29 23:42:01 +09:00
Kijin Sung
87300c9944 Resend autologin key periodically to maintain useful lifetime 2023-08-29 23:21:20 +09:00
Kijin Sung
31fd79c71e Fix default value handling for #2169 2023-08-27 23:43:22 +09:00
Kijin Sung
3fbb1327d2 Fix #2169 allow simple expressions as default values for table columns 2023-08-27 23:38:29 +09:00
Kijin Sung
06e736178b Support sending all _rx_* POST fields as HTTP headers instead
하위호환성, 부가기능 등을 위한 _rx_* POST 필드가 점점 많아짐에 따라
모두 헤더로 대체할 수 있도록 지원하고, 앞으로 점점 헤더로 바꿀 예정

CSRF 토큰은 예전부터 X-CSRF-Token 헤더를 지원했음
2023-08-27 23:32:31 +09:00
Kijin Sung
dc492345da Fix custom query caller location being shown as DB.php in debug info 2023-08-27 22:57:56 +09:00
Kijin Sung
2b55d8cc91 Update Korean IP ranges 2023-08-21 22:44:23 +09:00
Kijin Sung
42d09bde65 Provide a single entry point for all command-line scripts
Core example:

php index.php common.clean_empty_dirs
  -> executes common/scripts/clean_empty_dirs.php

Third-party example:

php index.php module_name.script_name
  -> executes modules/module_name/scripts/script_name.php

This should be the preferred method of executing PHP scripts included with
any third-party module, because it ensures that the working environment is
correct. For example, it will set the current working directory to Rhymix root,
check that the UID matches the usual web user, include all core libraries and
initialize the Context properly.

Over time, we will expand the command-line functionality similar to
the 'artisan' command in Laravel.
2023-08-16 23:12:25 +09:00
Kijin Sung
ea345ad7e1 Improve filtering of "allow" and "referrerpolicy" attributes of <iframe> 2023-08-16 22:41:14 +09:00
Kijin Sung
91efe04d7d Version 2.1.3 2023-08-15 14:52:11 +09:00
Kijin Sung
2197b0a982 Add option to control whether boards and pages are indexed by search engines, using the X-Robots-Tag header 2023-08-13 02:03:02 +09:00
Kijin Sung
58d6d51e9f Remove unnecessary condition in autoloader for custom namespaces 2023-08-12 21:55:20 +09:00
Kijin Sung
a7954506f6 Use associative array to store custom namespaces 2023-08-12 21:53:52 +09:00
Kijin Sung
911772393a Fix missing Context::init() in common script 2023-08-12 21:17:52 +09:00
Kijin Sung
47996cb294 Prevent Rhymix reserved namespaces from being registered as custom 2023-08-12 09:50:10 +09:00