Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b162324ff0 |
@@ -695,7 +695,7 @@ opcache.interned_strings_buffer'),
|
|||||||
('panel', 'password_special_char', '!?<>§$%+#=@'),
|
('panel', 'password_special_char', '!?<>§$%+#=@'),
|
||||||
('panel', 'customer_hide_options', ''),
|
('panel', 'customer_hide_options', ''),
|
||||||
('panel', 'is_configured', '0'),
|
('panel', 'is_configured', '0'),
|
||||||
('panel', 'version', '0.10.4'),
|
('panel', 'version', '0.10.5'),
|
||||||
('panel', 'db_version', '201910200');
|
('panel', 'db_version', '201910200');
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -452,3 +452,8 @@ if (\Froxlor\Froxlor::isFroxlorVersion('0.10.3')) {
|
|||||||
showUpdateStep("Updating from 0.10.3 to 0.10.4", false);
|
showUpdateStep("Updating from 0.10.3 to 0.10.4", false);
|
||||||
\Froxlor\Froxlor::updateToVersion('0.10.4');
|
\Froxlor\Froxlor::updateToVersion('0.10.4');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (\Froxlor\Froxlor::isFroxlorVersion('0.10.4')) {
|
||||||
|
showUpdateStep("Updating from 0.10.4 to 0.10.5", false);
|
||||||
|
\Froxlor\Froxlor::updateToVersion('0.10.5');
|
||||||
|
}
|
||||||
|
|||||||
@@ -84,6 +84,9 @@ class AcmeSh extends \Froxlor\Cron\FroxlorCron
|
|||||||
)
|
)
|
||||||
");
|
");
|
||||||
$customer_ssl = $certificates_stmt->fetchAll(\PDO::FETCH_ASSOC);
|
$customer_ssl = $certificates_stmt->fetchAll(\PDO::FETCH_ASSOC);
|
||||||
|
if (!$customer_ssl) {
|
||||||
|
$customer_ssl = array();
|
||||||
|
}
|
||||||
|
|
||||||
$froxlor_ssl = array();
|
$froxlor_ssl = array();
|
||||||
if (Settings::Get('system.le_froxlor_enabled') == '1') {
|
if (Settings::Get('system.le_froxlor_enabled') == '1') {
|
||||||
@@ -93,6 +96,9 @@ class AcmeSh extends \Froxlor\Cron\FroxlorCron
|
|||||||
(`expirationdate` < DATE_ADD(NOW(), INTERVAL 30 DAY) OR `expirationdate` IS NULL)
|
(`expirationdate` < DATE_ADD(NOW(), INTERVAL 30 DAY) OR `expirationdate` IS NULL)
|
||||||
");
|
");
|
||||||
$froxlor_ssl = Database::pexecute_first($froxlor_ssl_settings_stmt);
|
$froxlor_ssl = Database::pexecute_first($froxlor_ssl_settings_stmt);
|
||||||
|
if (!$froxlor_ssl) {
|
||||||
|
$froxlor_ssl = array();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count($customer_ssl) > 0 || count($froxlor_ssl) > 0) {
|
if (count($customer_ssl) > 0 || count($froxlor_ssl) > 0) {
|
||||||
@@ -178,10 +184,10 @@ class AcmeSh extends \Froxlor\Cron\FroxlorCron
|
|||||||
'id' => null
|
'id' => null
|
||||||
);
|
);
|
||||||
|
|
||||||
$froxlor_ssl = $needRenew['froxlor_ssl'];
|
$froxlor_ssl = $needRenew ? $needRenew['froxlor_ssl'] : array();
|
||||||
|
|
||||||
$cert_mode = 'issue';
|
$cert_mode = 'issue';
|
||||||
if ($froxlor_ssl) {
|
if (count($froxlor_ssl) > 0) {
|
||||||
$cert_mode = 'renew';
|
$cert_mode = 'renew';
|
||||||
$certrow['id'] = $froxlor_ssl['id'];
|
$certrow['id'] = $froxlor_ssl['id'];
|
||||||
$certrow['expirationdate'] = $froxlor_ssl['expirationdate'];
|
$certrow['expirationdate'] = $froxlor_ssl['expirationdate'];
|
||||||
@@ -236,7 +242,7 @@ class AcmeSh extends \Froxlor\Cron\FroxlorCron
|
|||||||
}
|
}
|
||||||
|
|
||||||
// customer domains
|
// customer domains
|
||||||
$certrows = $needRenew['customer_ssl'];
|
$certrows = $needRenew ? $needRenew['customer_ssl'] : array();
|
||||||
$cert_mode = 'issue';
|
$cert_mode = 'issue';
|
||||||
foreach ($certrows as $certrow) {
|
foreach ($certrows as $certrow) {
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ final class Froxlor
|
|||||||
{
|
{
|
||||||
|
|
||||||
// Main version variable
|
// Main version variable
|
||||||
const VERSION = '0.10.4';
|
const VERSION = '0.10.5';
|
||||||
|
|
||||||
// Database version (YYYYMMDDC where C is a daily counter)
|
// Database version (YYYYMMDDC where C is a daily counter)
|
||||||
const DBVERSION = '201910200';
|
const DBVERSION = '201910200';
|
||||||
|
|||||||
Reference in New Issue
Block a user