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