Compare commits

..

405 Commits
1.982 ... 1.993

Author SHA1 Message Date
Jamie Cameron
57c659d90a New version bump 2022-05-20 22:15:02 -07:00
Jamie Cameron
0117718f12 Merge branch 'master' of github.com:webmin/webmin 2022-05-19 20:56:48 -07:00
Jamie Cameron
68e1627eb7 Function to create a raid LV 2022-05-19 20:54:13 -07:00
Ilia
975362519a Display Release notes link for Ubuntu, Alma and Rocky 2022-05-20 00:43:29 +03:00
Ilia
05ff9c3619 Add more space before first link/button 2022-05-19 23:41:59 +03:00
Ilia
e91303b630 Update comment 2022-05-18 20:12:08 +03:00
Ilia
77e7db787a Fix systemd get root 2022-05-18 20:08:51 +03:00
Ilia
0e33aaa18d Fix var_dump filename 2022-05-15 13:17:35 +03:00
Jamie Cameron
88ec3a05cb 00~Report an error if updating the DNS records fails 2022-05-14 14:05:53 -07: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
3a6426858d Always quote 2022-05-13 23:50:45 -07:00
Jamie Cameron
8ed3bedbaa Merge branch 'master' of github.com:webmin/webmin 2022-05-11 21:22:05 -07:00
Jamie Cameron
b32cb7b0ba Figure out next run time in monthly mode https://github.com/webmin/authentic-theme/issues/1596 2022-05-11 21:21:59 -07:00
Ilia
bd383b0e78 Fix missing column in Fail2ban (File list) 2022-05-12 01:47:33 +03:00
Ilia
326ce82aa0 Support Squid v5.x 2022-05-11 00:27:27 +03:00
Ilia
25373eef90 Add All sessions button to list all currently logged in sessions 2022-05-10 13:10:03 +03:00
Ilia
031806f29c Display session delete and view log buttons on the dashboard 2022-05-10 12:02:24 +03:00
Jamie Cameron
fb993f22f8 Fix checking for remote host 2022-05-09 22:11:02 -07:00
Ilia
8404ff7d22 Show No password! in red 2022-05-08 00:37:23 +03:00
Jamie Cameron
385ccdf43f Use common function to check init script status, rather than looking for a file 2022-05-07 13:08:35 -07:00
Jamie Cameron
1a24cbc8ef Make the error message less confusing when just enabling an action 2022-05-07 12:21:43 -07:00
Jamie Cameron
6dc0a32013 Merge branch 'master' of github.com:webmin/webmin 2022-05-07 12:17:29 -07:00
Jamie Cameron
38dc8cdf4f We don't need to freeze and thaw on reload, as we do it before and after editing 2022-05-07 12:16:15 -07:00
Jamie Cameron
ac64ea08c0 Merge pull request #1632 from maykoli/dev/fix-sensors-fan-info
Fix sensors fans info parsing missing
2022-05-07 12:08:57 -07:00
Maykol
0196d33f7e Fix sensors fans information not saved in some cases 2022-05-07 13:18:03 +02:00
Ilia
c6e2df146a Fix to suppress error not command output 2022-05-06 20:17:51 +03:00
Jamie Cameron
3e01c24434 Suppress output in the right place 2022-05-01 17:31:01 -07:00
Jamie Cameron
a47ea3f4c5 New version bump 2022-04-30 16:33:23 -07:00
Jamie Cameron
6caa73858f Merge branch 'master' of github.com:webmin/webmin 2022-04-30 15:30:02 -07:00
Jamie Cameron
944886caea Licence is actually BSD-3 2022-04-30 15:29:50 -07:00
Ilia
3aa1dea739 Change mode for webmin-systemd to non exec 2022-04-30 16:53:13 +03:00
Ilia
6b629a4317 Fix to check if value exists first 2022-04-30 12:19:56 +03:00
Jamie Cameron
e0ea538216 Merge pull request #1628 from webmin/dev/postinstall-procedures
Dev/postinstall procedures
2022-04-27 20:50:20 -07:00
Jamie Cameron
802d58aa81 Change to dated-based serial by default https://github.com/virtualmin/virtualmin-gpl/issues/387 2022-04-26 19:07:59 -07:00
Jamie Cameron
066bb9cf37 Merge branch 'master' of github.com:webmin/webmin 2022-04-26 18:56:19 -07:00
Jamie Cameron
d54fa9028b Network line sometimes has 'metric XXX' in it https://github.com/virtualmin/virtualmin-pro/issues/25 2022-04-26 18:56:04 -07:00
Ilia
df7579a78a Fix to display as table for BIND and MySQL on these distros too 2022-04-27 00:00:47 +03:00
Ilia
5c04d35456 Print no bold 2022-04-26 01:53:30 +03:00
Ilia
d865737a45 Fix to hide scripts that mustn't be run directly; fix bugs 2022-04-25 17:04:01 +03:00
Ilia
dfbf80b3b1 Call force reload as restart-by-force-kill to make better sense 2022-04-25 15:36:50 +03:00
Ilia
e84bb09b81 Fix command presence test
https://github.com/webmin/webmin/pull/1628#discussion_r857203773
2022-04-25 13:46:31 +03:00
Ilia
17164f80b1 More warning messages updates 2022-04-24 17:46:53 +03:00
Ilia
14eacee616 Make warning message look better on Debian 2022-04-24 17:42:33 +03:00
Ilia
c026a53cf5 Add missing done 2022-04-24 12:48:32 +03:00
Ilia
08d7aae99c Fix new line 2022-04-24 11:41:26 +03:00
Ilia
1209e27531 Remove old code (sync with master) 2022-04-24 11:39:22 +03:00
Ilia
7e632d7769 This is atboot.pl not updateboot.pl 2022-04-24 11:21:13 +03:00
Jamie Cameron
0b3d63f5ef Delete the dsset- file even if DNS tools aren't being used 2022-04-23 21:47:01 -07:00
Jamie Cameron
6b43c981b8 Preserve key files when disabling DNSSEC 2022-04-23 18:23:17 -07:00
Ilia
fbed333160 Fix type - WARN instead of ERROR 2022-04-23 23:51:49 +03:00
Ilia
ad91683ffa Don't do cleaning, it will happen by the package manager 2022-04-23 23:50:00 +03:00
Jamie Cameron
f54022bff4 Make sure extra slaves are actually IPs https://forum.virtualmin.com/t/dns-secondary-slave/114752/9 2022-04-23 12:43:26 -07:00
Jamie Cameron
e51ff18396 Remove special-case replacement of stop script to fix an old bug 2022-04-23 12:34:18 -07:00
Jamie Cameron
579d377fad Map type lmdb is also editable https://sourceforge.net/p/webadmin/bugs/5558/ 2022-04-23 12:25:09 -07:00
Ilia
5ad6251cbd Fix setup.pl to accommodate latest changes with setup.sh 2022-04-23 21:58:22 +03:00
Jamie Cameron
714ac1242b Merge branch 'master' of github.com:webmin/webmin 2022-04-23 11:51:35 -07:00
Jamie Cameron
0c43244890 Just use systemctl if possible 2022-04-23 11:51:30 -07:00
Ilia
0dea6e0746 Fix to only test the command presence 2022-04-23 21:03:03 +03:00
Ilia
52cc3c5458 Fix links creation 2022-04-23 21:01:58 +03:00
Ilia
4d3dc79a43 Be explicit when Webmin cannot be restarted in those rare cases 2022-04-23 17:28:22 +03:00
Ilia
ee8e260664 Fail proof way of stopping Webmin server 2022-04-23 16:44:52 +03:00
Ilia
468945a74d Don't assume default 2022-04-23 15:48:56 +03:00
Ilia
6b3deb4d72 Remove stray PAM on uninstall 2022-04-23 15:14:01 +03:00
Ilia
3696c8ac74 We must clear the mess for systemd 2022-04-23 03:56:41 +03:00
Ilia
c1d660a996 This will be cleared by uninstall 2022-04-23 03:56:18 +03:00
Ilia
d8cd3c8ac8 Just remove commented out earlier 2022-04-23 03:36:38 +03:00
Ilia
da71f1dd3c Add After 2022-04-23 02:52:34 +03:00
Ilia
da3b4c6296 Clear systemd and do uninstall silently 2022-04-23 02:45:04 +03:00
Ilia
ba321fcd7e Remove sysconfig/daemons and don't clear rc*.d 2022-04-23 02:21:54 +03:00
Ilia
4b9895b334 Add sec check 2022-04-23 02:20:55 +03:00
Ilia
dd1927b54c Drop new file 2022-04-23 02:18:16 +03:00
Ilia
6846bfdda4 Update boot properly 2022-04-23 02:17:25 +03:00
Ilia
d3ad394bd8 Always update systemd script 2022-04-23 02:03:09 +03:00
Ilia
eeeae8a2f6 Fix indent 2022-04-23 01:20:32 +03:00
Ilia
9079d6121a Use recommended /etc/systemd/system by default 2022-04-23 01:14:19 +03:00
Ilia
05ed0be573 Fix systemd script generation for manual installs 2022-04-23 01:06:24 +03:00
Ilia
bc3da3462b Don't restart on failure 2022-04-23 00:34:27 +03:00
Ilia
98d3a1d984 Further revert back for RPM 2022-04-23 00:18:39 +03:00
Ilia
e0ece6d26b Partially revert incorrect assumptions in centralized startup 2/2 2022-04-23 00:13:39 +03:00
Ilia
3b722daa81 Enable service only after script is ready 2022-04-22 23:58:02 +03:00
Ilia
9b7e14d781 No need to store variable 2022-04-22 23:44:20 +03:00
Ilia
b70a9f9917 Enable only when switching to new systemd mode 2022-04-22 23:43:44 +03:00
Ilia
c466274443 Switch to creating centralized startup service in setup.sh 1/2 2022-04-22 17:17:01 +03:00
Ilia
8f3b2e350f Prevent fixing already fixed stop script 2022-04-22 15:05:17 +03:00
Ilia
5640bd6028 Remove creating init.d on package creation time 2022-04-22 14:42:04 +03:00
Ilia
574c5a39b4 Unroll previous changes 2022-04-22 14:41:14 +03:00
Ilia
68042ecec6 Fix systemctl test 2022-04-22 13:58:30 +03:00
Ilia
d7e04f64f7 Fix lost language block 2022-04-21 20:40:27 +03:00
Ilia
349741ce88 Fix generated scripts mod 2022-04-21 19:00:05 +03:00
Ilia
64c14c7975 Clear generated files upon installation 2022-04-21 17:06:41 +03:00
Ilia
13619825d9 Fix to properly deal with both init.d and systemd systems
a3680e0173 (r71796872)
2022-04-21 14:25:13 +03:00
Ilia
a3680e0173 Add support for native systemd webmin.service unit 2022-04-21 03:55:33 +03:00
Ilia
e1abbd61e3 Add extra euid check 2022-04-20 04:01:12 +03:00
Ilia
02e523b402 Fix to use native commands on systemd systems 2022-04-20 03:40:07 +03:00
Ilia
0c892589c9 Fix force-reload command 2022-04-19 20:20:09 +03:00
Ilia
b7f0d3f017 Remove obsolete code 2022-04-19 19:48:21 +03:00
Ilia
2b793e35d9 Avoid printing to STDOUT, print to webmin-setup.out when necessary 2022-04-19 18:16:24 +03:00
Ilia
1089bc8fb5 Fix STDOUT prints 2022-04-19 17:04:02 +03:00
Ilia
33bdfd423d Fix CentOS Stream Linux name 2022-04-18 19:01:42 +03:00
Ilia
d20ef75660 Merge remote-tracking branch 'origin/master' 2022-04-18 16:48:14 +03:00
Ilia
65008bfd09 Fix AlmaLinux name 2022-04-18 16:10:13 +03:00
Jamie Cameron
be4f3fdf69 New version bump 2022-04-17 19:41:18 -07:00
Jamie Cameron
a4ef1ee32a Merge branch 'master' of github.com:webmin/webmin 2022-04-17 19:38:33 -07:00
Ilia
5b53d2ae89 Fix checkbox to change in other modules 2022-04-18 00:38:41 +03:00
Ilia
6b08bdc8fb Fix URL bug 2022-04-18 00:35:35 +03:00
Jamie Cameron
8adb861694 Make sure new JAR is readable 2022-04-13 21:31:55 -07:00
Jamie Cameron
59989c888c Add extra check for firewalld module 2022-04-12 21:24:08 -07:00
Jamie Cameron
b0da3b6df3 Use INTERFACESv4 variable if defined https://sourceforge.net/p/webadmin/bugs/5556/ 2022-04-12 20:56:24 -07:00
Ilia
c9b5950efb Fix styling for consistency 2022-04-13 01:20:22 +03:00
Ilia
50e81d121c Fix a comment 2022-04-13 01:00:59 +03:00
Ilia
9b07f4c329 Fix to quotemeta commands 2022-04-13 00:57:59 +03:00
Ilia
73bb6c1eb4 Fix to remove perm ban; better logging; refactor 2022-04-12 21:34:05 +03:00
Ilia
e5ceaed8a7 Update comment 2022-04-12 20:17:31 +03:00
Jamie Cameron
5121ca0c4e Merge pull request #1624 from webmin/dev/fail2ban-jails-status-and-actions
Add jails status and actions 1/2 #1623
2022-04-11 21:38:42 -07:00
Ilia
a90e3077b5 Fix FirewallD translations 2022-04-12 02:29:29 +03:00
Ilia
977c4388ce Revert "Fix to try so solve branch conflict"
This reverts commit ac8cd2d152.
2022-04-12 02:24:58 +03:00
Ilia
ac8cd2d152 Fix to try so solve branch conflict 2022-04-12 02:23:14 +03:00
Ilia
1dca1ff4f7 Fix apply interface button 2022-04-12 02:13:57 +03:00
Ilia
bebbea8ebd Update wording and translations; better button color triggers 2022-04-12 01:10:49 +03:00
Ilia
3cbc170648 Fix default limit 2022-04-12 00:45:46 +03:00
Ilia
a38d1a0831 Add support for deleting rich rules; add IPs extraction limit 2022-04-12 00:41:35 +03:00
Ilia
6ebfbfbe94 Unless firewalld restart Fail2ban bans break and fail to work 2022-04-11 20:32:25 +03:00
Ilia
e2de5c5206 Fix to use language keys 2022-04-11 20:12:41 +03:00
Ilia
20c13c6d43 If FirewallD isn't running, don't fail and show start button 2022-04-11 19:53:10 +03:00
Ilia
7e58447ff0 Add List FirewallD Rules button to main page 2022-04-11 19:33:52 +03:00
Ilia
4cf9599089 Consider passed zone 2022-04-11 19:33:21 +03:00
Ilia
d68581243a Fix align, go back button and comments 2022-04-11 16:20:39 +03:00
Ilia
025bc7aeeb Add FirewallD rich and direct rules listing 1/2 #1622 2022-04-11 16:09:53 +03:00
Ilia
a7b09da991 Fix formatting 2022-04-11 13:55:59 +03:00
Ilia
094b330db1 Fix whitespace 2022-04-11 13:08:23 +03:00
Ilia
b0aee8b23b Merge pull request #1625 from webmin/dev/updated-translations
Updated translations (stray)
2022-04-11 11:52:42 +03:00
Ilia
2beca9ba98 Update translations 2022-04-11 11:51:21 +03:00
Jamie Cameron
86f26e2fd3 UI for editing max process lifetime 2022-04-10 19:43:13 -07:00
Jamie Cameron
7fbc37709b Merge branch 'master' of github.com:webmin/webmin 2022-04-10 18:15:22 -07:00
Jamie Cameron
365932d538 Add option to kill stuck processes https://forum.virtualmin.com/t/webmin-process-stay-here-forever/114607/23 2022-04-10 18:14:51 -07:00
Ilia
d521bec9a3 Fix wording and update translations 2022-04-11 03:56:54 +03:00
Ilia
bec2833eca Fix to not teletype jails name 2022-04-11 03:52:27 +03:00
Ilia
00b14be0a9 Update translations (new files) 2022-04-11 03:49:41 +03:00
Ilia
ac21ad3991 Update translations 2022-04-11 03:49:18 +03:00
Ilia
80dab78b23 Fix wording 2022-04-11 03:44:38 +03:00
Ilia
869c1575a0 Fix string 2022-04-11 03:43:49 +03:00
Ilia
b8e5075a63 Fix formatting 2022-04-11 03:40:50 +03:00
Ilia
2f5f372608 Fix to check if firewalld is used 2022-04-11 03:02:52 +03:00
Ilia
9fd80674c2 Fix to use – instead as it looks better 2022-04-11 02:41:32 +03:00
Ilia
a8569d62f0 Fix indent 2022-04-11 02:31:53 +03:00
Ilia
a9bbd5f01b Fix to handle no value case 2022-04-11 02:28:39 +03:00
Ilia
1c7a18f08f Add jails status and actions 2/2 #1623 2022-04-11 01:10:27 +03:00
Ilia
916600aa6d Add jails status and actions 1/2 #1623 2022-04-10 18:50:26 +03:00
Ilia
15ec454fee Add improved var_dump functionality 2022-04-10 16:29:23 +03:00
Jamie Cameron
acb503960a Make it clearer that having no interfaces selected means the zone applies to all 2022-04-09 22:07:06 -07:00
Ilia
cf4607b693 Ports can be a range 2022-04-10 03:10:20 +03:00
Jamie Cameron
18260a6399 Merge pull request #1621 from webmin/dev/firewalld-services-description
Add support for displaying service ports/protocols
2022-04-09 16:56:05 -07:00
Ilia
76adececf5 Display ports in parenthesis 2022-04-10 02:53:43 +03:00
Ilia
2fd31cdd38 Fix not to make protocol cell a link (for consistency) 2022-04-10 00:55:06 +03:00
Ilia
7994b5e62d Add description when editing service; change output for multi ports 2022-04-10 00:49:22 +03:00
Ilia
57e71aff37 Add support for displaying service ports/protocols 2022-04-10 00:29:02 +03:00
Jamie Cameron
6146c5faad Pass along type from confirmation form https://sourceforge.net/p/webadmin/bugs/5554/ 2022-04-09 13:22:33 -07:00
Jamie Cameron
31505d3136 Don't show as installed if firewalld is in use 2022-04-09 13:19:27 -07:00
Jamie Cameron
4a1c447cd1 Fix typo 2022-04-09 13:16:55 -07:00
Jamie Cameron
1028304a15 Re-factor function to detect external firewall 2022-04-09 13:05:28 -07:00
Ilia
f8334bd51e Add few small styling improvements 2022-04-09 22:23:41 +03:00
Jamie Cameron
cd85984507 Merge branch 'master' of github.com:webmin/webmin 2022-04-04 21:45:13 -07:00
Jamie Cameron
cc0c4c6e49 RSS is a better measure of size than VSS 2022-04-04 21:45:02 -07:00
Ilia
3b566b214e Fix Kali and Parrot base version 2022-04-01 16:44:08 +03:00
Ilia
157b119265 Fix more tabs 2022-04-01 16:39:37 +03:00
Ilia
64e79505ee Fix tab 2022-04-01 16:38:41 +03:00
Ilia
d54e497085 Add Parrot OS support
https://sourceforge.net/p/webadmin/discussion/600155/thread/2b857cfb2b/?limit=25
2022-04-01 16:10:27 +03:00
Ilia
d941cbf5c0 Update translations 2022-04-01 16:09:57 +03:00
Jamie Cameron
a80024fe70 Handle case where <IfModeule prefork.c> is used 2022-03-31 22:35:40 -07:00
Jamie Cameron
d9f6f41340 Merge branch 'master' of github.com:webmin/webmin 2022-03-31 22:34:41 -07:00
Jamie Cameron
4a8ae7cb91 pg_hba.conf can be under a versioned subdirectory on other distros too 2022-03-31 22:34:33 -07:00
Ilia
1dcc0f164e Fix possibly missing attachment name in mail queues 2022-03-31 23:44:22 +03:00
Jamie Cameron
1243cd0441 pg_hba.conf can be under a versioned subdirectory https://github.com/webmin/webmin/issues/1615 2022-03-30 19:40:24 -07:00
Jamie Cameron
b9cbbc8026 Don't suppress error output https://github.com/webmin/webmin/issues/1612 2022-03-30 19:35:37 -07:00
Jamie Cameron
2b4367634c systemd daemon needs restart before running init scripts 2022-03-30 09:34:09 -07:00
Jamie Cameron
6e26e4a20e Merge branch 'master' of github.com:webmin/webmin 2022-03-29 19:51:30 -07:00
Jamie Cameron
32baf0039f daemon-reload is needed before init scripts work https://github.com/webmin/webmin/issues/1612 2022-03-29 19:37:49 -07:00
Ilia
086bd55ddd Add support for configuring internal redirects using UI #1588 2022-03-29 23:21:54 +03:00
Jamie Cameron
5201cbe0e6 Fix setup output path 2022-03-28 23:05:09 -07:00
Jamie Cameron
9fb000e9c6 Minor code cleanup 2022-03-27 09:21:16 -07:00
Jamie Cameron
4a12e37f9a Merge branch 'master' of github.com:webmin/webmin 2022-03-27 09:19:54 -07:00
Ilia
d19b5e20f3 Fix rsyslog get pid
Directly affects Ubuntu 20.04+ and Debian 10+
2022-03-27 15:41:08 +03:00
Jamie Cameron
aac695dc8a Merge branch 'master' of github.com:webmin/webmin 2022-03-26 12:42:58 -07:00
Jamie Cameron
32953d7ffa Local SMTP might require SSL 2022-03-26 11:13:01 -07:00
Ilia
919691b461 Fix MySQL Japanese translations 2022-03-26 00:48:21 +02:00
Jamie Cameron
075bec56d2 Merge pull request #1613 from cnotin/patch-1
Fix "compatability" typo in mysql english
2022-03-25 15:39:32 -07:00
Clément Notin
f7cbfb3c0e Fix "compatability" typo in mysql english 2022-03-25 22:48:46 +01:00
Ilia
d8dcb320dd Merge branch 'master' of github.com:webmin/webmin 2022-03-25 00:18:51 +02:00
Ilia
628e4b3b18 Fix contact until really changed 2022-03-24 23:26:14 +02:00
Jamie Cameron
151ee23f3b Merge branch 'master' of github.com:webmin/webmin 2022-03-23 19:21:35 -07:00
Jamie Cameron
b69b538d61 Fix handling of keys in allow-transfer https://github.com/webmin/webmin/issues/1611 2022-03-23 19:02:10 -07:00
Ilia
a7790c5fc7 Fix to escape even static params 2022-03-22 11:09:41 +02:00
Ilia Rostovtsev
1066fd79af Fix GPG fingerprint extraction 2022-03-21 23:22:45 +02:00
Ilia Rostovtsev
6519246aef Add ability to update the key's contacts 2022-03-21 22:45:59 +02:00
Ilia Rostovtsev
5662ee9062 Fix missed escape for @ 2022-03-21 22:01:30 +02:00
Ilia Rostovtsev
69c3247d34 Add new email for GPG setup 2022-03-21 21:43:56 +02:00
Ilia Rostovtsev
7deaf553c4 Update contacts 2022-03-21 21:00:15 +02:00
Ilia Rostovtsev
a2a09dfc47 Fix RHEL BIND config 2022-03-18 23:58:05 +02:00
Jamie Cameron
9f53cbf783 Merge pull request #1610 from marclaporte/patch-1
Fix a typo
2022-03-14 20:50:21 -07:00
Marc Laporte
f3fccdb917 Fix a typo 2022-03-14 23:19:00 -04:00
Jamie Cameron
17f79c94b2 Fix check for syslog-ng being running https://github.com/webmin/webmin/issues/1606 2022-03-11 12:09:01 -08:00
Jamie Cameron
97e9da2645 Fix syslog-ng path again 2022-03-11 12:05:02 -08:00
Jamie Cameron
cef983f4f2 Always update to NSEC3 records if the type changed https://sourceforge.net/p/webadmin/bugs/5552/ 2022-03-11 10:30:46 -08:00
Jamie Cameron
3d3c6e9ef5 Merge branch 'master' of github.com:webmin/webmin 2022-03-11 10:24:25 -08:00
Jamie Cameron
40cbc1787b Show key algorithm 2022-03-11 10:22:33 -08:00
Ilia Rostovtsev
543107dfcd Fix typo in called function name https://github.com/webmin/webmin/issues/1608 2022-03-11 16:20:14 +02:00
Jamie Cameron
aee4c546e6 Fix syslog-ng PID file path https://github.com/webmin/webmin/issues/1606 2022-03-09 17:55:03 -08:00
Jamie Cameron
010936b111 Major version bump 2022-03-01 20:39:53 -08:00
Jamie Cameron
f365761bd3 Use legacy command in init script if installed https://github.com/webmin/webmin/issues/1603 2022-02-27 16:55:38 -08:00
Jamie Cameron
1279626597 Fail nicely if there is no zone file https://forum.virtualmin.com/t/trouble-with-server-creation-and-dnssec-key/114027/10 2022-02-23 16:28:00 -08:00
Jamie Cameron
c480b26605 Small version bump 2022-02-21 17:21:39 -08:00
Jamie Cameron
3050508644 Merge branch 'master' of github.com:webmin/webmin 2022-02-21 16:56:39 -08:00
Jamie Cameron
d300bc1b07 Disallow any top-level directories 2022-02-21 16:53:34 -08:00
Ilia Rostovtsev
e77b0a8dd0 Update translations 2022-02-22 02:45:45 +03:00
Ilia Rostovtsev
fe83967c94 Merge remote-tracking branch 'origin/master' 2022-02-22 02:37:35 +03:00
Ilia Rostovtsev
bd6912deaa Allow escaping log page; add title from caller cc1d97cdd8 2022-02-22 02:37:10 +03:00
Jamie Cameron
778d67f662 Don't allow tempdir to be set to /tmp 2022-02-21 15:14:01 -08:00
Jamie Cameron
627d86f9e8 Don't ever delete /tmp 2022-02-21 15:06:00 -08:00
Jamie Cameron
c8d3e737bd Use consistent function for server name 2022-02-20 20:04:26 -08:00
Jamie Cameron
0176449a81 Check for any of the drive IDs 2022-02-20 19:59:35 -08:00
Jamie Cameron
fe9573eaa2 Fail fast if there's no zone file 2022-02-20 19:58:38 -08:00
Jamie Cameron
7c36902b12 Check harder if syslog-ng is actually being used 2022-02-20 19:57:25 -08:00
Jamie Cameron
232d012a67 Check if syslog-ng is actually running 2022-02-20 19:54:53 -08:00
Jamie Cameron
491a91dbfc Use ui-lib 2022-02-20 19:51:06 -08:00
Jamie Cameron
61892753b7 Use new ui-lib, and add columns for in and out traffic https://github.com/webmin/webmin/issues/1600 2022-02-20 13:01:16 -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
Jamie Cameron
b374ad7d28 Use grid table UI 2022-02-19 15:39:39 -08:00
Jamie Cameron
22964473ec Fix wording 2022-02-19 15:32:13 -08:00
Jamie Cameron
e5baa97295 Use new UI lib 2022-02-19 15:29:02 -08:00
Jamie Cameron
548c554a09 Merge branch 'master' of github.com:webmin/webmin 2022-02-19 13:11:03 -08:00
Jamie Cameron
eeeea3c097 Add missing permissions check when saving allowed cron users 2022-02-19 13:10:36 -08:00
Ilia Rostovtsev
3bd9b9dcbe Add status to systemd services 2022-02-19 16:17:23 +03:00
Jamie Cameron
f472208894 Add a security page 2022-02-19 00:02:51 -08:00
Jamie Cameron
c686cfab4e State can be active (exited) when a service is down https://forum.virtualmin.com/t/apparmor/113924/12 2022-02-17 15:43:55 -08:00
Jamie Cameron
dd8685b71a Handle case of disks with multiple IDs that might change 2022-02-15 19:47:41 -08:00
Jamie Cameron
7c8f750364 Disks can have multiple IDs 2022-02-15 19:32:17 -08:00
Jamie Cameron
d44df676bf Merge branch 'master' of github.com:webmin/webmin 2022-02-11 22:24:04 -08:00
Jamie Cameron
aad57cca7c No need for allow from all under Apache 2.4+ 2022-02-11 22:23:23 -08:00
Ilia Rostovtsev
b54a6388ba No need for heading in default table mode 2022-02-10 15:27:06 +03:00
Jamie Cameron
7474f4399f Fix perl warning 2022-02-09 22:40:14 -08:00
Jamie Cameron
feaa6e76c6 Add warning if Virtualmin manages the procmail config 2022-02-09 21:41:52 -08:00
Jamie Cameron
34a6e393ce defang_mime isn't used after version 2.6 2022-02-09 18:54:28 -08:00
Jamie Cameron
30c9cc1b21 detailed_phrase_score isn't used after version 2.6 2022-02-09 18:52:22 -08:00
Jamie Cameron
f794426715 Perl is required for the pre-install script https://sourceforge.net/p/webadmin/bugs/5548/ 2022-02-08 19:47:14 -08:00
Jamie Cameron
23b11d340d Don't try to load firewall6-lib.pl https://github.com/webmin/webmin/issues/1596 2022-02-07 22:07:50 -08:00
Jamie Cameron
6a4ca6f5a2 Merge branch 'master' of github.com:webmin/webmin 2022-02-07 17:41:01 -08:00
Jamie Cameron
8c0fb0ab83 Don't show disk space warnings to domain owners https://github.com/virtualmin/virtualmin-gpl/issues/368 2022-02-07 17:40:37 -08: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
e00939dc24 Use a better function to map the config file to the pool directory 2022-02-06 13:35:52 -08:00
Jamie Cameron
5b7ccc0342 Merge pull request #1594 from webmin/dev/restart-correct-php-fpm
Fix to restart correct PHP-FPM service
2022-02-06 13:30:37 -08:00
Jamie Cameron
73dd030255 Merge pull request #1595 from webmin/dev/fix-systemd-service-detection
Fix systemd service detection
2022-02-06 13:24:25 -08:00
Ilia Rostovtsev
682a7910ec Fix indent 2022-02-06 21:05:05 +03:00
Ilia Rostovtsev
ef0d07f55b Fix systemd service detection
https://github.com/virtualmin/virtualmin-pro/issues/16#issuecomment-1030869911
2022-02-06 21:03:59 +03:00
Ilia Rostovtsev
f774fe73b6 Fix to quotemeta dir 2022-02-06 20:39:54 +03:00
Ilia Rostovtsev
30a3c3c052 Fix to restart correct PHP-FPM service 2022-02-06 20:35:29 +03:00
Ilia Rostovtsev
8370a5958f Fix help links 2022-02-03 23:06:01 +03:00
Jamie Cameron
0424069d59 Merge branch 'master' of github.com:webmin/webmin 2022-02-01 19:34:50 -08:00
Jamie Cameron
dd5bce5adf Always set ENV{'PASS'} when needed https://sourceforge.net/p/webadmin/bugs/5542/ 2022-02-01 19:34:40 -08:00
Ilia Rostovtsev
323e789c16 Fix to quotemeta when generating certs
https://github.com/virtualmin/virtualmin-gpl/issues/363#issuecomment-1026438307
2022-02-02 01:08:27 +03:00
Ilia Rostovtsev
4f9cba0b33 Fix to drop beloved line separators for Apache config formatter 2022-02-01 22:44:00 +03:00
Jamie Cameron
9146fc9969 Merge branch 'master' of github.com:webmin/webmin 2022-01-31 20:54:20 -08:00
Jamie Cameron
8e378129d0 Replacement field in NAPTR doesn't need quotes 2022-01-31 20:53:55 -08:00
Ilia Rostovtsev
292db2b760 Add more quotemeta escapes for commands 2022-01-31 13:29:13 +03:00
Ilia Rostovtsev
a8084803db Add more quotemeta commands escapes
https://github.com/webmin/webmin/issues/1587
2022-01-31 03:25:43 +03:00
Jamie Cameron
c1b0147a98 Merge branch 'master' of github.com:webmin/webmin 2022-01-30 14:21:16 -08:00
Jamie Cameron
909b1d56f8 Add support for NAPTR records 2022-01-30 14:20:30 -08:00
Ilia Rostovtsev
b647c2c084 Fix to display sub-title in virtual server mode 2022-01-30 16:47:06 +03:00
Jamie Cameron
80ac0fdbc9 Merge pull request #1588 from webmin/dev/usermin-redirect-url
Add support for custom redirect URL for Usermin
2022-01-29 19:39:24 -08:00
Jamie Cameron
536827a96a Quote everything https://github.com/webmin/webmin/issues/1587 2022-01-28 18:11:41 -08:00
Jamie Cameron
d17f01b33a Merge branch 'master' of github.com:webmin/webmin 2022-01-28 15:40:21 -08:00
Jamie Cameron
f35b08dc94 Ensure socket is closed after an error 00~https://github.com/webmin/webmin/issues/158401~ 2022-01-28 15:39:57 -08:00
Jamie Cameron
c6bedaa4f7 Merge pull request #1589 from bctrainers/master
LetsEncrypt Staging URL update
2022-01-27 21:17:14 -08:00
Ilia Rostovtsev
23f853384d Display no return to index when searched from other location 2022-01-27 15:11:02 +03:00
Ilia Rostovtsev
525a835d23 Reset Virtualmin links if logging enabled/disabled 2022-01-27 15:07:25 +03:00
Ilia Rostovtsev
73244f2ba7 Always add a reference for inline tag printing! 2022-01-27 14:54:35 +03:00
Ilia Rostovtsev
08388f58ed Display not return to module index button if searched from outside 2022-01-27 14:49:47 +03:00
Brett
deebc0091a LE Staging URL update
LetsEncrypt staging URL changed per https://letsencrypt.org/docs/staging-environment/
2022-01-27 05:49:30 -06:00
Ilia Rostovtsev
ad24c08fda Optionally hide return to module button for external searches 2022-01-27 14:40:22 +03:00
Ilia Rostovtsev
b7a865d1cf Allow custom title when searching from Virtualmin or other 2022-01-27 14:31:09 +03:00
Ilia Rostovtsev
ef2657364a Add support for custom redirect URL for Usermin 2022-01-27 13:26:35 +03: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
374f020ce7 Fix to use quotemeta instead 3c687b46be (commitcomment-64599299) 2022-01-25 23:37:15 +03:00
Ilia Rostovtsev
3c687b46be Fix to consider filenames with spaces 2022-01-25 17:31:21 +03:00
Jamie Cameron
758db4c2f5 Improve folder locking functions for use in Usermin 2022-01-23 11:46:08 -08:00
Jamie Cameron
59a5332c21 Merge branch 'master' of github.com:webmin/webmin 2022-01-23 10:04:38 -08:00
Jamie Cameron
22ecccbd1d Fix perl warnings https://sourceforge.net/p/webadmin/bugs/5540/ 2022-01-23 10:04:17 -08: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
Jamie Cameron
e8c35eaac7 Merge pull request #1586 from gratuxri/patch-1
Fix Return to Records if using views
2022-01-22 16:16:12 -08:00
gratuxri
47f51a4a83 Fix Return to Records if using views 2022-01-23 00:17:03 +01:00
Jamie Cameron
f5ef354f57 Merge pull request #1585 from danci1973/dmarc_tags
Added missing DMARC tags (fr ri) #1583
2022-01-22 11:37:44 -08:00
danci
72fdc331a6 Added missing DMARC tags (fr ri)
Committer: danci <danci@barbie.agenda.si>

 On branch dmarc_tags
 Changes to be committed:
	modified:   bind8/bind8-lib.pl
	modified:   bind8/lang/en
	modified:   bind8/records-lib.pl
	modified:   bind8/save_record.cgi
2022-01-22 20:10:41 +01:00
Jamie Cameron
89f6c07ce3 Twofactor token can be 16, 26 or 32 characters 2022-01-18 22:26:06 -08:00
Jamie Cameron
9e8747ede4 Add extra check for wrong packet size https://forum.virtualmin.com/t/virtualmin-backup-truncates-part-of-mysql-dump-without-generating-error/113551/9 2022-01-12 21:11:51 -08:00
Jamie Cameron
652d40801b Merge branch 'master' of github.com:webmin/webmin 2022-01-11 20:39:11 -08:00
Jamie Cameron
5ca4ed73b2 Password never contains newlines 2022-01-11 20:36:19 -08:00
Ilia Rostovtsev
df3b5eb94c Add ability to return a list of other Webmin servers as JSON 2022-01-12 00:36:52 +03:00
Jamie Cameron
5a508eb0e9 TTL can be zero https://github.com/webmin/webmin/issues/1577 2022-01-10 21:39:37 -08:00
Jamie Cameron
344bd72f0d Merge branch 'master' of github.com:webmin/webmin 2022-01-10 21:31:33 -08:00
Jamie Cameron
0d6b655314 Check for more algorithms https://github.com/webmin/webmin/issues/1576 2022-01-10 21:10:43 -08:00
Ilia Rostovtsev
60a5ea924e Add better duped uploads name; extract on upload predictably 2022-01-06 14:47:47 +03:00
Jamie Cameron
0e1f7d8d72 Cache list of systemd services https://forum.virtualmin.com/t/new-way-to-copy-system-information-data/113433/12 2022-01-04 22:41:34 -08:00
Jamie Cameron
2602f8dbe1 Don't read init scripts if not looking for one https://forum.virtualmin.com/t/new-way-to-copy-system-information-data/113433/12 2022-01-04 22:35:18 -08:00
Jamie Cameron
14962255a9 Fix dpkg output parsing https://sourceforge.net/p/webadmin/bugs/5538/ 2022-01-04 20:41:56 -08:00
Jamie Cameron
5f25929596 Merge branch 'master' of github.com:webmin/webmin 2022-01-03 11:22:12 -08:00
Jamie Cameron
176d890ebc Fix URL for downloading debian package of usermin https://sourceforge.net/p/webadmin/bugs/5538/ 2022-01-03 11:21:32 -08:00
Ilia Rostovtsev
41eeff8eca Add API to return current monitors status
https://github.com/virtualmin/authentic-theme/issues/1574#issuecomment-1003697841

Output example:

```
'bind8' => {
    'icon' => '/status/images/down.gif',
    'icon_title' => 'Local',
    'status' => 0,
    'status_text' => '<font color=#ff0000>Down</font>',
    'title' => 'BIND DNS Server'
  },
```
2022-01-02 16:06:01 +03:00
Jamie Cameron
d996e99c60 Fix ubuntu version detection for development release names 2022-01-01 22:13:28 -08:00
Jamie Cameron
d685e8aec1 Never prompt the user for an OS .. just fail https://sourceforge.net/p/webadmin/bugs/5536/ 2022-01-01 18:40:28 -08:00
Jamie Cameron
68a7ca85ba Make warning about missing crond more obvious 2021-12-31 23:17:11 -08:00
Jamie Cameron
b8d5b7afde Add stop/start buttons 2021-12-31 23:11:53 -08:00
Jamie Cameron
8a51d178df Fix unix permissions 2021-12-31 22:06:33 -08:00
Jamie Cameron
8e2a5fa7ad Clean up message names 2021-12-31 22:05:43 -08:00
Jamie Cameron
c29682afc7 Better handle case where some requested packages don't exist 2021-12-31 12:28:22 -08:00
Jamie Cameron
41800b10f9 Uninstall scripts can exist for themes too 2021-12-28 21:00:10 -08:00
Jamie Cameron
0e3b7e4d94 IPset code cleanup and better rule description 2021-12-27 13:27:31 -08:00
Jamie Cameron
ebe9d58594 Add support for editing IPset match rules 2021-12-27 13:08:26 -08:00
Jamie Cameron
24b3715b95 Fix ipset display 2021-12-27 12:33:40 -08:00
Jamie Cameron
250e579fe4 Merge branch 'master' of github.com:webmin/webmin 2021-12-27 11:14:23 -08:00
Jamie Cameron
ad1b65621b Make warning more scary 2021-12-27 11:13:04 -08:00
Ilia Rostovtsev
68f02e8e2b Add Ubuntu 21 and 22 detection 2021-12-27 14:14:10 +03:00
Jamie Cameron
1a12d6d560 Fix formatting 2021-12-26 22:52:02 -08:00
Jamie Cameron
dbf9c9c96b Recognize --match-set 2021-12-26 22:46:54 -08:00
Jamie Cameron
cc7e470139 Merge branch 'master' of github.com:webmin/webmin 2021-12-26 20:29:28 -08:00
Jamie Cameron
15243eff0d Add option for memcache session path 2021-12-26 20:21:32 -08:00
Ilia Rostovtsev
25a0a79b42 Add support for template substitution; fix bug for datetime replace 2021-12-26 19:45:53 +03:00
Jamie Cameron
158d0e7c34 New version bump 2021-12-25 12:51:53 -08:00
Jamie Cameron
c834423046 Fix duplicate string 2021-12-25 12:51:09 -08:00
Jamie Cameron
37191fb1c8 Remove duplicate %in 2021-12-25 12:46:41 -08: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
Jamie Cameron
4c865c5fc8 Add missing quote 2021-12-24 10:21:02 -08:00
Jamie Cameron
134311032e Show leases inside shared networks as well https://sourceforge.net/p/webadmin/bugs/5534/ 2021-12-23 21:47:44 -08:00
Jamie Cameron
a37b82d0d1 Merge branch 'master' of github.com:webmin/webmin 2021-12-20 22:01:21 -08:00
Jamie Cameron
210bf899d1 changelog for fail2ban feature 2021-12-20 22:01:06 -08:00
Ilia Rostovtsev
fb0b5fac8f Add overwrite control when uploading a file in File Manager 2021-12-20 21:47:34 +03:00
Ilia Rostovtsev
216b8ea2e4 Fix to match a token multiple times
https://sourceforge.net/p/webadmin/bugs/5535/
2021-12-16 13:55:29 +03:00
Jamie Cameron
d95e2caca9 If any fail2ban rules already exist before applying, re-merge them 2021-12-15 22:10:29 -08:00
Jamie Cameron
41214d6d96 Merge branch 'master' of github.com:webmin/webmin 2021-12-14 11:03:51 -08:00
Jamie Cameron
3542519fe2 Allow HTTP codes to be selected https://github.com/webmin/webmin/issues/1564 2021-12-14 10:58:24 -08:00
Ilia Rostovtsev
a4a3e867bc Update translations 2021-12-14 20:17:10 +03:00
Jamie Cameron
01fcf9648f Include failed login logger 2021-12-13 15:33:12 -08:00
Ilia Rostovtsev
e2ebee2bb0 Fix to expand passed parameters for webmin_log 2021-12-13 22:11:28 +03:00
Jamie Cameron
d9b8ecbba7 Merge branch 'master' of github.com:webmin/webmin 2021-12-12 19:20:04 -08:00
Jamie Cameron
33232622d3 Use tabs to simplify the page 2021-12-12 18:50:09 -08:00
Ilia Rostovtsev
ee921a67e7 Fix stomped table header for Webmin Action Log module index page 2021-12-12 19:00:00 +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
Ilia Rostovtsev
0b840ff8b6 Update translations 2021-12-12 18:39:16 +03:00
Jamie Cameron
92dbe035c6 Add option to control notification subject 2021-12-11 22:34:50 -08:00
Jamie Cameron
a75f7d5a57 Set user environment variable, as remote_user gets re-set from it: 2021-12-11 20:54:11 -08:00
Jamie Cameron
10e9664ecf Updates to the notification email form 2021-12-10 23:54:01 -08:00
Jamie Cameron
b3cb270cca Respect allowed user list for logging to email 2021-12-10 23:52:44 -08:00
Jamie Cameron
d7915e785b Form to save notification settings 2021-12-10 22:14:56 -08:00
Jamie Cameron
795fbc6449 Add ACL for setting up notifications 2021-12-10 21:47:56 -08:00
Jamie Cameron
9b164397b0 Form for setting up notifications 2021-12-10 21:25:53 -08:00
Jamie Cameron
974b18a52c Set DNSn keys if the operating system supports them 2021-12-10 20:57:33 -08:00
Jamie Cameron
aab80b67b9 Don't alloction an IPv6 socket if not supported 2021-12-08 08:56:17 -08:00
Jamie Cameron
098a7a0080 Merge branch 'master' of github.com:webmin/webmin 2021-12-08 08:54:41 -08:00
Jamie Cameron
73c0209111 Fix duplicate import 2021-12-08 08:51:28 -08:00
Ilia Rostovtsev
732941d30a Fix to handle removed options in MySQL 8 #1561 2021-12-08 15:59:33 +03:00
Ilia Rostovtsev
ba25971b89 Revert "Add missing lib call"
This reverts commit d4c61774ee.
2021-12-08 12:29:44 +03:00
Jamie Cameron
951fcc8e51 Merge branch 'master' of github.com:webmin/webmin 2021-12-06 19:41:44 -08:00
Jamie Cameron
56a7828978 Add function to cleanup let's encrypt files for a domain 2021-12-06 19:41:37 -08:00
Ilia Rostovtsev
d4c61774ee Add missing lib call
https://forum.virtualmin.com/t/new-version-of-webmin-causes-problem-with-my-cron/113175/15
2021-12-06 18:47:04 +03:00
Jamie Cameron
92369af3d7 Support systems with more than 10 disks https://sourceforge.net/p/webadmin/bugs/5530/ 2021-12-04 08:44:28 -08:00
Jamie Cameron
1784fc8609 Use forced IP for the transfer if there is one 2021-12-03 22:39:18 -08:00
Jamie Cameron
9df4b2b32d Fix use of IPv6 for file transfers https://forum.virtualmin.com/t/new-version-of-webmin-causes-problem-with-my-cron/113175/9 2021-12-03 22:12:00 -08:00
Jamie Cameron
2adb22b9b8 Merge pull request #1560 from webmin/dev/add-link-mod-lib
Add `link-lib.pl` for module config not to fail
2021-12-03 19:37:26 -08:00
Ilia Rostovtsev
ff2bc98975 Add empty link-lib.pl for module config not to fail
Otherwise the error is getting returned - Require link/link-lib.pl failed : Died at (eval 300) line 1.
2021-12-04 00:46:58 +03:00
Ilia Rostovtsev
52e87db941 Revert not to include webprefix in redirect 2021-12-04 00:33:34 +03:00
Ilia Rostovtsev
439c80d08c Fix bookmarks in File Manager in older themes
https://sourceforge.net/p/webadmin/bugs/5525/
2021-12-03 22:28:16 +03:00
Ilia Rostovtsev
0a3f8985d0 Fix regex for CPU temp https://github.com/webmin/webmin/issues/1552#issuecomment-985504912 2021-12-03 21:58:16 +03:00
Jamie Cameron
5650af58c0 Merge pull request #1559 from niyari/patch-link
Update /link ja translations
2021-12-02 23:35:57 -08:00
niyari
24c08f9079 Fix newline at eof 2021-12-03 16:17:22 +09:00
niyari
f5d4c1bdcf Update /link ja translations 2021-12-03 14:53:06 +09:00
Jamie Cameron
f39b3a4386 New minor version 2021-12-02 21:02:03 -08: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
0af321fd26 Print referer warning with color 2021-12-02 22:32:15 +03:00
Ilia Rostovtsev
bfcf37d077 Fix redirect built for themes when used with webprefix 2021-12-02 22:23:29 +03:00
Ilia Rostovtsev
0126e3cc20 Update BIND module translations (de) 2021-12-02 20:01:43 +03:00
Ilia Rostovtsev
b31a8629a2 Update BIND module translations #1553#issuecomment-984776943 2021-12-02 19:56:10 +03:00
Ilia Rostovtsev
3ac1cfec61 Fix an error use of uninitialized value $user in concatenation 2021-12-01 12:48:14 +03:00
Ilia Rostovtsev
a3624c9bdc Fix to always fail on temp dir creation 2021-11-30 13:37:37 +03:00
Ilia Rostovtsev
c364fbdf29 Extract more sensors for System and Server Status monitors 2021-11-29 20:47:35 +03:00
Ilia Rostovtsev
a18bf52ce0 Extract ASUS like motherboards CPU fans and temp data
https://sourceforge.net/p/webadmin/discussion/600155/thread/1b4ee640c6/
2021-11-29 19:48:35 +03:00
Ilia Rostovtsev
72b2d1d291 Merge branch 'master' of github.com:webmin/webmin 2021-11-29 16:45:09 +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
ce97b752db Merge pull request #1554 from niyari/patch-custom-link-ja
Update /link japanese translation.
2021-11-28 15:49:54 -08:00
Ilia Rostovtsev
1e0cfa5b23 Fix to prioritize CPU package core temperature over motherboard sensor 2021-11-28 22:17:54 +03:00
Ilia Rostovtsev
caf00b1423 IPv6 address is case insensitive 2021-11-28 18:59:27 +03:00
Ilia Rostovtsev
a76d529a5c Fix IPv6 format for regex 2021-11-28 18:53:19 +03:00
Ilia Rostovtsev
11ec33ae5e Remove debug sub 2021-11-28 16:37:03 +03:00
Ilia Rostovtsev
bdb0132cb4 Fix IPv6 support with TCP Wrappers module
https://sourceforge.net/p/webadmin/bugs/5506/
https://sourceforge.net/p/webadmin/bugs/5521/
2021-11-28 16:34:50 +03:00
niyari
7c280f0d43 Delete .auto file 2021-11-28 15:44:02 +09:00
niyari
ccb397c433 Update /link japanese translation. 2021-11-28 15:43:49 +09:00
Jamie Cameron
f8be02018c Also accept IPv6 fastRPC connections if supported https://github.com/virtualmin/virtualmin-gpl/issues/332 2021-11-27 13:37:00 -08:00
Jamie Cameron
23df49bab1 Tell fastrpc.cgi that it's being run locally 2021-11-27 13:32:13 -08:00
Jamie Cameron
f54788ea88 Fix perl error due to text string for CAA records https://github.com/webmin/webmin/issues/1553 2021-11-27 11:46:31 -08:00
976 changed files with 10149 additions and 2004 deletions

View File

@@ -215,7 +215,7 @@ More German translation updates, thanks to Raymond Vetter.
---- Changes since 1.730 ----
More German translation updates, thanks to Raymond Vetter.
Norwegian updates, thanks to Stein-Aksel Basma.
The awesome new Authentic Theme by Ilia Rostovtsev is now included in the Webmin package.
The awesome new Authentic Theme by @iliajie is now included in the Webmin package.
Catalan translation updates from Jaume Badiella.
---- Changes since 1.740 ----
Norwegian updates, thanks to Stein-Aksel Basma.

View File

@@ -29,7 +29,7 @@ Webmin can be installed in two different ways:
1. By downloading a pre-built package, available for different distributions (CentOS, Fedora, SuSE, Mandriva, Debian, Ubuntu, Solaris and [other](http://www.webmin.com/support.html)) from our [download page](http://webmin.com/download.html);
<kbd>Note: It is highly recommended to [add repository](https://doxfer.webmin.com/Webmin/Installation) to your system for having automatic updates.</kbd>
2. By downloading, extracting [source file](https://prdownloads.sourceforge.net/webadmin/webmin-1.982.tar.gz), and running [_setup.sh_](http://www.webmin.com/tgz.html) script, with no arguments, which will setup to run it directly from this directory, or with a command-line argument, such as targeted directory.
2. By downloading, extracting [source file](https://prdownloads.sourceforge.net/webadmin/webmin-1.993.tar.gz), and running [_setup.sh_](http://www.webmin.com/tgz.html) script, with no arguments, which will setup to run it directly from this directory, or with a command-line argument, such as targeted directory.
<kbd>Note: If you are installing Webmin [on Windows](http://www.webmin.com/windows.html) system, you must run the command `perl setup.pl` instead. The Windows version depends on several programs, and modules that may not be part of the standard distribution. You will need _process.exe_ commmand, _sc.exe_ command, and _Win32::Daemon_ Perl module.</kbd>
## Documentation
@@ -44,7 +44,7 @@ Complete set of documentation for Webmin and all of its modules can be found at
### Contributors
* [Joe Cooper](https://github.com/swelljoe)
* [Ilia Rostovtsev](https://github.com/rostovtsev)
* [Ilia Rostovtsev](https://github.com/iliajie)
* [Kay Marquardt](https://github.com/gnadelwartz)
* [Nawawi Jamili](https://github.com/nawawi) + [57 more..](https://github.com/webmin/webmin/graphs/contributors)

23
SECURITY.md Normal file
View File

@@ -0,0 +1,23 @@
## Reporting Security Issues
Please send all reports of security issues found in Webmin to security@webmin.com
via email, ideally PGP encrypted with the key from https://www.webmin.com/jcameron-key.asc .
Potential security issues, in descending order of impact, include :
* Remotely exploitable attacks that allow `root` access to Webmin without
any credentials.
* Privilege escalation vulnerabilities that allow non-`root` users of Webmin
to run commands or access files as `root`.
* XSS attacks that target users already logged into Webmin when they visit
another website.
Things that are not actually security issues include :
* XSS attacks that are blocked by Webmin's referrer checks, which are enabled
by default.
* Attacks that require modifications to Webmin's code or configuration, which
can only be done by someone who already has `root` permissions.

File diff suppressed because one or more lines are too long

View File

@@ -651,7 +651,7 @@ else {
my $deny = $user->{'deny'};
$deny =~ s/:/;/g if ($deny);
foreach my $l (@pwfile) {
if ($l =~ /^([^:]+):([^:]*)/ && $1 eq $username) {
if ($l =~ /^([^:]+):([^:\r\n]*)/ && $1 eq $username) {
&add_old_password($user, "$2", \%miniserv);
&print_tempfile($fh,
$user->{'name'},":",
@@ -1953,6 +1953,7 @@ return 1 if ($found >= 0); # Already setup
# Grant access to the user and path
&lock_file(&get_miniserv_config_file());
$user ||= '';
push(@anon, "$path=$user");
$miniserv->{'anonymous'} = join(" ", @anon);
&put_miniserv_config($miniserv);

View File

@@ -13,5 +13,6 @@ my %miniserv;
&get_miniserv_config(\%miniserv);
&delete_session_id(\%miniserv, $in{'id'});
&restart_miniserv();
&redirect("list_sessions.cgi");
&redirect($in{'redirect_ref'} ?
&get_referer_relative() : "list_sessions.cgi");

View File

@@ -351,6 +351,7 @@ sessions_login=Laaste aktief om
sessions_host=IP adres
sessions_lview=Bekyk logboeke..
sessions_actions=Optrede..
sessions_all=Alle sessies..
sessions_logouts=Toon ook afgemelde sessies..
sessions_state=staat
sessions_this=Hierdie aanmelding

View File

@@ -239,6 +239,7 @@ sessions_login=آخر نشاط في
sessions_host=عنوان IP
sessions_lview=عرض السجلات..
sessions_actions=أجراءات..
sessions_all=كل الجلسات..
sessions_logouts=اعرض أيضًا جلسات تسجيل الخروج..
sessions_state=حالة
sessions_this=هذا تسجيل الدخول

View File

@@ -351,6 +351,7 @@ sessions_login=Апошні раз быў у
sessions_host=IP-адрас
sessions_lview=Прагляд часопісаў..
sessions_actions=Дзеянні..
sessions_all=Усе сеансы..
sessions_logouts=Таксама паказаць выходныя сесіі.
sessions_state=Дзярж
sessions_this=Гэта ўваход

View File

@@ -10,6 +10,8 @@ save_eunixname=Потребителското име '$1' не е потреби
sync_modify=Преименувайте съответстващия потребител на Webmin, когато потребител на Unix е преименуван.
sessions_all=Всички сесии..
sql_nocache0=Кеш връзки към база данни
sql_nocache1=Отворете нова връзка за всяко търсене
sql_timeout_def=Използвайте времето за изчакване на връзката по подразбиране (60 секунди)

View File

@@ -10,6 +10,8 @@ save_eunixname=El nom d'usuari '$1' no és un usuari Unix, per la qual cosa no e
sync_modify=Canvieu el nom de l'usuari Webmin coincident quan es canvia el nom d'un usuari Unix.
sessions_all=Totes les sessions..
sql_nocache0=Connexions de memòria cau a la base de dades
sql_nocache1=Obriu una connexió nova per a cada cerca
sql_timeout_def=Utilitza el temps d'espera de connexió predeterminat (60 segons)

View File

@@ -61,6 +61,7 @@ unix_header=Nastavení ověřování uživatelů Unixu
unix_utable=Povolení uživatelé Unixu
sessions_actions=Akce..
sessions_all=Všechny relace..
sessions_logouts=Zobrazit také odhlášené relace.
sessions_state=Stát
sessions_this=Toto přihlášení

View File

@@ -10,6 +10,8 @@ save_eunixname=Brugernavnet '$1' er ikke en Unix-bruger, og kan derfor ikke brug
sync_modify=Omdøb den matchende Webmin-bruger, når en Unix-bruger omdøbes.
sessions_all=Alle sessioner..
sql_nocache0=Cache-forbindelser til databasen
sql_nocache1=Åbn en ny forbindelse til hvert opslag
sql_timeout_def=Brug standardforbindelse timeout (60 sekunder)

View File

@@ -1,5 +1,7 @@
sync_modify=Benennen Sie den passenden Webmin-Benutzer um, wenn ein Unix-Benutzer umbenannt wird.
sessions_all=Alle Sitzungen..
sql_nocache0=Cache-Verbindungen zur Datenbank
sql_nocache1=Öffnen Sie für jede Suche eine neue Verbindung
sql_timeout_def=Standard-Verbindungszeitlimit verwenden (60 Sekunden)

View File

@@ -10,6 +10,8 @@ save_eunixname=Το όνομα χρήστη '$1' δεν είναι χρήστη
sync_modify=Μετονομάστε τον αντίστοιχο χρήστη Webmin όταν μετονομάζεται ένας χρήστης Unix.
sessions_all=Όλες οι συνεδρίες..
sql_nocache0=Συνδέσεις προσωρινής μνήμης με βάση δεδομένων
sql_nocache1=Ανοίξτε μια νέα σύνδεση για κάθε αναζήτηση
sql_timeout_def=Χρήση προεπιλεγμένου χρονικού ορίου σύνδεσης (60 δευτερόλεπτα)

View File

@@ -351,6 +351,7 @@ sessions_login=Last active at
sessions_host=IP address
sessions_lview=View logs..
sessions_actions=Actions..
sessions_all=All sessions..
sessions_logouts=Also show logged-out sessions..
sessions_state=State
sessions_this=This login

View File

@@ -13,6 +13,7 @@ delete_eanonuser=Este usuario se está utilizando para acceder al módulo anóni
sync_modify=Cambie el nombre del usuario de Webmin coincidente cuando se cambie el nombre de un usuario de Unix.
sessions_actions=Comportamiento..
sessions_all=Todas las sesiones..
sessions_logouts=Mostrar también sesiones cerradas.
sessions_state=Estado
sessions_this=Este inicio de sesión

View File

@@ -57,6 +57,7 @@ unix_header=Unix erabiltzailearen autentifikazio ezarpenak
unix_utable=Onartutako Unix erabiltzaileak
sessions_actions=Ekintzak..
sessions_all=Saio guztiak..
sessions_logouts=Erakutsi itxitako saioak ere..
sessions_state=Estatu
sessions_this=Saioa hasiera

View File

@@ -112,6 +112,7 @@ unix_utable=کاربران مجاز Unix
sessions_host=آدرس آی پی
sessions_actions=اقدامات..
sessions_all=تمام جلسات..
sessions_logouts=همچنین جلسات ورود به سیستم را نشان دهید..
sessions_state=دولت
sessions_this=این ورود

View File

@@ -351,6 +351,7 @@ sessions_login=Viimeksi aktiivinen klo
sessions_host=IP-osoite
sessions_lview=Näytä lokit..
sessions_actions=Toiminnot..
sessions_all=Kaikki istunnot..
sessions_logouts=Näytä myös kirjautuneet istunnot..
sessions_state=Osavaltio
sessions_this=Tämä kirjautuminen

View File

@@ -56,6 +56,8 @@ unix_esudomod=Le module Perl $1 nécessaire à l'authentification <tt>sudo</tt>
unix_header=Paramètres d'authentification utilisateur Unix
unix_utable=Utilisateurs Unix autorisés
sessions_all=Toutes les séances..
udeletes_jerr=Échec de l'ajout d'utilisateurs au groupe
pass_header=Options d'application de mot de passe Webmin

View File

@@ -351,6 +351,7 @@ sessions_login=פעיל לאחרונה בשעה
sessions_host=כתובת ה - IP
sessions_lview=הצגת יומנים..
sessions_actions=פעולות..
sessions_all=כל המפגשים..
sessions_logouts=הראה גם הפעלות לא מחוברות..
sessions_state=מדינה
sessions_this=כניסה זו

View File

@@ -62,6 +62,7 @@ unix_header=Unix postavke provjere autentičnosti korisnika
unix_utable=Dopušteni Unix korisnici
sessions_actions=Akcije..
sessions_all=Sve sesije..
sessions_logouts=Prikaži i odjavljene sesije..
sessions_state=država
sessions_this=Ova prijava

View File

@@ -88,6 +88,7 @@ unix_header=Unix felhasználói hitelesítési beállítások
unix_utable=Engedélyezett Unix felhasználók
sessions_actions=Hozzászólások..
sessions_all=Minden ülés..
sessions_logouts=A kijelentkezett munkamenetek megjelenítése is
sessions_state=Állapot
sessions_this=Ez a bejelentkezés

View File

@@ -37,6 +37,7 @@ unix_header=Impostazioni di autenticazione utente Unix
unix_utable=Utenti Unix consentiti
sessions_actions=Azioni..
sessions_all=Tutte le sessioni..
sessions_logouts=Mostra anche sessioni disconnesse.
sessions_state=Stato
sessions_this=Questo login

View File

@@ -59,6 +59,7 @@ unix_header=Unixユーザー認証設定
unix_utable=許可されたUnixユーザー
sessions_actions=行動..
sessions_all=すべてのセッション。
sessions_logouts=ログアウトしたセッションも表示します。
sessions_state=状態
sessions_this=このログイン

View File

@@ -59,6 +59,7 @@ unix_header=유닉스 사용자 인증 설정
unix_utable=허용 된 유닉스 사용자
sessions_actions=행위..
sessions_all=모든 세션..
sessions_logouts=로그 아웃 된 세션도 표시하십시오.
sessions_state=상태
sessions_this=이 로그인

View File

@@ -351,6 +351,7 @@ sessions_login=Paskutinį kartą aktyvus
sessions_host=IP adresas
sessions_lview=Žiūrėti žurnalus..
sessions_actions=Veiksmai..
sessions_all=Visi užsiėmimai..
sessions_logouts=Taip pat rodyti atsijungusius seansus..
sessions_state=Valstybė
sessions_this=Šis prisijungimas

View File

@@ -351,6 +351,7 @@ sessions_login=Pēdējo reizi aktīvs plkst
sessions_host=IP adrese
sessions_lview=Skatīt žurnālus..
sessions_actions=Darbības..
sessions_all=Visas sesijas..
sessions_logouts=Rādīt arī atteikšanās sesijas..
sessions_state=Valsts
sessions_this=Šī pieteikšanās

View File

@@ -13,6 +13,7 @@ delete_eanonuser=Pengguna ini sedang digunakan untuk akses modul tanpa nama
sync_modify=Ganti nama pengguna Webmin yang sepadan apabila pengguna Unix dinamakan semula.
sessions_actions=Tindakan..
sessions_all=Semua sesi..
sessions_logouts=Juga tunjukkan sesi log keluar..
sessions_state=Negeri
sessions_this=Log masuk ini

View File

@@ -351,6 +351,7 @@ sessions_login=L-aħħar attiv fi
sessions_host=Indirizz IP
sessions_lview=Ara zkuk..
sessions_actions=Azzjonijiet..
sessions_all=Is-sessjonijiet kollha..
sessions_logouts=Uri wkoll sessjonijiet illoggjati..
sessions_state=Stat
sessions_this=Dan id-dħul

View File

@@ -36,6 +36,7 @@ unix_header=Unix-instellingen voor gebruikersauthenticatie
unix_utable=Toegestane Unix-gebruikers
sessions_actions=Acties..
sessions_all=Alle sessies..
sessions_logouts=Toon ook uitgelogde sessies..
sessions_state=Staat
sessions_this=Deze login

View File

@@ -1,5 +1,7 @@
sync_modify=Gi nytt navn til den samsvarende Webmin-brukeren når en Unix-bruker får nytt navn.
sessions_all=Alle økter..
sql_nocache0=Cache-tilkoblinger til databasen
sql_nocache1=Åpne en ny forbindelse for hvert oppslag
sql_timeout_def=Bruk standard tilkoblingstimeout (60 sekunder)

View File

@@ -11,6 +11,7 @@ save_eunixname=Nazwa użytkownika „$1” nie jest użytkownikiem systemu Unix,
sync_modify=Zmień nazwę pasującego użytkownika Webmin, gdy zmieniona zostanie nazwa użytkownika Uniksa.
sessions_actions=Działania..
sessions_all=Wszystkie sesje...
sessions_logouts=Pokaż także wylogowane sesje.
sessions_state=Stan
sessions_this=Ten login

View File

@@ -327,6 +327,7 @@ sessions_login=Ativo pela última vez às
sessions_host=endereço de IP
sessions_lview=Ver registros..
sessions_actions=Ações..
sessions_all=Todas as sessões..
sessions_logouts=Mostrar também sessões desconectadas.
sessions_state=Estado
sessions_this=Este login

View File

@@ -55,6 +55,7 @@ unix_header=Configurações de autenticação de usuário Unix
unix_utable=Usuários Unix permitidos
sessions_actions=Ações..
sessions_all=Todas as sessões..
sessions_logouts=Mostrar também sessões desconectadas.
sessions_state=Estado
sessions_this=Este login

View File

@@ -351,6 +351,7 @@ sessions_login=Ultima activitate la
sessions_host=adresa IP
sessions_lview=Vizualizați jurnalele..
sessions_actions=Acțiuni..
sessions_all=Toate sesiunile..
sessions_logouts=Arată, de asemenea, sesiuni deconectate..
sessions_state=Stat
sessions_this=Această autentificare

View File

@@ -59,6 +59,7 @@ unix_header=Настройки аутентификации пользовате
unix_utable=Разрешенные пользователи Unix
sessions_actions=Действия..
sessions_all=Все сеансы..
sessions_logouts=Также показать сеансы выхода из системы.
sessions_state=состояние
sessions_this=Этот логин

View File

@@ -104,6 +104,7 @@ unix_header=Nastavenia overovania používateľov systému Unix
unix_utable=Povolení používatelia Unixu
sessions_actions=Akcia..
sessions_all=Všetky relácie..
sessions_logouts=Zobraziť aj odhlásené relácie.
sessions_state=Štát
sessions_this=Toto prihlásenie

View File

@@ -351,6 +351,7 @@ sessions_login=Nazadnje aktivno ob
sessions_host=IP naslov
sessions_lview=Prikaži dnevnike..
sessions_actions=Ukrepi..
sessions_all=Vse seje..
sessions_logouts=Prikaži tudi odjavne seje.
sessions_state=Država
sessions_this=Ta prijava

View File

@@ -59,6 +59,7 @@ unix_header=Unix inställningar för användarautentisering
unix_utable=Tillåtna Unix-användare
sessions_actions=Handlingar..
sessions_all=Alla sessioner..
sessions_logouts=Visa även utloggade sessioner..
sessions_state=stat
sessions_this=Den här inloggningen

View File

@@ -351,6 +351,7 @@ sessions_login=ใช้งานล่าสุดเวลา
sessions_host=ที่อยู่ IP
sessions_lview=ดูบันทึก..
sessions_actions=การดำเนินการ..
sessions_all=ทุกวาระ..
sessions_logouts=แสดงเซสชันการออกจากระบบด้วย..
sessions_state=สถานะ
sessions_this=เข้าสู่ระบบนี้

View File

@@ -120,6 +120,7 @@ unix_utable=İzin verilen Unix kullanıcıları
sessions_host=IP adresi
sessions_actions=Hareketler..
sessions_all=Tüm oturumlar..
sessions_logouts=Oturumu kapatılmış oturumları da göster..
sessions_state=Durum
sessions_this=Bu giriş

View File

@@ -346,6 +346,7 @@ sessions_login=Останній активний о
sessions_host=IP-адреса
sessions_lview=Переглянути журнали..
sessions_actions=Дії..
sessions_all=Всі сеанси..
sessions_logouts=Показати також сеанси виходу з системи..
sessions_state=Держава
sessions_this=Це логін

View File

@@ -351,6 +351,7 @@ sessions_login=آخری فعال
sessions_host=IP پتہ
sessions_lview=نوشتہ جات دیکھیں..
sessions_actions=عمل..
sessions_all=تمام سیشنز..
sessions_logouts=لاگ آؤٹ سیشن بھی دکھائیں..
sessions_state=حالت
sessions_this=یہ لاگ ان

View File

@@ -351,6 +351,7 @@ sessions_login=Hoạt động lần cuối tại
sessions_host=địa chỉ IP
sessions_lview=Xem các bản ghi..
sessions_actions=Hành động..
sessions_all=Tất cả các phiên..
sessions_logouts=Cũng hiển thị các phiên đăng xuất..
sessions_state=Tiểu bang
sessions_this=Thông tin đăng nhập này

View File

@@ -160,6 +160,7 @@ sessions_login=上次活动时间:
sessions_host=IP地址
sessions_lview=查看日志
sessions_actions=动作..
sessions_all=所有会议..
sessions_logouts=同时显示注销的会话。
sessions_state=州
sessions_this=此登录名

View File

@@ -138,6 +138,7 @@ unix_utable=允許的Unix用戶
sessions_host=IP地址
sessions_actions=動作..
sessions_all=所有會議..
sessions_logouts=還顯示註銷的會話。
sessions_state=州
sessions_this=此登錄名

View File

@@ -11,6 +11,7 @@ sub list_system_info
my ($data, $in) = @_;
my @rv;
my %miniserv;
my $haslog = &foreign_available("webminlog");
&get_miniserv_config(\%miniserv);
&open_session_db(\%miniserv);
my @logins;
@@ -32,6 +33,8 @@ if (@logins) {
my $open = 0;
foreach my $l (@logins) {
my $state;
my $candel = 0;
my $nbsp = "&nbsp;&nbsp;&nbsp;";
if ($l->[0] =~ /^\!/) {
$state = $text{'sessions_out'};
}
@@ -41,13 +44,24 @@ if (@logins) {
}
else {
$state = $text{'sessions_in'};
$candel = 1;
if ($l->[2] ne $ENV{'REMOTE_HOST'}) {
$open++;
$state = "<font color=orange>$state</font>";
}
}
$main::theme_allow_make_date = 1;
$html .= &ui_columns_row([ $l->[2],
$html .= &ui_columns_row([ $l->[2] .
($haslog ?
$nbsp . &ui_link("@{[&get_webprefix()]}/webminlog/search.cgi?uall=1&mall=1&tall=1&wall=1&fall=1&sid=$l->[3]",
$text{'sessions_lview'}) : undef) .
($candel ? (!$haslog ? $nbsp : undef) .
&ui_link("@{[&get_webprefix()]}/acl/delete_session.cgi?id=$l->[3]&redirect_ref=1",
$text{'sessions_kill'}) : undef) .
((!$haslog && !$candel ? $nbsp : undef) .
&ui_link("@{[&get_webprefix()]}/acl/list_sessions.cgi",
$text{'sessions_all'}, undef, "title=\"$text{'sessions_title'}\"")),
&make_date($l->[1]),
$state ]);
}

View File

@@ -124,7 +124,7 @@ foreach my $d (&get_httpd_defines()) {
}
}
while($line = <$fh>) {
chop;
$line =~ s/\r|\n//g;
$line =~ s/^\s*#.*$//g;
if ($line =~ /^\s*<\/(\S+)\s*(.*)>/) {
# end of a container directive. This can only happen in a
@@ -144,6 +144,11 @@ while($line = <$fh>) {
$altmod =~ s/^(\S+)_module$/mod_$1/g;
local $mpmmod = $mod;
$mpmmod =~ s/^mpm_//; $mpmmod =~ s/_module$//;
if ($mod eq "prefork") {
# Special case for all the prefork aliases
($mod, $altmod, $mpmmod) = ("mod_".$mod."_module",
"mod_mpm_".$mod, $mod);
}
if (!$not && $httpd_modules{$mod} ||
$not && !$httpd_modules{$mod} ||
!$not && $httpd_modules{$altmod} ||
@@ -2168,23 +2173,6 @@ foreach my $l (@{$conf_lref}) {
if ($conf_block_opening == $conf_block_closing) {
my $conf_lvl = 0;
my $conf_prev_line;
my $conf_curr_line;
my $conf_virthost;
my @confs_separate =
(
'Protocols',
'SuexecUserGroup',
'ServerName',
'ScriptAlias',
'DocumentRoot',
'ErrorLog',
'DirectoryIndex',
'Alias',
'RewriteEngine',
'Fcgid',
'SSL',
);
foreach my $l (@{$conf_lref}) {
my $indent_current = $indent x $conf_lvl;
@@ -2194,59 +2182,20 @@ if ($conf_block_opening == $conf_block_closing) {
# Indent up next line if a new block
if ($l =~ /(<[a-zA-Z]+).*>/) {
$conf_lvl++;
if ($l =~ /(<VirtualHost).*>/) {
$conf_virthost++;
}
}
# Indent down next line if a closing block
if ($l =~ /(<\/[a-zA-Z]+).*>/) {
$conf_lvl--;
if ($l =~ /(<\/VirtualHost).*>/) {
$conf_virthost--;
}
# Change current indent right now as it is a closing block
$indent_current = $indent x $conf_lvl;
}
}
# Store previous and current lines
$conf_prev_line = &trim($conf_curr_line);
$conf_curr_line = &trim($l);
# Replace beginning spaces with needed indent
$l =~ s/^\s*/$indent_current/
if($l);
# Check if current line needs to be prepended
# with a new line for better readability
if (!$config{'format_config_lines'}) {
# Allow new line insertion only inside of VirtualHost block
if ($conf_virthost) {
# If current line is not part of a commented block
if ($conf_curr_line !~ /^\s*#/) {
# If previous line is not already an empty line
if (length($conf_prev_line)) {
# If the previous line was something
# we want to take a break before and after match
if (grep {$conf_curr_line =~ /^$_/} @confs_separate &&
grep {$conf_prev_line !~ /^$_/} @confs_separate) {
# If not the first directive in VirtualHost
if($conf_prev_line !~ /(^<VirtualHost).*>/) {
$l = "\n$l"
}
}
# If current is opening block
elsif ($conf_curr_line =~ /(^<[a-zA-Z]+).*>/) {
$l = "\n$l";
}
}
}
}
}
}
}
}

View File

@@ -217,15 +217,17 @@ push(@mems, @cmems);
if ($in{'adddir'} && $in{'root'}) {
# Add a <Directory> section for the root
my @dmems;
if ($httpd_modules{'core'} < 2.4) {
push(@dmems, { 'name' => 'allow',
'value' => 'from all' });
}
push(@dmems, { 'name' => 'Options',
'value' => 'None' });
$dirsect = { 'name' => 'Directory',
'value' => "\"$in{'root'}\"",
'type' => 1,
'members' => [
{ 'name' => 'allow',
'value' => 'from all' },
{ 'name' => 'Options',
'value' => 'None' },
],
'members' => \@dmems,
};
if ($httpd_modules{'core'} >= 2.4) {
# Apache 2.4+ needs a 'Require all granted' line

View File

@@ -5,17 +5,16 @@ do 'bandwidth-lib.pl';
# Output HTML for editing security options for the acl module
sub acl_security_form
{
print "<tr> <td><b>$text{'acl_setup'}</b></td> <td>\n";
printf "<input type=radio name=setup value=1 %s> $text{'yes'}\n",
$o->{'setup'} ? 'checked' : '';
printf "<input type=radio name=setup value=0 %s> $text{'no'}</td> </tr>\n",
$o->{'setup'} ? '' : 'checked';
my ($o) = @_;
print &ui_table_row($text{'acl_setup'},
&ui_yesno_radio("setup", $o->{'setup'}));
}
# acl_security_save(&options)
# Parse the form for security options for the acl module
sub acl_security_save
{
$_[0]->{'setup'} = $in{'setup'};
my ($o) = @_;
$o->{'setup'} = $in{'setup'};
}

View File

@@ -8,12 +8,12 @@
BEGIN { push(@INC, ".."); };
use WebminCore;
&init_config();
if (&foreign_installed("syslog-ng")) {
&foreign_require("syslog-ng", "syslog-ng-lib.pl");
if (&foreign_installed("syslog-ng", 1) == 2) {
&foreign_require("syslog-ng");
$syslog_module = "syslog-ng";
}
elsif (&foreign_installed("syslog")) {
&foreign_require("syslog", "syslog-lib.pl");
&foreign_require("syslog");
$syslog_module = "syslog";
}
else {

View File

@@ -124,54 +124,47 @@ elsif ($missingrule || !$sysconf) {
if (@hours) {
# Show reporting form
print &ui_form_start("index.cgi");
print "<table>\n";
print &ui_table_start(undef, undef, 2);
print "<tr> <td><b>$text{'index_by'}</b></td>\n";
print "<td>",&ui_select("by", $in{'by'},
[ [ 'hour', $text{'index_hour'} ],
[ 'day', $text{'index_day'} ],
[ 'host', $text{'index_host'} ],
[ 'proto', $text{'index_proto'} ],
[ 'iport', $text{'index_iport'} ],
[ 'oport', $text{'index_oport'} ],
[ 'port', $text{'index_port'} ] ]),"</td>\n";
print &ui_table_row($text{'index_by'},
&ui_select("by", $in{'by'},
[ [ 'hour', $text{'index_hour'} ],
[ 'day', $text{'index_day'} ],
[ 'host', $text{'index_host'} ],
[ 'proto', $text{'index_proto'} ],
[ 'iport', $text{'index_iport'} ],
[ 'oport', $text{'index_oport'} ],
[ 'port', $text{'index_port'} ] ]));
print "<td><b>$text{'index_for'}</b></td>\n";
print "<td>",&ui_select("for", $in{'for'},
[ [ '', $text{'index_all'} ],
[ 'host', $text{'index_forhost'} ],
[ 'proto', $text{'index_forproto'} ],
[ 'iport', $text{'index_foriport'} ],
[ 'oport', $text{'index_foroport'} ] ]),"\n";
print &ui_textbox("what", $in{'for'} ? $in{'what'} : "", 20),
"</td> </tr>\n";
print &ui_table_row($text{'index_for'},
&ui_select("for", $in{'for'},
[ [ '', $text{'index_all'} ],
[ 'host', $text{'index_forhost'} ],
[ 'proto', $text{'index_forproto'} ],
[ 'iport', $text{'index_foriport'} ],
[ 'oport', $text{'index_foroport'} ] ])." ".
&ui_textbox("what", $in{'for'} ? $in{'what'} : "", 20));
print "<tr> <td><b>$text{'index_from'}</b></td>\n";
print "<td colspan=4>",
print &ui_table_row($text{'index_from'},
&date_input($in{'from_day'}, $in{'from_month'},
$in{'from_year'}, "from"),
&hourmin_input($in{'from_hour'}, "00", "from"),"</td> </tr>\n";
$in{'from_year'}, "from").
&hourmin_input($in{'from_hour'}, "00", "from"));
print "<tr> <td><b>$text{'index_to'}</b></td>\n";
print "<td colspan=4>",
print &ui_table_row($text{'index_to'},
&date_input($in{'to_day'}, $in{'to_month'},
$in{'to_year'}, "to"),
&hourmin_input($in{'to_hour'}, "00", "to"),"</td> </tr>\n";
$in{'to_year'}, "to").
&hourmin_input($in{'to_hour'}, "00", "to"));
if (!%in) {
# Enable by default
$in{'low'} = 1;
}
print "<tr> <td></td> <td colspan=4>\n";
print &ui_checkbox("low", 1, $text{'index_low'}, $in{'low'});
print &ui_checkbox("resolv", 1, $text{'index_resolv'}, $in{'resolv'});
print "</td> </tr>\n";
print &ui_table_row("",
&ui_checkbox("low", 1, $text{'index_low'}, $in{'low'}).
&ui_checkbox("resolv", 1, $text{'index_resolv'}, $in{'resolv'}));
print "<tr> <td colspan=4>",
&ui_submit($text{'index_search'}),"</td> </td>\n";
print "</table>\n";
print &ui_form_end();
print &ui_table_end();
print &ui_form_end([ [ undef, $text{'index_search'} ] ]);
}
elsif (!$missingrule && $sysconf) {
print "<b>$text{'index_none'}</b><p>\n";
@@ -344,37 +337,45 @@ if ($in{'by'}) {
@order = grep { $count{$_} } @order;
}
if (@order) {
print "<table width=100% cellpadding=0 cellspacing=0>\n";
print "<tr>\n";
print "<td><b>",$text{'index_h'.$in{'by'}},"</b></td>\n";
print "<td colspan=2><b>$text{'index_usage'}</b></td>\n";
print "</tr>\n";
$total = 0;
print &ui_columns_start([ $text{'index_h'.$in{'by'}},
$text{'index_usage'},
$text{'index_in'},
$text{'index_out'},
$text{'index_total'} ], 100, 0);
$itotal = $ototal = $total = 0;
foreach $k (@order) {
print "<tr>\n";
my @cols;
if ($in{'by'} eq 'hour') {
print "<td>",&make_date($k*60*60),"</td>\n";
push(@cols, &make_date($k*60*60));
}
elsif ($in{'by'} eq 'day') {
$date = &make_date_day($k*60*60);
print "<td>$date</td>\n";
push(@cols, $date);
}
else {
print "<td>$k</td>\n";
push(@cols, $k);
}
print "<td>";
printf "<img src=images/red.gif width=%d height=10>",
my $bar = sprintf
"<img src=images/red.gif width=%d height=10>",
$max ? int($width * $icount{$k}/$max)+1 : 1;
printf "<img src=images/blue.gif width=%d height=10>",
$bar .= sprintf
"<img src=images/blue.gif width=%d height=10>",
$max ? int($width * $ocount{$k}/$max)+1 : 1;
print "</td>";
print "<td>",&nice_size($count{$k}),"</td>\n";
push(@cols, $bar);
push(@cols, &nice_size($icount{$k}),
&nice_size($ocount{$k}),
&nice_size($count{$k}));
$total += $count{$k};
$itotal += $icount{$k};
$ototal += $ocount{$k};
print "</tr>\n";
print &ui_columns_row(\@cols);
}
print "<tr> <td colspan=2></td> <td><b>",
&nice_size($total),"</td> </tr>\n";
print "</table>\n";
print &ui_columns_row([ undef, undef,
&nice_size($itotal),
&nice_size($ototal),
&nice_size($total) ]);
print &ui_columns_end();
}
else {
print "<b>$text{'index_nomatch'}</b><p>\n";

View File

@@ -41,6 +41,9 @@ index_efrom=Ongeldige begindatum en tyd
index_eto=Ongeldige einddatum en tyd
index_err=Verslag kon nie gegenereer word nie
index_usage=Netwerkverkeer <font color=#ff0000>afgelaai</font> en <font color=#0000ff>opgelaai</font>
index_in=Aflaai
index_out=Laai op
index_total=Totaal
index_hhour=Uur
index_hhost=host
index_hday=dag

View File

@@ -41,6 +41,9 @@ index_efrom=تاريخ ووقت البدء غير صالحين
index_eto=تاريخ ووقت انتهاء غير صالحين
index_err=فشل في إنشاء التقرير
index_usage=تم تنزيل حركة مرور الشبكة <font color=#ff0000></font> و <font color=#0000ff>التي تم تحميلها</font>
index_in=تحميل
index_out=تحميل
index_total=المجموع
index_hhour=ساعة
index_hhost=مضيف
index_hday=يوم

View File

@@ -41,6 +41,9 @@ index_efrom=Несапраўдная дата і час пачатку
index_eto=Дата і час канца несапраўдныя
index_err=Не атрымалася стварыць справаздачу
index_usage=Сеткавы трафік <font color=#ff0000>загружаны</font> і <font color=#0000ff>загружаны</font>
index_in=Спампаваць
index_out=Загрузіць
index_total=Усяго
index_hhour=Гадзіна
index_hhost=Гаспадар
index_hday=Дзень

View File

@@ -41,6 +41,9 @@ index_efrom=Невалидна начална дата и час
index_eto=Невалидна крайна дата и час
index_err=Неуспешно генериране на отчет
index_usage=Мрежов трафик <font color=#ff0000>изтеглен</font> и <font color=#0000ff>качен</font>
index_in=Изтегли
index_out=Качване
index_total=Обща сума
index_hhour=час
index_hhost=домакин
index_hday=ден

3
bandwidth/lang/ca.auto Normal file
View File

@@ -0,0 +1,3 @@
index_in=descarregar
index_out=Carrega
index_total=Total

View File

@@ -41,6 +41,9 @@ index_efrom=Neplatné počáteční datum a čas
index_eto=Neplatné datum a čas ukončení
index_err=Generování zprávy se nezdařilo
index_usage=Síťový provoz <font color=#ff0000>staženo</font> a <font color=#0000ff>uploaded</font>
index_in=Stažení
index_out=nahrát
index_total=Celkový
index_hhour=Hodina
index_hhost=Hostitel
index_hday=Den

View File

@@ -41,6 +41,9 @@ index_efrom=Ugyldig startdato og tid
index_eto=Ugyldig slutdato og tid
index_err=Rapporten blev ikke genereret
index_usage=Netværkstrafik <font color=#ff0000>downloadet</font> og <font color=#0000ff>uploadet</font>
index_in=Hent
index_out=Upload
index_total=i alt
index_hhour=Time
index_hhost=Vært
index_hday=Dag

3
bandwidth/lang/de.auto Normal file
View File

@@ -0,0 +1,3 @@
index_in=Download
index_out=Hochladen
index_total=Gesamt

View File

@@ -41,6 +41,9 @@ index_efrom=Μη έγκυρη ημερομηνία και ώρα έναρξης
index_eto=Μη έγκυρη ημερομηνία και ώρα λήξης
index_err=Αποτυχία δημιουργίας αναφοράς
index_usage=Η διακίνηση δικτύου <font color=#ff0000>κατέβασμα</font> και <font color=#0000ff>ανέβηκε</font>
index_in=Κατεβάστε
index_out=Μεταφόρτωση
index_total=Σύνολο
index_hhour=Ωρα
index_hhost=Πλήθος
index_hday=Ημέρα

View File

@@ -41,6 +41,9 @@ index_efrom=Invalid starting date and time
index_eto=Invalid ending date and time
index_err=Failed to generate report
index_usage=Network traffic <font color=#ff0000>downloaded</font> and <font color=#0000ff>uploaded</font>
index_in=Download
index_out=Upload
index_total=Total
index_hhour=Hour
index_hhost=Host
index_hday=Day

View File

@@ -2,6 +2,9 @@ index_emod=El módulo Webmin $1 no está instalado en este sistema o no es compa
index_esyslog=Ninguno de los módulos de registros del sistema está instalado en este sistema y es compatible con su sistema operativo. El módulo de monitoreo de ancho de banda no puede funcionar sin uno de ellos.
index_setupdesc2=<b>Advertencia: este módulo registrará TODO el tráfico de red enviado o recibido en la interfaz seleccionada. Esto consumirá una gran cantidad de espacio en disco y tiempo de CPU en una conexión de red rápida.</b>
index_other=Otro ..
index_in=Descargar
index_out=Subir
index_total=Total
setup_eiface=Nombre de interfaz faltante o no válido

View File

@@ -41,6 +41,9 @@ index_efrom=Hasierako data eta ordua baliogabeak
index_eto=Amaiera data eta ordua baliogabea
index_err=Ezin izan da txostena sortu
index_usage=Sareko trafikoa <font color=#ff0000>deskargatu</font> eta <font color=#0000ff>kargatuta</font>
index_in=Deskargatu
index_out=Kargatu
index_total=Guztira
index_hhour=Ordua
index_hhost=ostalaria
index_hday=eguna

View File

@@ -41,6 +41,9 @@ index_efrom=تاریخ و زمان شروع نامعتبر است
index_eto=تاریخ و زمان پایان نامعتبر
index_err=گزارش ایجاد نشد
index_usage=ترافیک شبکه <font color=#ff0000>بارگیری شده</font> و <font color=#0000ff>بارگذاری شد</font>
index_in=دانلود
index_out=بارگذاری
index_total=جمع
index_hhour=ساعت
index_hhost=میزبان
index_hday=روز

View File

@@ -41,6 +41,9 @@ index_efrom=Virheellinen aloituspäivä ja -aika
index_eto=Virheellinen lopetuspäivämäärä ja -aika
index_err=Raportin luonti epäonnistui
index_usage=Verkkoliikenne <font color=#ff0000>ladattu</font> ja <font color=#0000ff>ladattu</font>
index_in=ladata
index_out=Lataa
index_total=Kaikki yhteensä
index_hhour=Tunnin
index_hhost=isäntä
index_hday=Päivä

3
bandwidth/lang/fr.auto Normal file
View File

@@ -0,0 +1,3 @@
index_in=Télécharger
index_out=Télécharger
index_total=Total

View File

@@ -41,6 +41,9 @@ index_efrom=תאריך ושעה התחלה לא חוקיים
index_eto=תאריך ושעת סיום לא חוקיים
index_err=יצירת הדוח נכשלה
index_usage=תעבורת רשת <font color=#ff0000>שהורדה</font> ו <font color=#0000ff>הועלה</font>
index_in=הורד
index_out=העלה
index_total=סך הכל
index_hhour=שעה
index_hhost=מנחה
index_hday=יום

View File

@@ -1,3 +1,6 @@
index_other=Ostali ..
index_in=preuzimanje datoteka
index_out=Učitaj
index_total=Ukupno
setup_eiface=Nedostaje ili nevaljano ime sučelja

View File

@@ -1,4 +1,7 @@
index_esyslog=A Rendszernaplók egyikét sem telepíti erre a rendszerre, és az operációs rendszer nem támogatja. A sávszélesség-figyelő modul nem működhet ezek nélkül.
index_setupdesc2=<b>Figyelem - ez a modul naplózza az összes küldött vagy fogadott hálózati forgalmat a kiválasztott felületen. Ez nagy mennyiségű lemezterületet és CPU-időt fog igénybe venni egy gyors hálózati kapcsolaton.</b>
index_in=Letöltés
index_out=Feltöltés
index_total=Teljes
setup_eiface=Hiányzó vagy érvénytelen felület neve

View File

@@ -41,6 +41,9 @@ index_efrom=Data e ora di inizio non valide
index_eto=Data e ora di fine non valide
index_err=Generazione del rapporto non riuscita
index_usage=Traffico di rete <font color=#ff0000>scaricato</font> e <font color=#0000ff>caricato</font>
index_in=Scarica
index_out=Caricamento
index_total=Totale
index_hhour=Ora
index_hhost=Ospite
index_hday=Giorno

View File

@@ -41,6 +41,9 @@ index_efrom=無効な開始日時
index_eto=無効な終了日時
index_err=レポートを生成できませんでした
index_usage=ネットワークトラフィック<font color=ff0000>ダウンロード済み</font>および<font color=0000ff>アップロード済み</font>
index_in=ダウンロード
index_out=アップロード
index_total=合計
index_hhour=時
index_hhost=ホスト
index_hday=日

View File

@@ -41,6 +41,9 @@ index_efrom=유효하지 않은 시작 날짜 및 시간
index_eto=유효하지 않은 종료 날짜 및 시간
index_err=보고서를 생성하지 못했습니다
index_usage=네트워크 트래픽 <font color=#ff0000>다운로드</font> 및 <font color=#0000ff>업로드</font>
index_in=다운로드
index_out=업로드
index_total=총
index_hhour=시
index_hhost=주최자
index_hday=일

View File

@@ -41,6 +41,9 @@ index_efrom=Netinkama pradžios data ir laikas
index_eto=Netinkama pabaigos data ir laikas
index_err=Nepavyko sugeneruoti ataskaitos
index_usage=Tinklo srautas <font color=#ff0000>atsisiųstas</font> ir <font color=#0000ff>įkeltas</font>
index_in=parsisiųsti
index_out=Įkelti
index_total=Iš viso
index_hhour=Valanda
index_hhost=Priimančioji
index_hday=Diena

View File

@@ -41,6 +41,9 @@ index_efrom=Nederīgs sākuma datums un laiks
index_eto=Nederīgs beigu datums un laiks
index_err=Neizdevās ģenerēt pārskatu
index_usage=Tīkla trafiks <font color=#ff0000>lejupielādēts</font> un <font color=#0000ff>augšupielādēts</font>
index_in=Lejupielādēt
index_out=Augšupielādēt
index_total=Kopā
index_hhour=Stunda
index_hhost=Saimnieks
index_hday=Diena

3
bandwidth/lang/ms.auto Normal file
View File

@@ -0,0 +1,3 @@
index_in=Muat turun
index_out=Muat naik
index_total=Jumlah

View File

@@ -41,6 +41,9 @@ index_efrom=Data u ħin tal-bidu mhux validi
index_eto=Data u ħin li jispiċċaw mhux validi
index_err=Naqas milli jiġġenera rapport
index_usage=It-traffiku tan-netwerk <font color=#ff0000>jitniżżel</font> u <font color=#0000ff>imtella '</font>
index_in=Niżżel
index_out=Upload
index_total=Total
index_hhour=Siegħa
index_hhost=Ospitanti
index_hday=Jum

3
bandwidth/lang/nl.auto Normal file
View File

@@ -0,0 +1,3 @@
index_in=Downloaden
index_out=Uploaden
index_total=Totaal

3
bandwidth/lang/no.auto Normal file
View File

@@ -0,0 +1,3 @@
index_in=nedlasting
index_out=Laste opp
index_total=Total

3
bandwidth/lang/pl.auto Normal file
View File

@@ -0,0 +1,3 @@
index_in=Pobierać
index_out=Wgrywać
index_total=Całkowity

View File

@@ -41,6 +41,9 @@ index_efrom=Data e hora de início inválidas
index_eto=Data e hora de término inválidas
index_err=Falha ao gerar o relatório
index_usage=Tráfego de rede <font color=#ff0000>baixado</font> e <font color=#0000ff>carregado</font>
index_in=Download
index_out=Carregar
index_total=Total
index_hhour=Hora
index_hhost=Hospedeiro
index_hday=Dia

View File

@@ -41,6 +41,9 @@ index_efrom=Data e hora de início inválidas
index_eto=Data e hora de término inválidas
index_err=Falha ao gerar o relatório
index_usage=Tráfego de rede <font color=#ff0000>baixado</font> e <font color=#0000ff>carregado</font>
index_in=Download
index_out=Carregar
index_total=Total
index_hhour=Hora
index_hhost=Hospedeiro
index_hday=Dia

View File

@@ -41,6 +41,9 @@ index_efrom=Data și ora de începere nevalide
index_eto=Data și ora de încheiere nevalide
index_err=Eroare la generarea raportului
index_usage=Traficul de rețea <font color=#ff0000>descărcat</font> și <font color=#0000ff>încărcat</font>
index_in=Descarca
index_out=Încărcați
index_total=Total
index_hhour=Ora
index_hhost=Gazdă
index_hday=Zi

View File

@@ -41,6 +41,9 @@ index_efrom=Неверная дата и время начала
index_eto=Неправильная дата и время окончания
index_err=Не удалось сгенерировать отчет
index_usage=Сетевой трафик <font color=#ff0000>загружен</font> и <font color=#0000ff>загружен</font>
index_in=Скачать
index_out=Загрузить
index_total=Общее
index_hhour=Час
index_hhost=хозяин
index_hday=День

View File

@@ -41,6 +41,9 @@ index_efrom=Neplatný dátum a čas začiatku
index_eto=Neplatný dátum a čas ukončenia
index_err=Nepodarilo sa vygenerovať prehľad
index_usage=Sieťový prenos <font color=#ff0000>stiahnutý</font> a <font color=#0000ff>uploaded</font>
index_in=Stiahnuť ▼
index_out=Nahrať
index_total=Celkom
index_hhour=hodina
index_hhost=Hostiteľ
index_hday=deň

View File

@@ -41,6 +41,9 @@ index_efrom=Neveljaven začetni datum in ura
index_eto=Neveljaven datum in čas zaključka
index_err=Poročila ni bilo mogoče ustvariti
index_usage=Omrežni promet <font color=#ff0000>prenesen</font> in <font color=#0000ff>naložen</font>
index_in=Prenesi
index_out=Naloži
index_total=Skupaj
index_hhour=Ura
index_hhost=Gostitelj
index_hday=Dan

View File

@@ -1,4 +1,7 @@
index_setupdesc2=<b>Varning - den här modulen loggar ALL nätverkstrafik som skickats eller mottagits i det valda gränssnittet. Detta kommer att konsumera en stor mängd diskutrymme och CPU-tid på en snabb nätverksanslutning.</b>
index_other=Övrig ..
index_in=Ladda ner
index_out=Ladda upp
index_total=Total
setup_eiface=Saknas eller ogiltigt gränssnittsnamn

View File

@@ -41,6 +41,9 @@ index_efrom=วันที่และเวลาเริ่มต้นไ
index_eto=วันที่และเวลาสิ้นสุดไม่ถูกต้อง
index_err=ไม่สามารถสร้างรายงาน
index_usage=การรับส่งข้อมูลเครือข่าย <font color=#ff0000>ดาวน์โหลด</font> และ <font color=#0000ff>อัปโหลด</font>
index_in=ดาวน์โหลด
index_out=ที่อัพโหลด
index_total=ทั้งหมด
index_hhour=ชั่วโมง
index_hhost=เจ้าภาพ
index_hday=วัน

View File

@@ -41,6 +41,9 @@ index_efrom=Geçersiz başlangıç tarihi ve saati
index_eto=Geçersiz bitiş tarihi ve saati
index_err=Rapor oluşturulamadı
index_usage=Ağ trafiği <font color=#ff0000>indirildi</font> ve <font color=#0000ff>yüklendi</font>
index_in=İndirmek
index_out=Yüklemek
index_total=Toplam
index_hhour=Saat
index_hhost=evsahibi
index_hday=Gün

View File

@@ -41,6 +41,9 @@ index_efrom=Недійсна дата і час початку
index_eto=Недійсна дата та час закінчення
index_err=Не вдалося створити звіт
index_usage=Мережевий трафік <font color=#ff0000>завантажений</font> та <font color=#0000ff>завантажений</font>
index_in=Завантажити
index_out=Завантажити
index_total=Всього
index_hhour=Година
index_hhost=Господар
index_hday=День

View File

@@ -41,6 +41,9 @@ index_efrom=غلط آغاز اور تاریخ
index_eto=غلط ختم ہونے کی تاریخ اور وقت
index_err=رپورٹ تیار کرنے میں ناکام
index_usage=Network traffic <font color=#ff0000>downloaded</font> and <font color=#0000ff>uploaded</font>
index_in=ڈاؤن لوڈ کریں
index_out=اپ لوڈ کریں۔
index_total=کل
index_hhour=قیامت
index_hhost=میزبان
index_hday=دن

View File

@@ -41,6 +41,9 @@ index_efrom=Ngày và giờ bắt đầu không hợp lệ
index_eto=Ngày và thời gian kết thúc không hợp lệ
index_err=Không thể tạo báo cáo
index_usage=Lưu lượng truy cập mạng <font color=#ff0000>đã tải xuống</font> và <font color=#0000ff>đã tải lên</font>
index_in=Tải xuống
index_out=Tải lên
index_total=Toàn bộ
index_hhour=Giờ
index_hhost=Tổ chức
index_hday=ngày

View File

@@ -41,6 +41,9 @@ index_efrom=无效的开始日期和时间
index_eto=无效的结束日期和时间
index_err=未能生成报告
index_usage=网络流量<font color=ff0000>已下载</font>和<font color=0000ff>已上传</font>
index_in=下载
index_out=上传
index_total=全部的
index_hhour=小时
index_hhost=主办
index_hday=天

View File

@@ -41,6 +41,9 @@ index_efrom=無效的開始日期和時間
index_eto=無效的結束日期和時間
index_err=未能生成報告
index_usage=網絡流量<font color=ff0000>已下載</font>和<font color=0000ff>已上傳</font>
index_in=下載
index_out=上傳
index_total=全部的
index_hhour=小時
index_hhost=主辦
index_hday=天

View File

@@ -1916,4 +1916,4 @@ Verbosely print processed files and provide detailed output. By detault, verbose
=head1 LICENSE AND COPYRIGHT
Copyright 2020 Ilia Rostovtsev <programming@rostovtsev.io>
Copyright 2022 Ilia Rostovtsev <ilia@virtualmin.com>

View File

@@ -418,8 +418,8 @@ non-0 on error
=head1 LICENSE AND COPYRIGHT
Copyright 2021
Jamie Cameron <jcameron@webmin.com>,
Copyright 2022
Jamie Cameron <jamie@virtualmin.com>,
Joe Cooper <joe@virtualmin.com>,
Ilia Rostovtsev <ilia@rostovtsev.io>.
Ilia Rostovtsev <ilia@virtualmin.com>.

View File

@@ -690,9 +690,9 @@ my ($addr, @vals, $dir);
my @sp = split(/\s+/, $in{$_[0]});
for(my $i=0; $i<@sp; $i++) {
!$_[3] || &check_ipaddress($sp[$i]) || &error(&text('eip', $sp[$i]));
if (lc($sp[$i+1]) eq "key") {
push(@vals, { 'name' => $sp[$i++],
'values' => [ "key", $sp[++$i] ] });
if (lc($sp[$i]) eq "key") {
push(@vals, { 'name' => $sp[$i],
'values' => [ "\"".$sp[++$i]."\"" ] });
}
else {
push(@vals, { 'name' => $sp[$i] });
@@ -1281,6 +1281,14 @@ elsif ($type eq "DMARC") {
print &ui_table_row($text{'value_dmarcruf'},
&ui_opt_textbox("dmarcruf", $ruf, 50, $text{'value_dmarcnor'}), 3);
print &ui_table_row($text{'value_dmarcrf'},
&ui_select("dmarcrf", $dmarc->{'rf'},
[ [ undef, $text{'default'} ],
[ 'afrf', $text{'value_dmarcafrf'} ] ]));
print &ui_table_row($text{'value_dmarcri'},
&ui_textbox("dmarcri", $dmarc->{'ri'}, 5)."s");
print &ui_table_row($text{'value_dmarcfo'},
&ui_select("dmarcfo", $dmarc->{'fo'},
[ [ undef, $text{'default'} ],
@@ -1310,18 +1318,42 @@ elsif ($type eq "NSEC3PARAM") {
}
elsif ($type eq "CAA") {
# CAA records have a flag, tag and issuer domain
print &ui_table_row($text{'value_CAA0'},
print &ui_table_row($text{'value_CAA1'},
&ui_yesno_radio("value0", $v[0] || 0));
print &ui_table_row($text{'value_CAA1'},
print &ui_table_row($text{'value_CAA2'},
&ui_select("value1", $v[1],
[ [ "issue", $text{'value_caa_issue'} ],
[ "issuewild", $text{'value_caa_issuewild'} ],
[ "iodef", $text{'value_caa_iodef'} ] ]));
print &ui_table_row($text{'value_CAA2'},
print &ui_table_row($text{'value_CAA3'},
&ui_textbox("value2", $v[2], 40));
}
elsif ($type eq "NAPTR") {
# NAPTR records have order, preference, flags, services and regexp
print &ui_table_row($text{'value_NAPTR1'},
&ui_textbox("value0", $v[0], 5));
print &ui_table_row($text{'value_NAPTR2'},
&ui_textbox("value1", $v[1], 5));
my %flags = map { $_, 1 } split(//, $v[2]);
my @fopts = ("S", "A", "U", "P");
print &ui_table_row($text{'value_NAPTR3'},
join(" ", map { &ui_checkbox("value2", $_, $text{'value_NAPTR3_'.$_}, $flags{$_})."<br>" } @fopts));
print &ui_table_row($text{'value_NAPTR4'},
&ui_textbox("value3", $v[3], 40), 3);
print &ui_table_row($text{'value_NAPTR5'},
&ui_opt_textbox("value4", $v[4], 50,
$text{'value_NAPTR5_def'}), 3);
print &ui_table_row($text{'value_NAPTR6'},
&ui_opt_textbox("value5", $v[5] eq "." ? "" : $v[5], 50,
$text{'value_NAPTR6_def'}), 3);
}
else {
# All other types just have a text box
print &ui_table_row($text{'value_other'},
@@ -2194,17 +2226,13 @@ my ($dom, $view) = @_;
my ($out, $ex);
if ($view) {
# Reload a zone in a view
&try_cmd("freeze ".quotemeta($dom)." IN ".quotemeta($view));
$out = &try_cmd("reload ".quotemeta($dom)." IN ".quotemeta($view));
$ex = $?;
&try_cmd("thaw ".quotemeta($dom)." IN ".quotemeta($view));
}
else {
# Just reload one top-level zone
&try_cmd("freeze ".quotemeta($dom));
$out = &try_cmd("reload ".quotemeta($dom));
$ex = $?;
&try_cmd("thaw ".quotemeta($dom));
}
if ($out =~ /not found/i) {
# Zone is not known to BIND yet - do a total reload
@@ -2809,7 +2837,10 @@ foreach my $slave (@slaves) {
grep { $_ ne $slave } @slaves;
}
if ($config{'extra_slaves'}) {
push(@otherslaves, split(/\s+/, $config{'extra_slaves'}));
push(@otherslaves,
grep { $_ ne '' }
map { &to_ipaddress($_) }
split(/\s+/, $config{'extra_slaves'}));
}
if ($moreslaves) {
push(@otherslaves, @$moreslaves);
@@ -2983,7 +3014,7 @@ $slave_error = $_[0];
sub get_forward_record_types
{
return ("A", "NS", "CNAME", "MX", "HINFO", "TXT", "SPF", "DMARC", "WKS", "RP", "PTR", "LOC", "SRV", "KEY", "TLSA", "SSHFP", "CAA", "NSEC3PARAM", $config{'support_aaaa'} ? ( "AAAA" ) : ( ), @extra_forward);
return ("A", "NS", "CNAME", "MX", "HINFO", "TXT", "SPF", "DMARC", "WKS", "RP", "PTR", "LOC", "SRV", "KEY", "TLSA", "SSHFP", "CAA", "NAPTR", "NSEC3PARAM", $config{'support_aaaa'} ? ( "AAAA" ) : ( ), @extra_forward);
}
sub get_reverse_record_types
@@ -3295,29 +3326,48 @@ else {
$zonesize = $size;
}
# Create the zone key
my $out = &backquote_logged(
"cd ".quotemeta($fn)." && ".
"$config{'keygen'} -a ".quotemeta($alg)." -b ".quotemeta($zonesize).
" -n ZONE $rand_flag $dom 2>&1");
if ($?) {
kill('KILL', $pid) if ($pid);
return $out;
}
# Create the key signing key, if needed
if (!$single) {
$out = &backquote_logged(
"cd ".quotemeta($fn)." && ".
"$config{'keygen'} -a ".quotemeta($alg)." -b ".quotemeta($size).
" -n ZONE -f KSK $rand_flag $dom 2>&1");
kill('KILL', $pid) if ($pid);
if ($?) {
return $out;
# Check if there are saved keys, and if so use them
my @savedkeys = grep { $_->{'saved'} } &get_dnssec_key($z, 1);
my $out;
if (@savedkeys) {
# Rename back the saved key files
foreach my $key (@savedkeys) {
foreach my $f ('publicfile', 'privatefile') {
if (ref($key) && $key->{$f} && $key->{'saved'}) {
my $origfile = $key->{$f};
$origfile =~ s/\.saved$//;
&rename_file($key->{$f}, $origfile);
}
}
}
}
else {
kill('KILL', $pid) if ($pid);
# Create the zone key
$out = &backquote_logged(
"cd ".quotemeta($fn)." && ".
"$config{'keygen'} -a ".quotemeta($alg).
" -b ".quotemeta($zonesize).
" -n ZONE $rand_flag $dom 2>&1");
if ($?) {
kill('KILL', $pid) if ($pid);
return $out;
}
# Create the key signing key, if needed
if (!$single) {
$out = &backquote_logged(
"cd ".quotemeta($fn)." && ".
"$config{'keygen'} -a ".quotemeta($alg).
" -b ".quotemeta($size).
" -n ZONE -f KSK $rand_flag $dom 2>&1");
kill('KILL', $pid) if ($pid);
if ($?) {
return $out;
}
}
else {
kill('KILL', $pid) if ($pid);
}
}
# Get the new keys
@@ -3333,6 +3383,7 @@ if (!$single) {
# Add the new DNSKEY record(s) to the zone
my $chrootfn = &get_zone_file($z);
$chrootfn || return "Could not work out records file!";
my @recs = &read_zone_file($chrootfn, $dom);
for(my $i=$#recs; $i>=0; $i--) {
if ($recs[$i]->{'type'} eq 'DNSKEY') {
@@ -3422,20 +3473,27 @@ return "Re-signing failed : $err" if ($err);
return undef;
}
# delete_dnssec_key(&zone|&zone-name)
# delete_dnssec_key(&zone|&zone-name, [save-key])
# Deletes the key for a zone, and all DNSSEC records
sub delete_dnssec_key
{
my ($z) = @_;
my ($z, $savekey) = @_;
my $fn = &get_zone_file($z);
$fn || return "Could not work out records file!";
my $dom = $z->{'members'} ? $z->{'values'}->[0] : $z->{'name'};
# Remove the key
my @keys = &get_dnssec_key($z);
my @keys = &get_dnssec_key($z, 1);
foreach my $key (@keys) {
foreach my $f ('publicfile', 'privatefile') {
&unlink_file($key->{$f}) if (ref($key) && $key->{$f});
if (ref($key) && $key->{$f}) {
if ($savekey && !$key->{'saved'}) {
&rename_file($key->{$f}, $key->{$f}.".saved");
}
else {
&unlink_file($key->{$f});
}
}
}
}
@@ -3487,7 +3545,7 @@ while($tries++ < 10) {
$out = &backquote_logged(
"cd ".quotemeta($dir)." && ".
"$config{'signzone'} -o ".quotemeta($dom).
($alg =~ /^NSEC3/ ? " -3 -" : "").
($alg =~ /^(NSEC3|RSASHA256|RSASHA512|ECCGOST|ECDSAP256SHA256|ECDSAP384SHA384)/ ? " -3 - -u" : "").
" -f ".quotemeta($signed)." ".
quotemeta($chrootfn)." 2>&1");
last if (!$?);
@@ -3580,19 +3638,20 @@ if ($keyrec) {
}
}
# get_dnssec_key(&zone|&zone-name)
# get_dnssec_key(&zone|&zone-name, [include-saved])
# Returns a list of hashes containing details of a zone's keys, or an error
# message. The KSK is always returned first.
sub get_dnssec_key
{
my ($z) = @_;
my ($z, $saved) = @_;
my $dir = &get_keys_dir($z);
my $dom = $z->{'members'} ? $z->{'values'}->[0] : $z->{'name'};
my %keymap;
opendir(ZONEDIR, $dir);
foreach my $f (readdir(ZONEDIR)) {
if ($f =~ /^K\Q$dom\E\.\+(\d+)\+(\d+)\.key$/) {
if ($f =~ /^K\Q$dom\E\.\+(\d+)\+(\d+)\.key(\.saved)?$/) {
# Found the public key file .. read it
next if ($3 && !$saved);
$keymap{$2} ||= { };
my $rv = $keymap{$2};
$rv->{'publicfile'} = "$dir/$f";
@@ -3613,9 +3672,11 @@ foreach my $f (readdir(ZONEDIR)) {
$rv->{'publictext'} = &read_file_contents("$dir/$f");
while($rv->{'publictext'} =~ s/^;.*\r?\n//) { };
$rv->{'publictext'} = format_dnssec_public_key($rv->{'publictext'});
$rv->{'saved'} = $3 ? 1 : 0;
}
elsif ($f =~ /^K\Q$dom\E\.\+(\d+)\+(\d+)\.private$/) {
elsif ($f =~ /^K\Q$dom\E\.\+(\d+)\+(\d+)\.private(\.saved)?$/) {
# Found the private key file
next if ($3 && !$saved);
$keymap{$2} ||= { };
my $rv = $keymap{$2};
$rv->{'privatefile'} = "$dir/$f";
@@ -4099,7 +4160,7 @@ sub dt_genkrf
}
# dt_delete_dnssec_state()
# dt_delete_dnssec_state(&zone)
# Delete all DNSSEC-Tools meta-data for a given zone
sub dt_delete_dnssec_state
{
@@ -4159,6 +4220,11 @@ sub dt_delete_dnssec_state
&dt_rollerd_restart();
&restart_bind();
} else {
# Just delete the dsset- file
my $z_dir = $z_chroot;
$z_dir =~ s/\/[^\/]+$//;
&unlink_file($z_dir."/dsset-".$dom.".");
}
return undef;

View File

@@ -1,7 +1,7 @@
soa_style=0
soa_style=1
named_path=/usr/sbin/named
named_conf=/etc/named.conf
show_list=0
show_list=1
records_order=0
start_cmd=service named start
stop_cmd=service named stop

Some files were not shown because too many files have changed in this diff Show More