minor textual adjustments; add non-session-based csrf-token for js/axios as it is configured to append it to the http-request
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -27,6 +27,7 @@ namespace Froxlor\Install;
|
|||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Froxlor\Config\ConfigParser;
|
use Froxlor\Config\ConfigParser;
|
||||||
|
use Froxlor\Froxlor;
|
||||||
use Froxlor\Install\Install\Core;
|
use Froxlor\Install\Install\Core;
|
||||||
use Froxlor\System\IPTools;
|
use Froxlor\System\IPTools;
|
||||||
use Froxlor\UI\Panel\UI;
|
use Froxlor\UI\Panel\UI;
|
||||||
@@ -133,6 +134,7 @@ class Install
|
|||||||
'section' => $this->formfield['install']['sections']['step' . $this->currentStep] ?? [],
|
'section' => $this->formfield['install']['sections']['step' . $this->currentStep] ?? [],
|
||||||
'error' => $error ?? null,
|
'error' => $error ?? null,
|
||||||
'extended' => $this->extendedView,
|
'extended' => $this->extendedView,
|
||||||
|
'csrf_token' => Froxlor::genSessionId(20),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// output view
|
// output view
|
||||||
|
|||||||
@@ -376,4 +376,6 @@ if (CurrentUser::hasSession()) {
|
|||||||
'samesite' => 'Strict'
|
'samesite' => 'Strict'
|
||||||
];
|
];
|
||||||
setcookie(session_name(), $_COOKIE[session_name()], $cookie_params);
|
setcookie(session_name(), $_COOKIE[session_name()], $cookie_params);
|
||||||
|
} else {
|
||||||
|
UI::twig()->addGlobal('csrf_token', Froxlor::genSessionId(20));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
{{ call_static('\\Froxlor\\Froxlor', 'getFullVersion') }}
|
{{ call_static('\\Froxlor\\Froxlor', 'getFullVersion') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
© 2009-{{ "now"|date("Y") }} by <a href="https://www.froxlor.org/" rel="external" target="_blank">the Froxlor Team</a><br>
|
© 2009-{{ "now"|date("Y") }} by <a href="https://www.froxlor.org/" rel="external" target="_blank">the froxlor team</a><br>
|
||||||
{% if install_mode is not defined %}
|
{% if install_mode is not defined %}
|
||||||
{% if (get_setting('panel.imprint_url') != '') %}<a href="{{ get_setting('panel.imprint_url') }}" target="_blank" class="footer-link">{{ lng('imprint') }}</a>{% endif %}
|
{% if (get_setting('panel.imprint_url') != '') %}<a href="{{ get_setting('panel.imprint_url') }}" target="_blank" class="footer-link">{{ lng('imprint') }}</a>{% endif %}
|
||||||
{% if (get_setting('panel.terms_url') != '') %}<a href="{{ get_setting('panel.terms_url') }}" target="_blank" class="footer-link">{{ lng('terms') }}</a>{% endif %}
|
{% if (get_setting('panel.terms_url') != '') %}<a href="{{ get_setting('panel.terms_url') }}" target="_blank" class="footer-link">{{ lng('terms') }}</a>{% endif %}
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
<div class="row gx-0 rounded shadow bg-primary text-white mt-5">
|
<div class="row gx-0 rounded shadow bg-primary text-white mt-5">
|
||||||
<div class="col p-5 rounded-start">
|
<div class="col p-5 rounded-start">
|
||||||
<h2 class="card-title">Welcome to Froxlor</h2>
|
<h2 class="card-title">Welcome to froxlor</h2>
|
||||||
<p class="lead mt-5">It seems that Froxlor has not been installed yet.</p>
|
<p class="lead mt-5">It seems that froxlor has not been installed yet.</p>
|
||||||
<p class="lead">Click on the button below to start the installation.</p>
|
<p class="lead">Click on the button below to start the installation.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
<footer class="pý-5 text-center">
|
<footer class="pý-5 text-center">
|
||||||
<span>
|
<span>
|
||||||
<img src="{{ basehref }}templates/Froxlor/assets/img/logo_grey.png" alt="Froxlor" />
|
<img src="{{ basehref }}templates/Froxlor/assets/img/logo_grey.png" alt="Froxlor" />
|
||||||
© 2009-{{ current_year }} by <a href="https://www.froxlor.org/" rel="external">the Froxlor Team</a>
|
© 2009-{{ current_year }} by <a href="https://www.froxlor.org/" rel="external">the froxlor team</a>
|
||||||
</span>
|
</span>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
<footer class="py-5 text-center">
|
<footer class="py-5 text-center">
|
||||||
<span>
|
<span>
|
||||||
<img src="{{ basehref }}templates/Froxlor/assets/img/logo_grey.png" alt="Froxlor" />
|
<img src="{{ basehref }}templates/Froxlor/assets/img/logo_grey.png" alt="Froxlor" />
|
||||||
© 2009-{{ current_year }} by <a href="https://www.froxlor.org/" rel="external">the Froxlor Team</a>
|
© 2009-{{ current_year }} by <a href="https://www.froxlor.org/" rel="external">the froxlor team</a>
|
||||||
</span>
|
</span>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user