Commit Graph

865 Commits

Author SHA1 Message Date
Ilia
7f2d442374 No caching as potentially a mode can change during the call 2022-05-28 23:12:30 +03:00
Ilia
5df581e103 Fix to simplify mode test 2022-05-28 22:16:31 +03:00
Ilia
16e8f9ea9d Cache mode 2022-05-28 21:31:19 +03:00
Ilia
20bfc7785e Add standard admins; fix comments 2022-05-26 14:23:55 +03:00
Ilia
aa23ccf6e0 Fix webmin_user_can_rpc to have fallback admin users 2022-05-26 14:09:10 +03:00
Ilia
d102f80290 Separate Mail and Safe users; add convenience sub webmin_user_is 2022-05-26 14:04:48 +03:00
Ilia
26fa48623c Add unobtrusive way to test if user is privileged; separate RPC 2022-05-25 14:42:07 +03:00
Ilia
3f3b5bdf9c Fix admin check 2022-05-23 22:02:48 +03:00
Ilia
0e33aaa18d Fix var_dump filename 2022-05-15 13:17:35 +03:00
Jamie Cameron
6a2334bf8b Factor out check for root-ish user into a separate function https://github.com/webmin/webmin/issues/1635 2022-05-14 11:38:03 -07:00
Jamie Cameron
fb993f22f8 Fix checking for remote host 2022-05-09 22:11:02 -07:00
Ilia
15ec454fee Add improved var_dump functionality 2022-04-10 16:29:23 +03:00
Jamie Cameron
627d86f9e8 Don't ever delete /tmp 2022-02-21 15:06:00 -08:00
Ilia Rostovtsev
6f9f8c5182 Fix missing permission file creation for safe user in some modules 2022-02-20 16:32:57 +03:00
Ilia Rostovtsev
39ea464f0c Foreign module may need a check 2022-02-20 12:48:27 +03:00
Ilia Rostovtsev
561d53d90e Update to improve globals API 2022-02-08 01:36:01 +03:00
Ilia Rostovtsev
403fe939e0 Fix to store variable before deleted 2022-02-07 17:17:53 +03:00
Ilia Rostovtsev
3225be4ad1 Add support for getting and deleting global vars at once 2022-02-07 17:07:51 +03:00
Jamie Cameron
536827a96a Quote everything https://github.com/webmin/webmin/issues/1587 2022-01-28 18:11:41 -08:00
Ilia Rostovtsev
f94c695cdd Fix to swap var names for setting errors 2022-01-26 23:14:53 +03:00
Ilia Rostovtsev
6ff61e8001 Register error-fatal and error-fatal-ignored vars 2022-01-26 14:17:08 +03:00
Ilia Rostovtsev
e345ba5d4f Fix comment 2022-01-23 20:39:38 +03:00
Ilia Rostovtsev
08fd846c0f Fix indent 2022-01-23 16:57:24 +03:00
Ilia Rostovtsev
d92a35ac3c Add API to control global vars better
966d44ede5
d5082236f6
2022-01-23 16:52:31 +03:00
Ilia Rostovtsev
25a0a79b42 Add support for template substitution; fix bug for datetime replace 2021-12-26 19:45:53 +03:00
Ilia Rostovtsev
1579671702 Add new substitute_pattern API 2021-12-25 22:43:44 +03:00
Jamie Cameron
473776455d Non-empty hashes written to files should never be empty 2021-12-24 13:02:39 -08:00
Ilia Rostovtsev
e2ebee2bb0 Fix to expand passed parameters for webmin_log 2021-12-13 22:11:28 +03:00
Ilia Rostovtsev
0db149e7c5 Fix to prevent theme making HTML data
This is still `$main::webmin_script_type eq 'web'` so theme thinks it's going to UI
2021-12-12 18:49:17 +03:00
Jamie Cameron
92dbe035c6 Add option to control notification subject 2021-12-11 22:34:50 -08:00
Jamie Cameron
b3cb270cca Respect allowed user list for logging to email 2021-12-10 23:52:44 -08:00
Jamie Cameron
1784fc8609 Use forced IP for the transfer if there is one 2021-12-03 22:39:18 -08:00
Ilia Rostovtsev
52e87db941 Revert not to include webprefix in redirect 2021-12-04 00:33:34 +03:00
Ilia Rostovtsev
00015c81db Fix storing files on writing goto for the theme 2021-12-03 02:32:23 +03:00
Ilia Rostovtsev
36f95bf65c Add support for no-EOL for encode_base64 sub 2021-12-03 01:44:44 +03:00
Ilia Rostovtsev
26c4b93f2b Shorten tmp filenames 2021-12-03 00:25:05 +03:00
Ilia Rostovtsev
bfcf37d077 Fix redirect built for themes when used with webprefix 2021-12-02 22:23:29 +03:00
Ilia Rostovtsev
a3624c9bdc Fix to always fail on temp dir creation 2021-11-30 13:37:37 +03:00
Ilia Rostovtsev
d2caa052ec Fix to make resilient initial loads
https://forum.virtualmin.com/t/error-when-trying-to-log-into-root-server/113114
2021-11-29 16:43:11 +03:00
Jamie Cameron
23df49bab1 Tell fastrpc.cgi that it's being run locally 2021-11-27 13:32:13 -08:00
Ilia Rostovtsev
cf0cf19812 Fix to copy links first, no matter if dir or file 2021-11-21 17:52:44 +03:00
Ilia Rostovtsev
12db447514 Add API to check if foreign module's function exists 2021-10-26 22:33:49 +03:00
Ilia Rostovtsev
9be42454b0 Fix to load theme library to always get expected HTML 2021-10-24 17:40:43 +03:00
Ilia Rostovtsev
a9670389b7 Fix to improve var dumping
For example, can be used to easily dump more complex data structures, like `webmin_debug_var_dump(\@rv, 'get_all_domain_service_ssl_certs');` will nicely print always sorted nested hashes
2021-10-15 23:18:37 +03:00
Jamie Cameron
f2e21fbe5d Also flush cache of files that didn't exist the first time 2021-10-12 18:40:21 -07:00
Ilia Rostovtsev
180fac79c0 Fix to print pid in file name when dumping 2021-10-10 17:59:41 +03:00
Ilia Rostovtsev
5048ac67d7 Fix to escape special char 2021-10-10 17:02:20 +03:00
Ilia Rostovtsev
66e7b6530a Fix to allow underscores and dashes in var dump 2021-10-10 17:01:39 +03:00
Ilia Rostovtsev
309b9e86d1 Add API to return subroutine name of a code reference bafc3db725 2021-10-08 14:39:28 +03:00
Ilia Rostovtsev
5e8ae5f277 Add replacement param for html_strip sub 2021-10-03 20:18:57 +03:00