plugins: style sweep

This commit is contained in:
Franco Fichtner 2024-06-20 09:18:55 +02:00
parent 0faec69e0e
commit 58d06c7cc4
2 changed files with 7 additions and 4 deletions

View file

@ -5750,7 +5750,7 @@ body {
height: auto;
padding: 7px 14px 5px 14px;
-webkit-box-shadow: 0 3px 4px rgb(23, 23, 23);
box-shadow: 0 3px 4px rgb(23, 23, 23);
box-shadow: 0 3px 4px rgb(23, 23, 23);
border-radius: 0.5em 0.5em 0.5em 0.5em; }
.page-content-head, .content-box-head {
padding-bottom: 2px;

View file

@ -108,7 +108,8 @@ class Caddy extends BaseModel
}
// 3. Get the current OPNsense WebGUI ports and check for conflicts with Caddy
private function getWebGuiPorts() {
private function getWebGuiPorts()
{
$webgui = Config::getInstance()->object()->system->webgui ?? null;
$webGuiPorts = [];
@ -126,7 +127,8 @@ class Caddy extends BaseModel
return $webGuiPorts;
}
private function checkWebGuiSettings($messages) {
private function checkWebGuiSettings($messages)
{
$overlap = array_intersect($this->getWebGuiPorts(), ['80', '443']);
$tlsAutoHttpsSetting = (string)$this->general->TlsAutoHttps;
@ -140,7 +142,8 @@ class Caddy extends BaseModel
}
// 4. Check for ACME Email being required when Auto HTTPS on
private function checkAcmeEmailAutoHttps($messages) {
private function checkAcmeEmailAutoHttps($messages)
{
$tlsAutoHttpsSetting = (string)$this->general->TlsAutoHttps;
$tlsEmail = (string)$this->general->TlsEmail;