From 4b888a71121a7f68ef05996e38b97881a995c90c Mon Sep 17 00:00:00 2001 From: John Crisp Date: Thu, 5 Jun 2025 20:51:52 +0200 Subject: [PATCH] Testing Roundcube iframe --- .../AdminLTE/templates/roundcube.html.ep | 58 ++++++++++++++----- 1 file changed, 42 insertions(+), 16 deletions(-) diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/roundcube.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/roundcube.html.ep index 1624b89..6b97339 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/roundcube.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/roundcube.html.ep @@ -6,36 +6,62 @@
% if (config->{debug} == 1) { -

- %= dumper $c->current_route -

+
+            <%= dumper $c->current_route %>
+        
% } % if ( stash 'error' ) { -
- %= $c->render_to_string(inline => stash 'error') +
+
+ <%= $c->render_to_string(inline => stash 'error') %>
- %} -

<%=$title %>


-

If the Webmail panel does not appear after logging in, then please check your password.


+ % } + +

<%=$title %>

+
+ +
+ If the Webmail panel does not appear after logging in, then please check your password. +
+ +
% my $thisdomain = $c->req->url->to_abs->host; % my $url = $c->stash('modul'); - % if (!$url) { - % $url = $thisdomain."/roundcube"; - %} % my $username = 'admin'; + + % if (!$url) { + % $url = $thisdomain."/roundcube"; + % } + % if ($url =~ /[?&]_user=([^&]+)/) { - % $username = $1; - %} + % $username = $1; + % } + % if (!($url =~ /https:/)) { - % $url = 'https://' . $url; + % $url = 'https://' . $url; %} -
- roundcube?_user=<%= $username %>"> +
+ + + % my $btn = l('Full Window'); + +
+
+ +
+
+ + %end \ No newline at end of file