67 lines
1.7 KiB
Plaintext
Raw Normal View History

2025-04-15 16:30:33 +02:00
% layout 'AdminLTE', title => "Sme server 2 - roundcube";
% content_for 'module' => begin
2025-04-18 15:11:03 +02:00
<div class="card-body">
% if (config->{debug} == 1) {
2025-06-05 20:51:52 +02:00
<pre>
<%= dumper $c->current_route %>
</pre>
% }
% if ( stash 'error' ) {
2025-06-05 20:51:52 +02:00
<br>
<div class="text-danger">
<%= $c->render_to_string(inline => stash 'error') %>
2025-04-15 16:30:33 +02:00
</div>
2025-06-05 20:51:52 +02:00
% }
<h1><%=$title %></h1>
<br>
<div>
If the Webmail panel does not appear after logging in, then please check your password.
</div>
<br>
% my $thisdomain = $c->req->url->to_abs->host;
% my $url = $c->stash('modul');
% my $username = 'admin';
2025-06-05 20:51:52 +02:00
% if (!$url) {
% $url = $thisdomain."/roundcube";
% }
% if ($url =~ /[?&]_user=([^&]+)/) {
2025-06-05 20:51:52 +02:00
% $username = $1;
% }
2025-04-15 16:30:33 +02:00
% if (!($url =~ /https:/)) {
2025-06-05 20:51:52 +02:00
% $url = 'https://' . $url;
2025-04-15 16:30:33 +02:00
%}
2025-06-05 20:51:52 +02:00
<div class="container-fluid">
<a href="<%= "https://".$thisdomain."/" %>roundcube?_user=<%= $username %>">
<button class="" width=20em title="<%= l('Full Window') %>"><%= l('Full Window') %>
</button>
</a>
2025-04-15 16:30:33 +02:00
<object id="" data="<%=$url %>" title="<%= $c->stash('title') %>" type="text/html" ><%= $c->stash('title') %> not found</object>
</div>
</div>
2025-06-05 20:51:52 +02:00
<iframe width="100%" height="600" style="border:1px solid black;" src="<%= "https://".$thisdomain."/" %>roundcube?_user=<%= $username %>">
</iframe>
% my $btn = l('Full Window');
<div class="row g-3 align-items-center">
<div class="col-md-2">
<button type="submit" class="btn btn-primary"><%= $btn %></button>
</div>
</div>
%end