2024-10-04 13:14:56 +02:00
|
|
|
% layout 'default', title => "Sme server 2 - roundcube";
|
|
|
|
|
|
|
|
% content_for 'module' => begin
|
|
|
|
|
|
|
|
|
|
|
|
<div id='roundcube' class='roundcube roundcube-panel'>
|
2025-01-22 12:53:21 +01:00
|
|
|
% if (config->{debug} == 1) {
|
2024-10-04 13:14:56 +02:00
|
|
|
<p>
|
|
|
|
%= dumper $c->current_route
|
|
|
|
</p>
|
|
|
|
% }
|
|
|
|
% if ( stash 'error' ) {
|
|
|
|
<br><div class=sme-error>
|
|
|
|
%= $c->render_to_string(inline => stash 'error')
|
|
|
|
</div>
|
|
|
|
%}
|
2025-02-12 17:31:17 +01:00
|
|
|
<h1><%=$title %></h1><br>
|
|
|
|
<p>If the Webmail panel does not appear after logging in, then please check your password.</p><br />
|
2024-10-04 13:14:56 +02:00
|
|
|
|
2025-02-12 17:31:17 +01:00
|
|
|
% my $thisdomain = $c->req->url->to_abs->host;
|
2024-10-04 13:14:56 +02:00
|
|
|
% my $url = $c->stash('modul');
|
2025-02-12 17:31:17 +01:00
|
|
|
% if (!$url) {
|
|
|
|
% $url = $thisdomain."/roundcube";
|
|
|
|
%}
|
2024-10-04 13:14:56 +02:00
|
|
|
% my $username = 'admin';
|
|
|
|
% if ($url =~ /[?&]_user=([^&]+)/) {
|
|
|
|
% $username = $1;
|
|
|
|
%}
|
2025-02-12 17:31:17 +01:00
|
|
|
% if (!($url =~ /https:/)) {
|
|
|
|
% $url = 'https://' . $url;
|
2024-10-04 13:14:56 +02:00
|
|
|
%}
|
2025-02-12 17:31:17 +01:00
|
|
|
|
|
|
|
<div class='roundcube'>
|
|
|
|
<a href="<%= "https://".$thisdomain."/" %>roundcube?_user=<%= $username %>"><button class="sme-fullwindow1-button" width=20em title="<%= l('Full Window') %>"><%= l('Full Window') %></button></a>
|
|
|
|
<object id="roundcube" data="<%=$url %>" title="<%= $c->stash('title') %>" type="text/html" ><%= $c->stash('title') %> not found</object>
|
|
|
|
</div>
|
2024-10-04 13:14:56 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
%end
|