aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/bacula-client/bacula-client.xml324
-rw-r--r--config/bacula-client/bacula-client_fd.xml212
-rw-r--r--config/bacula-client/bacula-client_view_config.php170
3 files changed, 353 insertions, 353 deletions
diff --git a/config/bacula-client/bacula-client.xml b/config/bacula-client/bacula-client.xml
index 054d7f08..c79a5a0c 100644
--- a/config/bacula-client/bacula-client.xml
+++ b/config/bacula-client/bacula-client.xml
@@ -1,163 +1,163 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<packagegui>
-<copyright>
- <![CDATA[
-/* $Id$ */
-/* ========================================================================== */
-/*
- bacula-client.xml
- part of pfSense (http://www.pfSense.com)
- Copyright (C) Marcio Carlos Braga Antao
- Copyright (C) 2012 Marcello Coutinho
- All rights reserved.
-
- Based on m0n0wall (http://m0n0.ch/wall)
- Copyright (C) 2003-2006 Manuel Kasper <mk@neon1.net>.
- All rights reserved.
- */
-/* ========================================================================== */
-/*
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
- THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
- OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- 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.
- */
-/* ========================================================================== */
- ]]>
- </copyright>
- <description>Client Install for Bacula 5.2.6 Backup</description>
- <requirements>Bacula Server Installed in or network</requirements>
- <faq>Currently there are no FAQ items provided.</faq>
- <name>baculaclient</name>
- <version>5.2.6</version>
- <title>Bacula-Client: Setting</title>
- <aftersaveredirect>/pkg.php?xml=bacula-client.xml</aftersaveredirect>
- <include_file>/usr/local/pkg/bacula-client.inc</include_file>
- <configpath>installedpackages->package->baculaclient</configpath>
- <additional_files_needed>
- <prefix>/usr/local/pkg/</prefix>
- <chmod>0755</chmod>
- <item>http://www.pfsense.com/packages/config/bacula-client/bacula-client.inc</item>
- </additional_files_needed>
- <additional_files_needed>
- <prefix>/usr/local/pkg/</prefix>
- <chmod>0755</chmod>
- <item>http://www.pfsense.com/packages/config/bacula-client/bacula-client_fd.xml</item>
- </additional_files_needed>
- <additional_files_needed>
- <prefix>/usr/local/www/</prefix>
- <chmod>0755</chmod>
- <item>http://www.pfsense.com/packages/config/bacula-client/bacula-client_view_config.php</item>
- </additional_files_needed>
- <menu>
- <name>Bacula-client</name>
- <tooltiptext>bacula backup client</tooltiptext>
- <section>Services</section>
- <configfile>bacula-client.xml</configfile>
- </menu>
- <service>
- <rcfile>bacula-fd.sh</rcfile>
- <name>Bacula-client</name>
- <executable>bacula-fd</executable>
- <description>bacula backup client</description>
- </service>
- <tabs>
- <tab>
- <text>Directors</text>
- <url>/pkg.php?xml=bacula-client.xml</url>
- <active/>
- </tab>
- <tab>
- <text>FileDaemon</text>
- <url>/pkg_edit.php?xml=bacula-client_fd.xml</url>
- </tab>
- <tab>
- <text>View Configuration</text>
- <url>/bacula-client_view_config.php</url>
- </tab>
- </tabs>
- <adddeleteeditpagefields>
- <columnitem>
- <fielddescr>Server Director</fielddescr>
- <fieldname>director</fieldname>
- </columnitem>
- <columnitem>
- <fielddescr>Type</fielddescr>
- <fieldname>type</fieldname>
- </columnitem>
- <columnitem>
- <fielddescr>Description</fielddescr>
- <fieldname>description</fieldname>
- </columnitem>
- </adddeleteeditpagefields>
- <fields>
- <field>
- <type>listtopic</type>
- <fieldname>directors</fieldname>
- <name>Directors</name>
- </field>
- <field>
- <fielddescr>Director Name</fielddescr>
- <fieldname>director</fieldname>
- <type>input</type>
- <size>60</size>
- <description>Name of director</description>
- <required/>
- </field>
- <field>
- <fielddescr>Description</fielddescr>
- <fieldname>description</fieldname>
- <description>Enter a description for this file.</description>
- <type>input</type>
- <size>60</size>
- </field>
- <field>
- <fielddescr>Password</fielddescr>
- <fieldname>password</fieldname>
- <type>password</type>
- <size>30</size>
- <description><![CDATA[Enter password for Diector use to Access.]]></description>
- </field>
- <field>
- <fielddescr>Director type</fielddescr>
- <fieldname>type</fieldname>
- <type>select</type>
- <options>
- <option><name>Director</name><value>Director</value></option>
- <option><name>Local</name><value>Local</value></option>
- <option><name>Monitor</name><value>Monitor</value></option>
- </options>
- <description>Director Type. You need at least one local director.</description>
- </field>
- </fields>
- <custom_php_install_command>
- baculaclient_custom_php_install_command();
- </custom_php_install_command>
- <custom_php_command_before_form>
- </custom_php_command_before_form>
- <custom_php_validation_command>
- </custom_php_validation_command>
- <custom_delete_php_command>
- </custom_delete_php_command>
- <custom_add_php_command>
- </custom_add_php_command>
- <custom_php_resync_config_command>
- baculaclient_custom_php_write_config();
- </custom_php_resync_config_command>
+<?xml version="1.0" encoding="utf-8" ?>
+<packagegui>
+<copyright>
+ <![CDATA[
+/* $Id$ */
+/* ========================================================================== */
+/*
+ bacula-client.xml
+ part of pfSense (http://www.pfSense.com)
+ Copyright (C) Marcio Carlos Braga Antao
+ Copyright (C) 2012 Marcello Coutinho
+ All rights reserved.
+
+ Based on m0n0wall (http://m0n0.ch/wall)
+ Copyright (C) 2003-2006 Manuel Kasper <mk@neon1.net>.
+ All rights reserved.
+ */
+/* ========================================================================== */
+/*
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ 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.
+ */
+/* ========================================================================== */
+ ]]>
+ </copyright>
+ <description>Client Install for Bacula 5.2.6 Backup</description>
+ <requirements>Bacula Server Installed in or network</requirements>
+ <faq>Currently there are no FAQ items provided.</faq>
+ <name>baculaclient</name>
+ <version>5.2.6</version>
+ <title>Bacula-Client: Setting</title>
+ <aftersaveredirect>/pkg.php?xml=bacula-client.xml</aftersaveredirect>
+ <include_file>/usr/local/pkg/bacula-client.inc</include_file>
+ <configpath>installedpackages->package->baculaclient</configpath>
+ <additional_files_needed>
+ <prefix>/usr/local/pkg/</prefix>
+ <chmod>0755</chmod>
+ <item>http://www.pfsense.com/packages/config/bacula-client/bacula-client.inc</item>
+ </additional_files_needed>
+ <additional_files_needed>
+ <prefix>/usr/local/pkg/</prefix>
+ <chmod>0755</chmod>
+ <item>http://www.pfsense.com/packages/config/bacula-client/bacula-client_fd.xml</item>
+ </additional_files_needed>
+ <additional_files_needed>
+ <prefix>/usr/local/www/</prefix>
+ <chmod>0755</chmod>
+ <item>http://www.pfsense.com/packages/config/bacula-client/bacula-client_view_config.php</item>
+ </additional_files_needed>
+ <menu>
+ <name>Bacula-client</name>
+ <tooltiptext>bacula backup client</tooltiptext>
+ <section>Services</section>
+ <configfile>bacula-client.xml</configfile>
+ </menu>
+ <service>
+ <rcfile>bacula-fd.sh</rcfile>
+ <name>Bacula-client</name>
+ <executable>bacula-fd</executable>
+ <description>bacula backup client</description>
+ </service>
+ <tabs>
+ <tab>
+ <text>Directors</text>
+ <url>/pkg.php?xml=bacula-client.xml</url>
+ <active/>
+ </tab>
+ <tab>
+ <text>FileDaemon</text>
+ <url>/pkg_edit.php?xml=bacula-client_fd.xml</url>
+ </tab>
+ <tab>
+ <text>View Configuration</text>
+ <url>/bacula-client_view_config.php</url>
+ </tab>
+ </tabs>
+ <adddeleteeditpagefields>
+ <columnitem>
+ <fielddescr>Server Director</fielddescr>
+ <fieldname>director</fieldname>
+ </columnitem>
+ <columnitem>
+ <fielddescr>Type</fielddescr>
+ <fieldname>type</fieldname>
+ </columnitem>
+ <columnitem>
+ <fielddescr>Description</fielddescr>
+ <fieldname>description</fieldname>
+ </columnitem>
+ </adddeleteeditpagefields>
+ <fields>
+ <field>
+ <type>listtopic</type>
+ <fieldname>directors</fieldname>
+ <name>Directors</name>
+ </field>
+ <field>
+ <fielddescr>Director Name</fielddescr>
+ <fieldname>director</fieldname>
+ <type>input</type>
+ <size>60</size>
+ <description>Name of director</description>
+ <required/>
+ </field>
+ <field>
+ <fielddescr>Description</fielddescr>
+ <fieldname>description</fieldname>
+ <description>Enter a description for this file.</description>
+ <type>input</type>
+ <size>60</size>
+ </field>
+ <field>
+ <fielddescr>Password</fielddescr>
+ <fieldname>password</fieldname>
+ <type>password</type>
+ <size>30</size>
+ <description><![CDATA[Enter password for Diector use to Access.]]></description>
+ </field>
+ <field>
+ <fielddescr>Director type</fielddescr>
+ <fieldname>type</fieldname>
+ <type>select</type>
+ <options>
+ <option><name>Director</name><value>Director</value></option>
+ <option><name>Local</name><value>Local</value></option>
+ <option><name>Monitor</name><value>Monitor</value></option>
+ </options>
+ <description>Director Type. You need at least one local director.</description>
+ </field>
+ </fields>
+ <custom_php_install_command>
+ baculaclient_custom_php_install_command();
+ </custom_php_install_command>
+ <custom_php_command_before_form>
+ </custom_php_command_before_form>
+ <custom_php_validation_command>
+ </custom_php_validation_command>
+ <custom_delete_php_command>
+ </custom_delete_php_command>
+ <custom_add_php_command>
+ </custom_add_php_command>
+ <custom_php_resync_config_command>
+ baculaclient_custom_php_write_config();
+ </custom_php_resync_config_command>
</packagegui> \ No newline at end of file
diff --git a/config/bacula-client/bacula-client_fd.xml b/config/bacula-client/bacula-client_fd.xml
index 228ad66f..d6a6a8f0 100644
--- a/config/bacula-client/bacula-client_fd.xml
+++ b/config/bacula-client/bacula-client_fd.xml
@@ -1,107 +1,107 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<packagegui>
- <copyright>
- <![CDATA[
-/* $Id$ */
-/* ========================================================================== */
-/*
- bacula-client_df.xml
- part of pfSense (http://www.pfSense.com)
- Copyright (C) 2012 Marcio Carlos Braga Antao
- Copyright (C) 2012 Marcello Coutinho
- All rights reserved.
-
- Based on m0n0wall (http://m0n0.ch/wall)
- Copyright (C) 2003-2006 Manuel Kasper <mk@neon1.net>.
- All rights reserved.
- */
-/* ========================================================================== */
-/*
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
- THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
- OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- 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.
- */
-/* ========================================================================== */
- ]]>
- </copyright>
- <description>Client Install for Bacula 5.2.6 Backup</description>
- <requirements>Bacula Server Installed in or network</requirements>
- <faq>Currently there are no FAQ items provided.</faq>
- <name>baculaclientfd</name>
- <version>5.2.6</version>
- <title>Bacula-Client: FileDaemon Setting</title>
- <aftersaveredirect>/pkg_edit.php?xml=bacula-client_fd.xml</aftersaveredirect>
- <include_file>/usr/local/pkg/bacula-client.inc</include_file>
- <configpath>installedpackages->package->baculaclient</configpath>
- <tabs>
- <tab>
- <text>Directors</text>
- <url>/pkg.php?xml=bacula-client.xml</url>
- </tab>
- <tab>
- <text>FileDaemon</text>
- <url>/pkg_edit.php?xml=bacula-client_fd.xml</url>
- <active/>
- </tab>
- <tab>
- <text>View Configuration</text>
- <url>/bacula-client_view_config.php</url>
- </tab>
- </tabs>
- <fields>
- <field>
- <type>listtopic</type>
- <fieldname>Daemon</fieldname>
- <name>daemon</name>
- </field>
- <field>
- <fielddescr>File Daemon Port</fielddescr>
- <fieldname>port</fieldname>
- <type>input</type>
- <size>4</size>
- <description>Port for a File Daemon. Default : 9102 </description>
- <required/>
- </field>
- <field>
- <fielddescr>Maximun Concurrent Jobs</fielddescr>
- <fieldname>jobs</fieldname>
- <type>input</type>
- <size>3</size>
- <required/>
- <description>Maximun Concurrent Jobs. Default : 20</description>
- </field>
-
- </fields>
-
- <custom_php_install_command>
- baculaclient_custom_php_install_command();
- </custom_php_install_command>
- <custom_php_command_before_form>
- </custom_php_command_before_form>
- <custom_php_validation_command>
- </custom_php_validation_command>
- <custom_delete_php_command>
- </custom_delete_php_command>
- <custom_add_php_command>
- </custom_add_php_command>
- <custom_php_resync_config_command>
- baculaclient_custom_php_write_config();
- </custom_php_resync_config_command>
+<?xml version="1.0" encoding="utf-8" ?>
+<packagegui>
+ <copyright>
+ <![CDATA[
+/* $Id$ */
+/* ========================================================================== */
+/*
+ bacula-client_df.xml
+ part of pfSense (http://www.pfSense.com)
+ Copyright (C) 2012 Marcio Carlos Braga Antao
+ Copyright (C) 2012 Marcello Coutinho
+ All rights reserved.
+
+ Based on m0n0wall (http://m0n0.ch/wall)
+ Copyright (C) 2003-2006 Manuel Kasper <mk@neon1.net>.
+ All rights reserved.
+ */
+/* ========================================================================== */
+/*
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ 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.
+ */
+/* ========================================================================== */
+ ]]>
+ </copyright>
+ <description>Client Install for Bacula 5.2.6 Backup</description>
+ <requirements>Bacula Server Installed in or network</requirements>
+ <faq>Currently there are no FAQ items provided.</faq>
+ <name>baculaclientfd</name>
+ <version>5.2.6</version>
+ <title>Bacula-Client: FileDaemon Setting</title>
+ <aftersaveredirect>/pkg_edit.php?xml=bacula-client_fd.xml</aftersaveredirect>
+ <include_file>/usr/local/pkg/bacula-client.inc</include_file>
+ <configpath>installedpackages->package->baculaclient</configpath>
+ <tabs>
+ <tab>
+ <text>Directors</text>
+ <url>/pkg.php?xml=bacula-client.xml</url>
+ </tab>
+ <tab>
+ <text>FileDaemon</text>
+ <url>/pkg_edit.php?xml=bacula-client_fd.xml</url>
+ <active/>
+ </tab>
+ <tab>
+ <text>View Configuration</text>
+ <url>/bacula-client_view_config.php</url>
+ </tab>
+ </tabs>
+ <fields>
+ <field>
+ <type>listtopic</type>
+ <fieldname>Daemon</fieldname>
+ <name>daemon</name>
+ </field>
+ <field>
+ <fielddescr>File Daemon Port</fielddescr>
+ <fieldname>port</fieldname>
+ <type>input</type>
+ <size>4</size>
+ <description>Port for a File Daemon. Default : 9102 </description>
+ <required/>
+ </field>
+ <field>
+ <fielddescr>Maximun Concurrent Jobs</fielddescr>
+ <fieldname>jobs</fieldname>
+ <type>input</type>
+ <size>3</size>
+ <required/>
+ <description>Maximun Concurrent Jobs. Default : 20</description>
+ </field>
+
+ </fields>
+
+ <custom_php_install_command>
+ baculaclient_custom_php_install_command();
+ </custom_php_install_command>
+ <custom_php_command_before_form>
+ </custom_php_command_before_form>
+ <custom_php_validation_command>
+ </custom_php_validation_command>
+ <custom_delete_php_command>
+ </custom_delete_php_command>
+ <custom_add_php_command>
+ </custom_add_php_command>
+ <custom_php_resync_config_command>
+ baculaclient_custom_php_write_config();
+ </custom_php_resync_config_command>
</packagegui> \ No newline at end of file
diff --git a/config/bacula-client/bacula-client_view_config.php b/config/bacula-client/bacula-client_view_config.php
index a89f1d48..7fa64cf4 100644
--- a/config/bacula-client/bacula-client_view_config.php
+++ b/config/bacula-client/bacula-client_view_config.php
@@ -1,86 +1,86 @@
-<?php
-/*
- bacula-client_view_config.php
- part of pfSense (http://www.pfsense.com/)
- Copyright (C) 2010 Scott Ullrich <sullrich@gmail.com>
- Copyright (C) 2012 M�rcio Carlos Ant�o
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
- THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
- OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- 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.
-*/
-
-require("guiconfig.inc");
-
-$pfSversion = str_replace("\n", "", file_get_contents("/etc/version"));
-if(strstr($pfSversion, "1.2"))
- $one_two = true;
-
-$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>
-<?php
- $tab_array = array();
- $tab_array[] = array(gettext("Directors"), false, "/pkg.php?xml=bacula-client.xml");
- $tab_array[] = array(gettext("FileDaemon"), false, "/pkg_edit.php?xml=bacula-client_fd.xml");
- $tab_array[] = array(gettext("View Configuration"), true, "/bacula-client_view_config.php");
- 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("/usr/local/etc/bacula-fd.conf");
- echo $config_file;
-?>
- </textarea>
- </td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- </table>
-</div>
-</form>
-<?php include("fend.inc"); ?>
-</body>
+<?php
+/*
+ bacula-client_view_config.php
+ part of pfSense (http://www.pfsense.com/)
+ Copyright (C) 2010 Scott Ullrich <sullrich@gmail.com>
+ Copyright (C) 2012 M�rcio Carlos Ant�o
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ 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.
+*/
+
+require("guiconfig.inc");
+
+$pfSversion = str_replace("\n", "", file_get_contents("/etc/version"));
+if(strstr($pfSversion, "1.2"))
+ $one_two = true;
+
+$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>
+<?php
+ $tab_array = array();
+ $tab_array[] = array(gettext("Directors"), false, "/pkg.php?xml=bacula-client.xml");
+ $tab_array[] = array(gettext("FileDaemon"), false, "/pkg_edit.php?xml=bacula-client_fd.xml");
+ $tab_array[] = array(gettext("View Configuration"), true, "/bacula-client_view_config.php");
+ 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("/usr/local/etc/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