Add xml sync schedules option

This commit is contained in:
Scott Ullrich 2007-04-15 19:37:07 +00:00
parent 530b5e46f9
commit e130cfd349
2 changed files with 14 additions and 5 deletions

View File

@ -3100,6 +3100,9 @@ function carp_sync_client() {
if($carp['synchronizednsforwarder'] != "" and is_array($config['dnsmasq'])) {
$sections[] = 'dnsmasq';
}
if($carp['synchronizeschedules'] != "" and is_array($config['schedules'])) {
$sections[] = 'schedules';
}
if(count($sections) > 0) {
update_filter_reload_status("Signaling CARP reload signal...");
carp_sync_xml($synchronizetoip, $carp['password'], $sections, $port);

View File

@ -144,11 +144,17 @@
<note>Note: CARP sync is currently only supported over http connections - make sure the remote system's WebGUI protocol is set to this!</note>
</field>
<field>
<fielddescr>Remote System Password</fielddescr>
<fieldname>password</fieldname>
<description>Enter the webGUI password of the system that you would like to synchronize with.</description>
<type>password</type>
</field>
<fielddescr>Remote System Password</fielddescr>
<fieldname>password</fieldname>
<description>Enter the webGUI password of the system that you would like to synchronize with.</description>
<type>password</type>
</field>
<field>
<fielddescr>Synchronize Firewall Schedules</fielddescr>
<fieldname>synchronizeschedules</fieldname>
<description>When this option is enabled, this system will automatically sync the firewall schedules over to the other carp host when changes are made.</description>
<type>checkbox</type>
</field>
</fields>
<custom_php_validation_command>
if($_POST["synchronizetoip"])