aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-23 13:50:18 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-23 13:50:18 +0200
commit7b2165a1a055271cd05c2c4bc46d82e32d9a1d31 (patch)
tree20cdc9674370bf513f2e1fe81f26b992fd3d926c /config
parent9597e97c029be127beff9eb8b30af6d306983415 (diff)
downloadpfsense-packages-7b2165a1a055271cd05c2c4bc46d82e32d9a1d31.tar.gz
pfsense-packages-7b2165a1a055271cd05c2c4bc46d82e32d9a1d31.tar.bz2
pfsense-packages-7b2165a1a055271cd05c2c4bc46d82e32d9a1d31.zip
autoconfigbackup.- code style fixes
- Move custom_php_resync_config_command() function from XML to autoconfigbackup.inc and give it an unique prefix - Also give an unique prefix to custom_php_validation_command()
Diffstat (limited to 'config')
-rw-r--r--config/autoconfigbackup/autoconfigbackup.inc16
1 files changed, 15 insertions, 1 deletions
diff --git a/config/autoconfigbackup/autoconfigbackup.inc b/config/autoconfigbackup/autoconfigbackup.inc
index dc69ab62..c7d4c97b 100644
--- a/config/autoconfigbackup/autoconfigbackup.inc
+++ b/config/autoconfigbackup/autoconfigbackup.inc
@@ -39,7 +39,7 @@ unlink_if_exists("/usr/local/pkg/parse_config/parse_config_upload.inc");
unlink_if_exists("/usr/local/pkg/parse_config/parse_config_upload.php");
// Ensures patches match
-function custom_php_validation_command($post, &$input_errors) {
+function acb_custom_php_validation_command($post, &$input_errors) {
global $_POST, $savemsg, $config;
if (!$post['username']) {
@@ -73,6 +73,20 @@ function custom_php_validation_command($post, &$input_errors) {
unset($_POST['testconnection']);
}
+function acb_custom_php_resync_config_command() {
+ conf_mount_rw();
+ unlink_if_exists("/cf/conf/lastpfSbackup.txt");
+ conf_mount_ro();
+ if (!function_exists("filter_configure")) {
+ require_once("filter.inc");
+ }
+ filter_configure();
+ if ($savemsg) {
+ $savemsg .= "<br/>";
+ }
+ $savemsg .= "A configuration backup has been queued.";
+}
+
function configure_proxy() {
global $config;
$ret = array();