2025-07-18 10:53:21 +01:00
|
|
|
% layout "default", title => "Sme server 2 - proxy";
|
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 proxy-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)ht stat: <%= $prx_datas->{http_proxy_status}%> <br>
|
|
|
|
(DBG)sm stat: <%=$prx_datas->{smtp_proxy_status} %>
|
|
|
|
</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 "proxy" => (method => "POST") => begin
|
2024-03-22 14:54:28 +11:00
|
|
|
<p>
|
2025-07-18 10:53:21 +01:00
|
|
|
%=l "prx_HTTP_PROXY_STATUS_DESCRIPTION"
|
2024-03-22 14:54:28 +11:00
|
|
|
<br><br>
|
|
|
|
<span class=label>
|
2025-07-18 10:53:21 +01:00
|
|
|
%=l "prx_HTTP_PROXY_STATUS_LABEL"
|
2024-03-22 14:54:28 +11:00
|
|
|
</span><span class=data>
|
2025-07-18 10:53:21 +01:00
|
|
|
% param "http_proxy_status" => $prx_datas->{http_proxy_status} unless param "http_proxy_status";
|
|
|
|
%= select_field "http_proxy_status" => [[ (l "ENABLED") => "enabled"], [ (l "DISABLED") => "disabled"]], class => "input", id => "htproxstat"
|
2024-03-22 14:54:28 +11:00
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
%if ( $prx_datas->{smtp_proxy_status} ) {
|
|
|
|
<p>
|
2025-07-18 10:53:21 +01:00
|
|
|
%=l "prx_SMTP_PROXY_STATUS_DESCRIPTION"
|
2024-03-22 14:54:28 +11:00
|
|
|
<br><br>
|
|
|
|
<span class=label>
|
2025-07-18 10:53:21 +01:00
|
|
|
%=l "prx_SMTP_PROXY_STATUS_LABEL"
|
2024-03-22 14:54:28 +11:00
|
|
|
</span><span class=data>
|
2025-07-18 10:53:21 +01:00
|
|
|
% param "smtp_proxy_status" => $prx_datas->{smtp_proxy_status} unless param "smtp_proxy_status";
|
|
|
|
%= select_field "smtp_proxy_status" => [[ (l "ENABLED") => "transparent"], [ (l "DISABLED") => "disabled"], [ (l "Blocked") => "blocked"]], class => "input", id => "smproxstat", default => $prx_datas->{smtp_proxy_status}
|
2024-03-22 14:54:28 +11:00
|
|
|
<br><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
|