Commit graph

19364 commits

Author SHA1 Message Date
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
52d11c58fb Clean up comments in index.php 2023-08-16 22:48:14 +09:00
Kijin Sung
ed424f031e Capitalization 2023-08-16 22:45:48 +09:00
Kijin Sung
ea345ad7e1 Improve filtering of "allow" and "referrerpolicy" attributes of <iframe> 2023-08-16 22:41:14 +09:00
Kijin Sung
2f97adb9bb Fix #2166 type mismatch 2023-08-16 22:18:52 +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
fde3609f70 Fix #2164 untranslated error message "categoryneeded" 2023-08-12 22:09:08 +09:00
Kijin Sung
d1012c7c42 Fix #2164 clarify help message about disabling categories 2023-08-12 22:05:25 +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
Kijin Sung
5823253d60 Optimize order of conditions in autoloader 2023-08-12 01:18:59 +09:00
Kijin Sung
cd0779862e Sort custom namespaces from longest to shortest before compiling regexp 2023-08-12 01:17:14 +09:00
Kijin Sung
48e0f55d6b Support event handlers (triggers) that are only called before/after specific action 2023-08-12 01:14:36 +09:00
Kijin Sung
e0a828079b Fix error when error message is null 2023-08-12 01:12:48 +09:00
Kijin Sung
316cb49729 Update unit test for ModuleActionParser 2023-08-11 22:17:10 +09:00
Kijin Sung
3241354872 Support customizing the default (base) class and install class of a module 2023-08-11 22:09:26 +09:00
Kijin Sung
7502b7308b Support custom namespaces in ModuleHandler and related processes 2023-08-11 21:56:42 +09:00
Kijin Sung
9e13c5ee6e Add convenience functions for XML parsing 2023-08-11 02:37:39 +09:00
Kijin Sung
57be6abc9d Make placeholder for custom prefix support in the future 2023-08-11 02:07:28 +09:00
Kijin Sung
a5bc18f015 Don't add regexp for custom namespaces empty if none are registered 2023-08-11 02:06:35 +09:00
Kijin Sung
32832d1ab2 Support custom namespaces in autoloader 2023-08-11 02:05:23 +09:00
Kijin Sung
4f9f641067 Add regexp to config for custom namespaces 2023-08-11 02:04:59 +09:00
Kijin Sung
4d4d454af0 Fix update_all_modules.php not calling all the update routines of the Install module 2023-08-11 01:38:28 +09:00
Kijin Sung
2219a77fb2 Register action forward routes, event handlers, etc. during initial installation process 2023-08-11 00:40:40 +09:00
Kijin Sung
0ef85632c1 Allow module update even if moduleUpdate() method does not exist 2023-08-11 00:40:13 +09:00
Kijin Sung
68ddac96e7 Remove event handlers and custom namespaces no longer defined by module.xml 2023-08-11 00:34:44 +09:00
Kijin Sung
acc1117d26 Register event handlers and custom namespaces defined in module.xml 2023-08-11 00:16:57 +09:00
Kijin Sung
d0306df095 Add parser logic for new module.xml settings 2023-08-10 23:52:01 +09:00
Kijin Sung
5881d08f6a Fix unit tests failing if nofollow attribute is turned on 2023-08-10 23:51:50 +09:00
Kijin Sung
6e7012394e Emphasize NOT in the common script error message 2023-08-10 10:57:02 +09:00
Kijin Sung
df7680d1ce Remove unnecessary $vid in default layout 2023-08-08 23:47:18 +09:00
Kijin Sung
85ceb564fa Add rx_ajax class to login form in xedition 2023-08-08 23:46:29 +09:00
Kijin Sung
ebcd6ceadd Fix return during transaction without rollback (fix #2163) 2023-08-08 23:41:28 +09:00
Kijin Sung
76fdcea292 Add helpful error messages to 3 most common error types
최근 커뮤니티 검색에서 가장 자주 발견되는 에러 타입 3가지:
  - 문자열에 따옴표 안 씀
  - stdClass 정의 안 함
  - 배열이 아닌 것에 배열 함수 사용
2023-08-08 01:12:12 +09:00
Kijin Sung
a36177d772 Dislay actual error location when a fatal error is caught by Debug class 2023-08-08 00:49:53 +09:00
Kijin Sung
e31704ffc2 Move friendly error message feature to Message module 2023-08-08 00:49:14 +09:00
Kijin Sung
26710e2675 Fix CSRF error when IS is requested by POST without CSRF token
https://xetown.com/questions/1779369
https://xetown.com/questions/1737862
https://xetown.com/questions/1776496
2023-08-07 22:25:54 +09:00
Kijin Sung
09d4935a01 Remove vid from IS sample code, and use proper code formatting 2023-08-07 22:22:53 +09:00
Kijin Sung
df6ccfc7d4 Show friendly error message for very common error conditions, such as Object class 2023-08-07 15:14:47 +09:00
Kijin Sung
3ea1567fda Stop allowing access to .php files under files/cache/
files/cache/document_category/<module_srl>.xml.php 파일에 직접 접근할 필요가
없게 되었으므로, files/cache/ 폴더 전체의 .php 파일 접근을 금지해도 무방함.
2023-08-07 00:35:40 +09:00
Kijin Sung
34f05b08de Use Rhymix action, not standalone .xml.php file, to load document category info 2023-08-07 00:35:13 +09:00
Kijin Sung
a609478db4 Fix "allow" attribute being removed from YouTube iframe code #2159 2023-08-06 18:32:04 +09:00
Kijin Sung
6afb32f652 Fix SimpleEditor not recognizing latest YouTube iframe code #2159 2023-08-06 18:24:28 +09:00
Kijin Sung
73ca0893d6 Fix #2158 module not deleted on first try 2023-08-06 18:16:40 +09:00
Kijin Sung
5716891c6c Remove unnecessary variable declaration 2023-08-05 16:11:29 +09:00
Kijin Sung
3cdd35911e Also set group_srl in response of procMemberAdminInsertGroup() 2023-08-05 16:09:37 +09:00
Kijin Sung
e37ca7c702 Fix missing encoding of HTML elements in group title and description 2023-08-05 16:08:39 +09:00