Skip to content

Commit

Permalink
set version to 2.1.0 for upcoming stable release
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
  • Loading branch information
d00p committed Dec 8, 2023
1 parent 3a8f48d commit 1467dab
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion install/froxlor.sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@
('system', 'distribution', ''),
('system', 'update_channel', 'stable'),
('system', 'updatecheck_data', ''),
('system', 'update_notify_last', '2.1.0-rc3'),
('system', 'update_notify_last', '2.1.0'),
('system', 'traffictool', 'goaccess'),
('system', 'req_limit_per_interval', 60),
('system', 'req_limit_interval', 60),
Expand Down
5 changes: 5 additions & 0 deletions install/updates/froxlor/update_2.1.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,3 +203,8 @@
}
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');
}
2 changes: 1 addition & 1 deletion lib/Froxlor/Froxlor.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class Froxlor
{

// Main version variable
const VERSION = '2.1.0-rc3';
const VERSION = '2.1.0';

// Database version (YYYYMMDDC where C is a daily counter)
const DBVERSION = '202312050';
Expand Down
9 changes: 5 additions & 4 deletions lib/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,15 @@
/**
* 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 &&
!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')) && !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
$redirect_file = FileDir::getUnknownDomainTemplate($_SERVER['SERVER_NAME']);
$redirect_file = FileDir::getUnknownDomainTemplate($req_host);
header('Location: '.$redirect_file);
die();
}
Expand Down
30 changes: 12 additions & 18 deletions templates/Froxlor/user/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,16 @@

<div class="row">
{% if userinfo.adminsession == 1 %}
<div
class="col-12 col-lg-6">
<div 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 #}
<div class="card mb-3">
<div class="card-header">
Expand Down Expand Up @@ -135,22 +143,9 @@
{% endif %}
</ul>
</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>
{% else %}
<div
class="col-12 col-md-6 col-lg-4">
<div class="col-12 col-md-6 col-lg-4">
{# account info #}
<div class="card mb-3">
<div class="card-header">
Expand Down Expand Up @@ -212,8 +207,7 @@
</ul>
</div>
</div>
<div
class="col-12 col-md-6 col-lg-4">
<div class="col-12 col-md-6 col-lg-4">
{# customer details #}
<div class="card">
<div class="card-header">
Expand Down

0 comments on commit 1467dab

Please sign in to comment.