2025-07-18 10:53:21 +01:00
|
|
|
% layout "default", title => "Sme server 2 - clamav";
|
2024-03-22 14:54:28 +11:00
|
|
|
|
2025-07-18 10:53:21 +01:00
|
|
|
% content_for "module" => begin
|
|
|
|
<div id="module" class="module clamav-panel">
|
2025-01-22 11:53:21 +00:00
|
|
|
%if (config->{debug} == 1) {
|
2024-03-22 14:54:28 +11:00
|
|
|
<p>(DBG)route: <%= $c->current_route %><br>
|
|
|
|
(DBG)FsS stat: <%= $clm_datas->{FilesystemScan}%> <br>
|
|
|
|
(DBG)Quar stat: <%=$clm_datas->{Quarantine} %>
|
|
|
|
</p>
|
|
|
|
%}
|
|
|
|
<h1><%= $title %></h1>
|
|
|
|
<br>
|
|
|
|
<%= $modul %>
|
2025-07-18 10:53:21 +01:00
|
|
|
<% my $btn = l("SAVE"); %>
|
2024-03-22 14:54:28 +11:00
|
|
|
|
2025-07-18 10:53:21 +01:00
|
|
|
%= form_for "clamav" => (method => "POST") => begin
|
2024-03-22 14:54:28 +11:00
|
|
|
<p>
|
|
|
|
<span class=label>
|
2025-07-18 10:53:21 +01:00
|
|
|
%=l "clm_LABEL_FILESYSTEM_SCAN_PERIOD"
|
2024-03-22 14:54:28 +11:00
|
|
|
</span><span class=data>
|
2025-07-18 10:53:21 +01:00
|
|
|
% param "FilesystemScan" => $clm_datas->{FilesystemScan} unless param "FilesystemScan";
|
|
|
|
%= select_field "FilesystemScan" => [[ (l "Daily") => "daily"], [ (l "Never") => "disabled"], [ (l "Weekly") => "weekly"]], class => "input"
|
2024-03-22 14:54:28 +11:00
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<span class=label>
|
2025-07-18 10:53:21 +01:00
|
|
|
%=l "clm_LABEL_QUARANTINE"
|
2024-03-22 14:54:28 +11:00
|
|
|
</span><span class=data>
|
2025-07-18 10:53:21 +01:00
|
|
|
% param "Quarantine" => $clm_datas->{Quarantine} unless param "Quarantine";
|
|
|
|
%= select_field "Quarantine" => [[ (l "ENABLED") => "enabled"], [ (l "DISABLED") => "disabled"]], class => "input"
|
2024-03-22 14:54:28 +11:00
|
|
|
<br>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<span class=label>
|
2025-07-18 10:53:21 +01:00
|
|
|
%=l "clm_LABEL_CLAM_VERSIONS"
|
2024-03-22 14:54:28 +11:00
|
|
|
</span><span class=data>
|
|
|
|
%= $clm_datas->{clam_versions}
|
|
|
|
<br>
|
|
|
|
</span>
|
|
|
|
</p>
|
2025-07-18 10:53:21 +01:00
|
|
|
%= submit_button "$btn", class => "action"
|
2024-03-22 14:54:28 +11:00
|
|
|
% end
|
|
|
|
</div>
|
|
|
|
%end
|