Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
10555bff76 | ||
|
|
37aa7af4da | ||
|
|
4b75369597 |
@@ -697,7 +697,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.0.22'),
|
('system', 'update_notify_last', '2.0.23'),
|
||||||
('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),
|
||||||
@@ -744,7 +744,7 @@ opcache.validate_timestamps'),
|
|||||||
('panel', 'logo_overridetheme', '0'),
|
('panel', 'logo_overridetheme', '0'),
|
||||||
('panel', 'logo_overridecustom', '0'),
|
('panel', 'logo_overridecustom', '0'),
|
||||||
('panel', 'settings_mode', '0'),
|
('panel', 'settings_mode', '0'),
|
||||||
('panel', 'version', '2.0.22'),
|
('panel', 'version', '2.0.23'),
|
||||||
('panel', 'db_version', '202304260');
|
('panel', 'db_version', '202304260');
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -507,3 +507,8 @@ if (Froxlor::isFroxlorVersion('2.0.21')) {
|
|||||||
Update::showUpdateStep("Updating from 2.0.21 to 2.0.22", false);
|
Update::showUpdateStep("Updating from 2.0.21 to 2.0.22", false);
|
||||||
Froxlor::updateToVersion('2.0.22');
|
Froxlor::updateToVersion('2.0.22');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Froxlor::isFroxlorVersion('2.0.22')) {
|
||||||
|
Update::showUpdateStep("Updating from 2.0.22 to 2.0.23", false);
|
||||||
|
Froxlor::updateToVersion('2.0.23');
|
||||||
|
}
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ class IpAddr
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array
|
* @return array
|
||||||
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
public static function getSslIpPortCombinations(): array
|
public static function getSslIpPortCombinations(): array
|
||||||
{
|
{
|
||||||
@@ -75,7 +76,7 @@ class IpAddr
|
|||||||
$additional_conditions_params = [];
|
$additional_conditions_params = [];
|
||||||
$additional_conditions_array = [];
|
$additional_conditions_array = [];
|
||||||
|
|
||||||
if ($userinfo['ip'] != '-1') {
|
if (!empty($userinfo) && $userinfo['ip'] != '-1') {
|
||||||
$admin_ip_stmt = Database::prepare("
|
$admin_ip_stmt = Database::prepare("
|
||||||
SELECT `id`, `ip`, `port` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id` = IN (:ipid)
|
SELECT `id`, `ip`, `port` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id` = IN (:ipid)
|
||||||
");
|
");
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ final class Froxlor
|
|||||||
{
|
{
|
||||||
|
|
||||||
// Main version variable
|
// Main version variable
|
||||||
const VERSION = '2.0.22';
|
const VERSION = '2.0.23';
|
||||||
|
|
||||||
// Database version (YYYYMMDDC where C is a daily counter)
|
// Database version (YYYYMMDDC where C is a daily counter)
|
||||||
const DBVERSION = '202304260';
|
const DBVERSION = '202304260';
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ return [
|
|||||||
'url' => 'customer_email.php?page=emails',
|
'url' => 'customer_email.php?page=emails',
|
||||||
'label' => lng('menue.email.emails'),
|
'label' => lng('menue.email.emails'),
|
||||||
'required_resources' => 'emails',
|
'required_resources' => 'emails',
|
||||||
'add_shortlink' => CurrentUser::canAddResource('emails') ? 'customer_email.php?page=email_domain&action=add' : null,
|
'add_shortlink' => !CurrentUser::isAdmin() && CurrentUser::canAddResource('emails') ? 'customer_email.php?page=email_domain&action=add' : null,
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'url' => Settings::Get('panel.webmail_url'),
|
'url' => Settings::Get('panel.webmail_url'),
|
||||||
@@ -60,7 +60,7 @@ return [
|
|||||||
'url' => 'customer_mysql.php?page=mysqls',
|
'url' => 'customer_mysql.php?page=mysqls',
|
||||||
'label' => lng('menue.mysql.databases'),
|
'label' => lng('menue.mysql.databases'),
|
||||||
'required_resources' => 'mysqls',
|
'required_resources' => 'mysqls',
|
||||||
'add_shortlink' => CurrentUser::canAddResource('mysqls')? 'customer_mysql.php?page=mysqls&action=add' : null,
|
'add_shortlink' => !CurrentUser::isAdmin() && CurrentUser::canAddResource('mysqls')? 'customer_mysql.php?page=mysqls&action=add' : null,
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'url' => Settings::Get('panel.phpmyadmin_url'),
|
'url' => Settings::Get('panel.phpmyadmin_url'),
|
||||||
@@ -81,7 +81,7 @@ return [
|
|||||||
[
|
[
|
||||||
'url' => 'customer_domains.php?page=domains',
|
'url' => 'customer_domains.php?page=domains',
|
||||||
'label' => lng('menue.domains.settings'),
|
'label' => lng('menue.domains.settings'),
|
||||||
'add_shortlink' => CurrentUser::canAddResource('subdomains') ? 'customer_domains.php?page=domains&action=add' : null,
|
'add_shortlink' => !CurrentUser::isAdmin() && CurrentUser::canAddResource('subdomains') ? 'customer_domains.php?page=domains&action=add' : null,
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'url' => 'customer_domains.php?page=sslcertificates',
|
'url' => 'customer_domains.php?page=sslcertificates',
|
||||||
@@ -98,7 +98,7 @@ return [
|
|||||||
[
|
[
|
||||||
'url' => 'customer_ftp.php?page=accounts',
|
'url' => 'customer_ftp.php?page=accounts',
|
||||||
'label' => lng('menue.ftp.accounts'),
|
'label' => lng('menue.ftp.accounts'),
|
||||||
'add_shortlink' => CurrentUser::canAddResource('ftps') ? 'customer_ftp.php?page=accounts&action=add' : null,
|
'add_shortlink' => !CurrentUser::isAdmin() && CurrentUser::canAddResource('ftps') ? 'customer_ftp.php?page=accounts&action=add' : null,
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'url' => Settings::Get('panel.webftp_url'),
|
'url' => Settings::Get('panel.webftp_url'),
|
||||||
|
|||||||
Reference in New Issue
Block a user