Update to work for Mojo 9.39 - config accessed through plugin not global hash

This commit is contained in:
2025-01-22 11:53:21 +00:00
parent ec4f515012
commit b5d6de3bcf
64 changed files with 66 additions and 65 deletions

View File

@@ -4,6 +4,7 @@
<font class="sme-copyright">
% if ( $c->is_logged_in ) {
SME Server <%= session 'releaseVersion' %>-<%= $c->app->VERSION %> Manager II
<%= Mojolicious->VERSION %>
% }
<br>Copyright 1999-2006 Mitel Corporation<br>
%= session 'copyRight'

View File

@@ -8,9 +8,9 @@
Warning: a reconfigure and reboot is required before proceeding! Failure to do so now
may leave your system in an unknown state!</h5></div>
<% } %>
<% if ( $c->session->{Access} eq 'public' && (($config->{debug} ne '0') || ($config->{mode} ne 'production')) ) { %>
<% if ( $c->session->{Access} eq 'public' && ((config->{debug} ne '0') || (config->{mode} ne 'production')) ) { %>
<div class="sme-error"><h5>
Warning: Development or debug mode enabled AND public access is offered !
</h5></div>
<% } %>
</div>
</div>

View File

@@ -7,7 +7,7 @@
SelectInput();
};
</script>
% if ($config->{debug} == 1) {
% if (config->{debug} == 1) {
<pre>
%= dumper $lets_data
</pre>

View File

@@ -7,7 +7,7 @@
SelectInput();
};
</script>
% if ($config->{debug} == 1) {
% if (config->{debug} == 1) {
<pre>
%= dumper $lets_data
</pre>

View File

@@ -7,7 +7,7 @@
SelectInput();
};
</script>
% if ($config->{debug} == 1) {
% if (config->{debug} == 1) {
<pre>
%= dumper $lets_data
</pre>

View File

@@ -7,7 +7,7 @@
SelectInput();
};
</script>
% if ($config->{debug} == 1) {
% if (config->{debug} == 1) {
<pre>
%= dumper $lets_data
</pre>

View File

@@ -7,7 +7,7 @@
SelectInput();
};
</script>
% if ($config->{debug} == 1) {
% if (config->{debug} == 1) {
<pre>
%= dumper $lets_data
</pre>

View File

@@ -30,7 +30,7 @@
% my $btn = l('ADD');
% my $network_db = esmith::NetworksDB->open();
% if ($config->{debug} == 1) {
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
%= dumper $c->stash("ret")

View File

@@ -5,7 +5,7 @@
% my $subnet = $ln_datas->{subnet};
% my $router = $ln_datas->{router};
% if ($config->{debug} == 1) {
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
%= dumper $c->stash("ret")

View File

@@ -7,7 +7,7 @@
% unless (length($retref)) {%ret = (ret=>"");}
% else {%ret = %$retref;}
% if ($config->{debug} == 1) {
% if (config->{debug} == 1) {
<p>
%= dumper "Ret:".$ret{ret};
</p>

View File

@@ -29,7 +29,7 @@
<br />
% my $btn = l('ADD');
% if ($config->{debug} == 1) {
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
%= dumper $c->stash("ret")

View File

@@ -8,7 +8,7 @@
% my $cmmnt = $pf_datas->{cmmnt};
% my $allow = $pf_datas->{allow};
% if ($config->{debug} == 1) {
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
%= dumper $c->stash("ret")