Testing Roundcube iframe
This commit is contained in:
parent
b39eef01f9
commit
4b888a7112
@ -6,36 +6,62 @@
|
||||
<div class="card-body">
|
||||
|
||||
% if (config->{debug} == 1) {
|
||||
<p>
|
||||
%= dumper $c->current_route
|
||||
</p>
|
||||
<pre>
|
||||
<%= dumper $c->current_route %>
|
||||
</pre>
|
||||
% }
|
||||
% if ( stash 'error' ) {
|
||||
<br><div class="">
|
||||
%= $c->render_to_string(inline => stash 'error')
|
||||
<br>
|
||||
<div class="text-danger">
|
||||
<%= $c->render_to_string(inline => stash 'error') %>
|
||||
</div>
|
||||
% }
|
||||
<h1><%=$title %></h1><br>
|
||||
<p>If the Webmail panel does not appear after logging in, then please check your password.</p><br />
|
||||
|
||||
<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';
|
||||
|
||||
% if (!$url) {
|
||||
% $url = $thisdomain."/roundcube";
|
||||
% }
|
||||
% my $username = 'admin';
|
||||
|
||||
% if ($url =~ /[?&]_user=([^&]+)/) {
|
||||
% $username = $1;
|
||||
% }
|
||||
|
||||
% if (!($url =~ /https:/)) {
|
||||
% $url = 'https://' . $url;
|
||||
%}
|
||||
|
||||
<div class="">
|
||||
<a href="<%= "https://".$thisdomain."/" %>roundcube?_user=<%= $username %>"><button class="" width=20em title="<%= l('Full Window') %>"><%= l('Full Window') %></button></a>
|
||||
<div class="container-fluid">
|
||||
<a href="<%= "https://".$thisdomain."/" %>roundcube?_user=<%= $username %>">
|
||||
<button class="" width=20em title="<%= l('Full Window') %>"><%= l('Full Window') %>
|
||||
</button>
|
||||
</a>
|
||||
<object id="" data="<%=$url %>" title="<%= $c->stash('title') %>" type="text/html" ><%= $c->stash('title') %> not found</object>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<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
|
Loading…
x
Reference in New Issue
Block a user