set version to 2.1.0 for upcoming stable release

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2023-12-08 11:48:32 +01:00
parent 3a8f48de35
commit 1467dab58f
5 changed files with 24 additions and 24 deletions

View File

@@ -678,7 +678,7 @@ opcache.validate_timestamps'),
('system', 'distribution', ''), ('system', 'distribution', ''),
('system', 'update_channel', 'stable'), ('system', 'update_channel', 'stable'),
('system', 'updatecheck_data', ''), ('system', 'updatecheck_data', ''),
('system', 'update_notify_last', '2.1.0-rc3'), ('system', 'update_notify_last', '2.1.0'),
('system', 'traffictool', 'goaccess'), ('system', 'traffictool', 'goaccess'),
('system', 'req_limit_per_interval', 60), ('system', 'req_limit_per_interval', 60),
('system', 'req_limit_interval', 60), ('system', 'req_limit_interval', 60),

View File

@@ -203,3 +203,8 @@ if (Froxlor::isDatabaseVersion('202311260')) {
} }
Froxlor::updateToDbVersion('202312050'); Froxlor::updateToDbVersion('202312050');
} }
if (Froxlor::isFroxlorVersion('2.1.0-rc3')) {
Update::showUpdateStep("Updating from 2.1.0-rc3 to 2.1.0 stable", false);
Froxlor::updateToVersion('2.1.0');
}

View File

@@ -31,7 +31,7 @@ final class Froxlor
{ {
// Main version variable // Main version variable
const VERSION = '2.1.0-rc3'; const VERSION = '2.1.0';
// Database version (YYYYMMDDC where C is a daily counter) // Database version (YYYYMMDDC where C is a daily counter)
const DBVERSION = '202312050'; const DBVERSION = '202312050';

View File

@@ -115,14 +115,15 @@ if (!isset($sql) || !is_array($sql)) {
/** /**
* Show nice note if requested domain is "unknown" to froxlor and thus is being lead to its vhost * Show nice note if requested domain is "unknown" to froxlor and thus is being lead to its vhost
*/ */
if ($_SERVER['SERVER_NAME'] != Settings::Get('system.hostname') && $req_host = UI::getCookieHost();
if ($req_host != Settings::Get('system.hostname') &&
Settings::Get('panel.is_configured') == 1 && Settings::Get('panel.is_configured') == 1 &&
!filter_var($_SERVER['SERVER_NAME'], FILTER_VALIDATE_IP) && ( !filter_var($req_host, FILTER_VALIDATE_IP) && (
empty(Settings::Get('system.froxloraliases')) || empty(Settings::Get('system.froxloraliases')) ||
(!empty(Settings::Get('system.froxloraliases')) && !in_array($_SERVER['SERVER_NAME'], array_map('trim', explode(',', Settings::Get('system.froxloraliases'))))) (!empty(Settings::Get('system.froxloraliases')) && !in_array($req_host, array_map('trim', explode(',', Settings::Get('system.froxloraliases')))))
)) { )) {
// not the froxlor system-hostname, show info page for domains not configured in froxlor // not the froxlor system-hostname, show info page for domains not configured in froxlor
$redirect_file = FileDir::getUnknownDomainTemplate($_SERVER['SERVER_NAME']); $redirect_file = FileDir::getUnknownDomainTemplate($req_host);
header('Location: '.$redirect_file); header('Location: '.$redirect_file);
die(); die();
} }

View File

@@ -51,8 +51,16 @@
<div class="row"> <div class="row">
{% if userinfo.adminsession == 1 %} {% if userinfo.adminsession == 1 %}
<div <div class="col-12 col-lg-6">
class="col-12 col-lg-6">
{% if userinfo.custom_notes|markdown is not empty and userinfo.custom_notes_show == 1 %}
<div class="card mb-3">
<div class="card-body">
{{ userinfo.custom_notes|markdown|raw }}
</div>
</div>
{% endif %}
{# system infos #} {# system infos #}
<div class="card mb-3"> <div class="card mb-3">
<div class="card-header"> <div class="card-header">
@@ -135,22 +143,9 @@
{% endif %} {% endif %}
</ul> </ul>
</div> </div>
{% if userinfo.custom_notes|markdown is not empty and userinfo.custom_notes_show == 1 %}
<div class="card mb-3">
<ul class="list-group list-group-flush">
<li class="list-group-item list-group-item-info d-flex justify-content-between align-items-start">
<div class="ms-2 me-auto">
{{ userinfo.custom_notes|markdown|raw }}
</div>
</li>
</ul>
</div>
{% endif %}
</div> </div>
{% else %} {% else %}
<div <div class="col-12 col-md-6 col-lg-4">
class="col-12 col-md-6 col-lg-4">
{# account info #} {# account info #}
<div class="card mb-3"> <div class="card mb-3">
<div class="card-header"> <div class="card-header">
@@ -212,8 +207,7 @@
</ul> </ul>
</div> </div>
</div> </div>
<div <div class="col-12 col-md-6 col-lg-4">
class="col-12 col-md-6 col-lg-4">
{# customer details #} {# customer details #}
<div class="card"> <div class="card">
<div class="card-header"> <div class="card-header">