net/sslh: style updates and sync

This commit is contained in:
Franco Fichtner
2022-10-18 14:31:56 +02:00
parent 7f918905ad
commit f10d2cf8df
9 changed files with 28 additions and 31 deletions
@@ -1,7 +1,7 @@
<?php
/**
* Copyright (C) 2022 agh1467@protonmail.com
* Copyright (C) 2022 agh1467 <agh1467@protonmail.com>
*
* All rights reserved.
*
@@ -73,5 +73,4 @@ class ServiceController extends ApiMutableServiceControllerBase
* @var string $internalServiceName
*/
protected static $internalServiceName = 'sslh';
}
@@ -1,7 +1,7 @@
<?php
/**
* Copyright (C) 2022 agh1467@protonmail.com
* Copyright (C) 2022 agh1467 <agh1467@protonmail.com>
*
* All rights reserved.
*
@@ -1,7 +1,7 @@
<?php
/*
Copyright (C) 2022 agh1467@protonmail.com
Copyright (C) 2022 agh1467 <agh1467@protonmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -46,19 +46,16 @@ class SettingsController extends \OPNsense\Base\IndexController
*/
public function indexAction()
{
// Set environment variables for within the Volt templates.
$this->view->setVars(
[
// Set environment variables for within the Volt templates.
$this->view->setVars([
'plugin_name' => 'sslh',
'api_name' => 'sslh',
'this_form' => $this->getForm('settings'),
// controllers/OPNsense/Sslh/forms/settings.xml
]
);
]);
// pick the template as the next view to render
$this->view->pick('OPNsense/Sslh/settings');
// views/OPNsense/Sslh/settings.volt
// pick the template as the next view to render
$this->view->pick('OPNsense/Sslh/settings');
// views/OPNsense/Sslh/settings.volt
}
}
@@ -1,7 +1,7 @@
<?php
/*
Copyright (C) 2022 agh1467@protonmail.com
Copyright (C) 2022 agh1467 <agh1467@protonmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -1,7 +1,6 @@
{##
#
# OPNsense® is Copyright © 2014 2018 by Deciso B.V.
# This file is Copyright © 2022 agh1467@protonmail.com
{#
# Copyright (c) 2014-2018 Deciso B.V.
# Copyright (c) 2022 agh1467 <agh1467@protonmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
@@ -24,9 +23,9 @@
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#}
#}
{##
{#
# This is the template for the settings page.
#
# This is the main page for this plugin.
@@ -1,7 +1,6 @@
{##
#
# OPNsense® is Copyright © 2014 2018 by Deciso B.V.
# This file is Copyright © 2022 agh1467@protonmail.com
{#
# Copyright (c) 2014-2018 Deciso B.V.
# Copyright (c) 2022 agh1467 <agh1467@protonmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
@@ -24,7 +23,7 @@
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#}
#}
{#- /usr/local/etc/sslh.conf -#}
{% set plugin_name = 'sslh' %}