From 3c5c7132c4992f3dbc7df129ffc75f0c1ddc3487 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Fri, 14 Aug 2015 01:14:28 +0200 Subject: bacula-client - code style fixes - Fix copyright header - Fix pfSense version checks - Nuke obsolete pfSense 1.2.x junk - Code style and indentation --- config/bacula-client/bacula-client_view_config.php | 58 +++++++++------------- 1 file changed, 24 insertions(+), 34 deletions(-) (limited to 'config/bacula-client') diff --git a/config/bacula-client/bacula-client_view_config.php b/config/bacula-client/bacula-client_view_config.php index 28098965..c10a0cda 100644 --- a/config/bacula-client/bacula-client_view_config.php +++ b/config/bacula-client/bacula-client_view_config.php @@ -1,9 +1,9 @@ - Copyright (C) 2012 M�rcio Carlos Ant�o + part of pfSense (https://www.pfSense.org/) + Copyright (C) 2012 Marcio Carlos Braga Antao + Copyright (C) 2015 ESF, LLC All rights reserved. Redistribution and use in source and binary forms, with or without @@ -27,33 +27,26 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - require("guiconfig.inc"); -$pf_version=substr(trim(file_get_contents("/etc/version")),0,3); -if ($pf_version < 2.0) - $one_two = true; - -if ($pf_version > 2.0) +$$pf_version = substr(trim(file_get_contents("/etc/version")), 0, 3); +if ($pf_version == "2.1" || $pf_version == "2.2") { define('BACULA_LOCALBASE', '/usr/pbi/bacula-' . php_uname("m")); -else +} else { define('BACULA_LOCALBASE','/usr/local'); +} $pgtitle = "Bacula-Client: View Configuration"; include("head.inc"); ?> + - -

- -
-
- - - +
@@ -65,27 +58,24 @@ include("head.inc"); display_top_tabs($tab_array); ?>
-
- - - - -
- -
-
-
+
+ + +
+ +
+
+
+ - \ No newline at end of file + -- cgit v1.2.3