From 39d2f39d57e4eefbfd0630758464fab7568b6877 Mon Sep 17 00:00:00 2001 From: NOYB Date: Sat, 2 Jul 2016 02:13:04 -0700 Subject: Check IP Services Configurable check IP services. Used by Dynamic DNS services to check IP addresses. Configure as many check IP services as desired. The first (highest in the list) that is enabled will be used as the default. A future possibility could be to add an option to the Dynamic DNS entires to use a specific check IP service. Addresses bug #6493 by allowing additional check IP service to be added and selected as the default. --- src/usr/local/www/services_checkip.php | 198 +++++++++++++++++++++++++ src/usr/local/www/services_checkip_edit.php | 216 ++++++++++++++++++++++++++++ src/usr/local/www/services_dyndns.php | 1 + src/usr/local/www/services_rfc2136.php | 1 + 4 files changed, 416 insertions(+) create mode 100644 src/usr/local/www/services_checkip.php create mode 100644 src/usr/local/www/services_checkip_edit.php (limited to 'src/usr/local/www') diff --git a/src/usr/local/www/services_checkip.php b/src/usr/local/www/services_checkip.php new file mode 100644 index 0000000..a9d253e --- /dev/null +++ b/src/usr/local/www/services_checkip.php @@ -0,0 +1,198 @@ + + +
+
+

+
+
+ + + + + + + + + + + + + > + + + + + + + + + +
+ + + + + > + + + + + + + + + + +
+
+
+
+
+ + + +addInput(new Form_Checkbox( + 'enable', + 'Enable', + null, + $pconfig['enable'] +)); + +$section->addInput(new Form_Input( + 'name', + 'Name', + 'text', + $pconfig['name'] +))->setHelp('The name of the service may only consist of the characters "a-z, A-Z, 0-9 and _".'); + +$section->addInput(new Form_Input( + 'url', + 'URL', + 'text', + $pconfig['url'] +)); + +$section->addInput(new Form_Input( + 'username', + 'User name', + 'text', + $pconfig['username'] +)); + +$section->addPassword(new Form_Input( + 'passwordfld', + 'Password', + 'password', + $pconfig['password'] +)); + +$section->addInput(new Form_Checkbox( + 'verifysslpeer', + 'Verify SSL Peer', + 'Verify SSL Peer', + $pconfig['verifysslpeer'] +)); + +$section->addInput(new Form_Input( + 'descr', + 'Description', + 'text', + $pconfig['descr'] +))->setHelp('A description may be entered here for administrative reference (not parsed).'); + +if (isset($id) && $a_checkip[$id]) { + $section->addInput(new Form_Input( + 'id', + null, + 'hidden', + $id + )); +} + +$form->add($section); +print($form); + +include("foot.inc"); diff --git a/src/usr/local/www/services_dyndns.php b/src/usr/local/www/services_dyndns.php index f0de114..6afeb86 100644 --- a/src/usr/local/www/services_dyndns.php +++ b/src/usr/local/www/services_dyndns.php @@ -107,6 +107,7 @@ if ($input_errors) { $tab_array = array(); $tab_array[] = array(gettext("Dynamic DNS Clients"), true, "services_dyndns.php"); $tab_array[] = array(gettext("RFC 2136 Clients"), false, "services_rfc2136.php"); +$tab_array[] = array(gettext("Check IP Services"), false, "services_checkip.php"); display_top_tabs($tab_array); ?>
diff --git a/src/usr/local/www/services_rfc2136.php b/src/usr/local/www/services_rfc2136.php index f321949..3bd9f9c 100644 --- a/src/usr/local/www/services_rfc2136.php +++ b/src/usr/local/www/services_rfc2136.php @@ -95,6 +95,7 @@ include("head.inc"); $tab_array = array(); $tab_array[] = array(gettext("Dynamic DNS Clients"), false, "services_dyndns.php"); $tab_array[] = array(gettext("RFC 2136 Clients"), true, "services_rfc2136.php"); +$tab_array[] = array(gettext("Check IP Services"), false, "services_checkip.php"); display_top_tabs($tab_array); if ($input_errors) { -- cgit v1.1