From 9597e97c029be127beff9eb8b30af6d306983415 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Sun, 23 Aug 2015 13:48:26 +0200 Subject: autoconfigbackup.- code style fixes - Move custom_php_resync_config_command() function to autoconfigbackup.inc and give it an unique prefix - Also give a unique prefix to custom_php_validation_command() - Fix copyright header - Fix file permissions (no need for these to be executable) - Whitespace fixes --- config/autoconfigbackup/autoconfigbackup.xml | 112 +++++++++++++-------------- 1 file changed, 53 insertions(+), 59 deletions(-) (limited to 'config/autoconfigbackup') diff --git a/config/autoconfigbackup/autoconfigbackup.xml b/config/autoconfigbackup/autoconfigbackup.xml index eb3f7545..dd83a9c7 100644 --- a/config/autoconfigbackup/autoconfigbackup.xml +++ b/config/autoconfigbackup/autoconfigbackup.xml @@ -3,41 +3,47 @@ - + + 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. +*/ +/* ====================================================================================== */ + ]]> - Automatically backs up your pfSense configuration. All contents are encrypted before being sent to the server. Requires Gold Subscription from https://portal.pfsense.org - pfSense Portal subscription + Automatically backs up your pfSense configuration. All contents are encrypted before being sent to the server. Requires Gold Subscription from https://portal.pfsense.org + pfSense Portal subscription AutoConfigBackup - 1.28 + 1.29 Diagnostics: Auto Configuration Backup Change /usr/local/pkg/autoconfigbackup.inc @@ -49,38 +55,31 @@ /autoconfigbackup.php - /usr/local/pkg/write_config/ - 0755 + /usr/local/pkg/write_config/ https://packages.pfsense.org/packages/config/autoconfigbackup/parse_config_upload.inc - /usr/local/www/ - 0755 + /usr/local/www/ https://packages.pfsense.org/packages/config/autoconfigbackup/autoconfigbackup.php - /usr/local/pkg/ - 0755 + /usr/local/pkg/ https://packages.pfsense.org/packages/config/autoconfigbackup/autoconfigbackup.inc - /etc/inc/ - 0755 + /etc/inc/ https://packages.pfsense.org/packages/config/autoconfigbackup/crypt_acb.php - /usr/local/www/ - 0755 + /usr/local/www/ https://packages.pfsense.org/packages/config/autoconfigbackup/autoconfigbackup_backup.php - /usr/local/pkg/write_config/ - 0755 + /usr/local/pkg/write_config/ https://packages.pfsense.org/packages/config/autoconfigbackup/parse_config_upload.php - /usr/local/www/ - 0755 + /usr/local/www/ https://packages.pfsense.org/packages/config/autoconfigbackup/autoconfigbackup_stats.php @@ -116,37 +115,32 @@ password - Enter Password again + Enter Password Again passwordagain password Encryption Password - This password will be used to encrypt config.xml before uploading. We recommend not setting this to the same thing as your portal.pfsense.org account. Keep record of this password in a safe place - without it, your configurations will be impossible to restore. + + not setting this to the same password as your portal.pfsense.org account.
+ Keep record of this password in a safe place - without it, your configurations will be impossible to restore. + ]]> +
crypto_password password
- Encryption Password again + Encryption Password Again Enter the encryption password again. crypto_password2 password - + - custom_php_validation_command($_POST, $input_errors); + acb_custom_php_validation_command($_POST, $input_errors); - "; - $savemsg .= "A configuration backup has been queued."; - ]]> + acb_custom_php_resync_config_command();
-- cgit v1.2.3