From 37f3e7041f927d692c7381b8df33d48ae1097cf1 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 3 Jun 2011 00:56:39 +0200 Subject: Add the option to use a custom Dynamic DNS Provider via an Update URL and Result Match. --- usr/local/www/services_dyndns.php | 15 +++- usr/local/www/services_dyndns_edit.php | 139 +++++++++++++++++++++++++++------ 2 files changed, 126 insertions(+), 28 deletions(-) (limited to 'usr') diff --git a/usr/local/www/services_dyndns.php b/usr/local/www/services_dyndns.php index 06f944b..7953331 100755 --- a/usr/local/www/services_dyndns.php +++ b/usr/local/www/services_dyndns.php @@ -47,8 +47,17 @@ $a_dyndns = &$config['dyndnses']['dyndns']; if ($_GET['act'] == "del") { unset($a_dyndns[$_GET['id']]); + for($i = 0; $i < count($a_dyndns); $i++) { + $a_dyndns[$i]['id'] = $i; + } + + //FIXME: Instead of rechecking all interfaces and removing the cache files, gracefully move all cache files to the appropriate ID number. + mwexec("/bin/rm {$g['conf_path']}/dyndns_*.cache"); + write_config(); + services_dyndns_configure(); + header("Location: services_dyndns.php"); exit; } @@ -114,8 +123,8 @@ include("head.inc"); +
@@ -154,10 +215,10 @@ include("head.inc"); - + + + + + + - + - + - + @@ -231,6 +306,30 @@ include("head.inc");
+ + + + + + + + @@ -272,17 +371,7 @@ include("head.inc"); -- cgit v1.1
-
+ +
+
@@ -190,7 +264,7 @@ include("head.inc");
@@ -200,18 +274,19 @@ include("head.inc");
>
-
+

+
+ +
+
+ +
+ +
+
+ +
+ +
+ +
+ +