aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-14 01:14:28 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-14 01:14:28 +0200
commit3c5c7132c4992f3dbc7df129ffc75f0c1ddc3487 (patch)
tree18fbafbe1d2d814efa7fc7901c1542ca2e57bb53
parente99476963d9274b5eb56c483b68034c81855303e (diff)
downloadpfsense-packages-3c5c7132c4992f3dbc7df129ffc75f0c1ddc3487.tar.gz
pfsense-packages-3c5c7132c4992f3dbc7df129ffc75f0c1ddc3487.tar.bz2
pfsense-packages-3c5c7132c4992f3dbc7df129ffc75f0c1ddc3487.zip
bacula-client - code style fixes
- Fix copyright header - Fix pfSense version checks - Nuke obsolete pfSense 1.2.x junk - Code style and indentation
-rw-r--r--config/bacula-client/bacula-client_view_config.php58
1 files changed, 24 insertions, 34 deletions
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 @@
<?php
/*
bacula-client_view_config.php
- part of pfSense (https://www.pfsense.org/)
- Copyright (C) 2010 Scott Ullrich <sullrich@gmail.com>
- 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");
?>
+
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>
-<?php if($one_two): ?>
-<p class="pgtitle"><?=$pgtitle?></font></p>
-<?php endif; ?>
-
<?php if ($savemsg) print_info_box($savemsg); ?>
<form action="bacula-client_view_config.php" method="post">
-
<div id="mainlevel">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td>
@@ -65,27 +58,24 @@ include("head.inc");
display_top_tabs($tab_array);
?>
</td></tr>
- <tr>
- <td>
- <div id="mainarea">
- <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td class="tabcont" >
- <textarea id="varnishlogs" rows="50" cols="87%">
-<?php
- $config_file = file_get_contents(BACULA_LOCALBASE."/etc/bacula/bacula-fd.conf");
- echo $config_file;
-?>
- </textarea>
- </td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
+ <tr><td>
+ <div id="mainarea">
+ <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0">
+ <tr><td class="tabcont">
+ <textarea id="varnishlogs" rows="50" cols="87%">
+ <?php
+ $config_file = file_get_contents(BACULA_LOCALBASE."/etc/bacula/bacula-fd.conf");
+ echo $config_file;
+ ?>
+ </textarea>
+ </td></tr>
+ </table>
+ </div>
+ </td></tr>
</table>
</div>
</form>
+
<?php include("fend.inc"); ?>
</body>
-</html> \ No newline at end of file
+</html>