From: <abe...@us...> - 2013-09-23 17:58:05
|
Revision: 6202 http://sourceforge.net/p/astlinux/code/6202 Author: abelbeck Date: 2013-09-23 17:58:01 +0000 (Mon, 23 Sep 2013) Log Message: ----------- web interface, Network tab, add support for both 'inadyn' and 'ddclient' Dynamic DNS Modified Paths: -------------- branches/1.0/package/webinterface/altweb/admin/edit.php branches/1.0/package/webinterface/altweb/admin/network.php branches/1.0/package/webinterface/altweb/common/license-packages.txt Modified: branches/1.0/package/webinterface/altweb/admin/edit.php =================================================================== --- branches/1.0/package/webinterface/altweb/admin/edit.php 2013-09-22 22:43:00 UTC (rev 6201) +++ branches/1.0/package/webinterface/altweb/admin/edit.php 2013-09-23 17:58:01 UTC (rev 6202) @@ -45,6 +45,7 @@ $select_reload['cron'] = 'Reload Cron for root'; $sys_label = array ( + 'ddclient.conf' => 'DDclient Dynamic DNS Config', 'dnsmasq.conf' => 'DNSmasq Configuration', 'misdn-init.conf' => 'mISDN Configuration', 'ntpd.conf' => 'NTP Time Client/Server', Modified: branches/1.0/package/webinterface/altweb/admin/network.php =================================================================== --- branches/1.0/package/webinterface/altweb/admin/network.php 2013-09-22 22:43:00 UTC (rev 6201) +++ branches/1.0/package/webinterface/altweb/admin/network.php 2013-09-23 17:58:01 UTC (rev 6202) @@ -1,6 +1,6 @@ <?php -// Copyright (C) 2008-2012 Lonnie Abelbeck +// Copyright (C) 2008-2013 Lonnie Abelbeck // This is free software, licensed under the GNU General Public License // version 3 as published by the Free Software Foundation; you can // redistribute it and/or modify it under the terms of the GNU @@ -31,6 +31,7 @@ // 12-03-2011, Added HTTP_ACCESSLOG and HTTPS_ACCESSLOG support // 01-28-2012, Added LOCALDNS_LOCAL_DOMAIN support // 07-07-2012, Added Universal Plug & Play support +// 09-23-2013, Added ddclient support // // System location of rc.conf file $CONFFILE = '/etc/rc.conf'; @@ -64,20 +65,21 @@ $select_dyndns = array ( 'User Defined >>>' => '', - 'ZoneEdit' => 'de...@zo...', + 'DNS-O-Matic' => 'de...@dn...', 'DynDNS' => 'dy...@dy...', + 'DynDNS [custom]' => 'cu...@dy...', 'DynDNS [static]' => 'st...@dy...', - 'DynDNS [custom]' => 'cu...@dy...', + 'FreeDNS' => 'de...@fr...', 'No-IP' => 'de...@no...', - 'FreeDNS' => 'de...@fr...', - 'DNS-O-Matic' => 'de...@dn...', - 'pairNIC' => 'de...@pa...' + 'pairNIC' => 'de...@pa...', + 'ZoneEdit' => 'de...@zo...' ); $select_dyndns_getip = array ( 'User Defined >>>' => '', + 'myip.dnsomatic.com' => 'myip.dnsomatic.com', + 'checkip.dyndns.org' => 'checkip.dyndns.org', 'getip.krisk.org' => 'getip.krisk.org', - 'checkip.dyndns.org' => 'checkip.dyndns.org', 'External Interface' => 'interface' ); @@ -523,6 +525,8 @@ fwrite($fp, "### IPv6 Tunnel\n".$value."\n"); fwrite($fp, "### Dynamic DNS\n"); + $value = 'DDCLIENT="'.$_POST['dd_client'].'"'; + fwrite($fp, $value."\n"); if ($_POST['dd_service'] !== '') { $value = 'DDSERVICE="'.$_POST['dd_service'].'"'; } else { @@ -1685,6 +1689,12 @@ putHtml('<tr class="dtrow0"><td class="dialogText" style="text-align: left;" colspan="6">'); putHtml('<strong>Dynamic DNS Update:</strong>'); + $dd_client = getVARdef($db, 'DDCLIENT', $cur_db); + putHtml('<select name="dd_client">'); + putHtml('<option value="inadyn">inadyn</option>'); + $sel = ($dd_client === 'ddclient') ? ' selected="selected"' : ''; + putHtml('<option value="ddclient"'.$sel.'>ddclient</option>'); + putHtml('</select>'); putHtml('</td></tr>'); putHtml('<tr class="dtrow1"><td style="text-align: left;" colspan="6">'); @@ -1708,7 +1718,7 @@ putHtml('<tr class="dtrow1"><td style="text-align: left;" colspan="6">'); putHtml('DNS Get IPv4 Address:'); if (($t_value = getVARdef($db, 'DDGETIP', $cur_db)) === '') { - $t_value = 'getip.krisk.org'; + $t_value = 'myip.dnsomatic.com'; } putHtml('<select name="dd_getip">'); foreach ($select_dyndns_getip as $key => $value) { Modified: branches/1.0/package/webinterface/altweb/common/license-packages.txt =================================================================== --- branches/1.0/package/webinterface/altweb/common/license-packages.txt 2013-09-22 22:43:00 UTC (rev 6201) +++ branches/1.0/package/webinterface/altweb/common/license-packages.txt 2013-09-23 17:58:01 UTC (rev 6202) @@ -43,3 +43,4 @@ perl~Copyright (c) 1987-2012 by Larry Wall, et al. phpliteadmin~Copyright (c) 2011-2013 phpLiteAdmin (http://phpliteadmin.googlecode.com) FOP2~Copyright (c) 2009-2013 House Internet S.R.L. (http://www.fop2.com) +ddclient~Copyright (c) 1999-2013 Paul Burry, wimpunk, et al. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |