1 |
|
diff -urN smeserver-ddclient-1.3.0.old/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers smeserver-ddclient-1.3.0/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers |
2 |
|
--- smeserver-ddclient-1.3.0.old/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers 2023-11-10 16:11:05.911271972 +0000 |
3 |
|
+++ smeserver-ddclient-1.3.0/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers 2023-12-04 14:55:00.000000000 +0000 |
4 |
|
@@ -57,10 +57,11 @@ |
5 |
|
} else { |
6 |
|
# fw method |
7 |
|
my $fwaddress = $ddclient{'fwaddress'}||''; |
8 |
|
+ my $fwdevice = $ddclient{'Extinterface'}||''; |
9 |
|
my $fwlogin = $ddclient{'fwlogin'}||''; |
10 |
|
my $fwpassword = $ddclient{'fwpassword'}||''; |
11 |
|
my $fwskip = $ddclient{'fwskip'}||''; |
12 |
|
- $OUT .= "usev4=$method, fwv4=$fwaddress"; |
13 |
|
+ $OUT .= "usev4=$fwdevice, fwv4=$fwaddress"; |
14 |
|
$OUT .= ", fw-login=$fwlogin " if ( $fwlogin ne '' ); |
15 |
|
$OUT .= ", fw-password=$fwpassword " if ( $fwpassword ne '' ); |
16 |
|
$OUT .= ", fwv4-skip='$fwskip' " if ( $fwskip ne '' ); |
17 |
diff -urN smeserver-ddclient-1.3.0.old/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm smeserver-ddclient-1.3.0/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm |
diff -urN smeserver-ddclient-1.3.0.old/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm smeserver-ddclient-1.3.0/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm |
18 |
--- smeserver-ddclient-1.3.0.old/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm 2023-11-10 16:11:05.915271983 +0000 |
--- smeserver-ddclient-1.3.0.old/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm 2023-11-10 16:11:05.915271983 +0000 |
19 |
+++ smeserver-ddclient-1.3.0/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm 2023-12-01 17:16:00.000000000 +0000 |
+++ smeserver-ddclient-1.3.0/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm 2023-12-14 10:17:00.000000000 +0000 |
20 |
@@ -114,57 +114,168 @@ |
@@ -114,90 +114,164 @@ |
21 |
|
|
22 |
my %ddc_datas = (); |
my %ddc_datas = (); |
23 |
|
|
24 |
+sub get_devices_names { |
+sub get_devices_names { |
25 |
+ # |
+ # |
26 |
+ # Router devices from which it can get ip address |
+ # Router/Firewall devices from which it can get ip address |
27 |
+ # |
+ # |
28 |
+ my $devices = ( [ |
+ my $devices = ( [ |
29 |
+ [ '2wire' => '2Wire 1701HG Gateway' ], |
+ [ '2Wire 1701HG Gateway' => '2wire' ], |
30 |
+ [ '3com-3c886a' => '3com 3c886a 56k Lan Modem' ], |
+ [ '3com 3c886a 56k Lan Modem' => '3com-3c886a' ], |
31 |
+ [ '3com-oc-remote812' => '3com OfficeConnect Remote 812' ], |
+ [ '3com OfficeConnect Remote 812' => '3com-oc-remote812' ], |
32 |
+ [ 'alcatel-510' => 'Alcatel Speed Touch 510' ], |
+ [ 'Alcatel Speed Touch 510' => 'alcatel-510' ], |
33 |
+ [ 'alcatel-530' => 'Alcatel/Thomson SpeedTouch 530' ], |
+ [ 'Alcatel/Thomson SpeedTouch 530' => 'alcatel-530' ], |
34 |
+ [ 'alcatel-stp' => 'Alcatel Speed Touch Pro' ], |
+ [ 'Alcatel Speed Touch Pro' => 'alcatel-stp' ], |
35 |
+ [ 'allnet-1298' => 'Allnet 1298' ], |
+ [ 'Allnet 1298' => 'allnet-1298' ], |
36 |
+ [ 'cayman-3220h' => 'Cayman 3220-H DSL' ], |
+ [ 'Cayman 3220-H DSL' => 'cayman-3220h' ], |
37 |
+ [ 'dlink-524' => 'D-Link DI-524' ], |
+ [ 'D-Link DI-524' => 'dlink-524' ], |
38 |
+ [ 'dlink-604' => 'D-Link DI-604' ], |
+ [ 'D-Link DI-604' => 'dlink-604' ], |
39 |
+ [ 'dlink-614' => 'D-Link DI-614+' ], |
+ [ 'dlink-614' => 'D-Link DI-614+' ], |
40 |
+ [ 'e-tech' => 'E-tech Router' ], |
+ [ 'e-tech' => 'E-tech Router' ], |
41 |
+ [ 'elsa-lancom-dsl10' => 'ELSA LanCom DSL/10 DSL FW' ], |
+ [ 'elsa-lancom-dsl10' => 'ELSA LanCom DSL/10 DSL FW' ], |
72 |
+ [ 'watchguard-edge-x' => 'Watchguard Edge X FW' ], |
+ [ 'watchguard-edge-x' => 'Watchguard Edge X FW' ], |
73 |
+ [ 'watchguard-soho' => 'Watchguard SOHO FW' ], |
+ [ 'watchguard-soho' => 'Watchguard SOHO FW' ], |
74 |
+ [ 'westell-6100' => 'Westell C90-610015-06 DSL Router' ], |
+ [ 'westell-6100' => 'Westell C90-610015-06 DSL Router' ], |
75 |
+ [ 'xsense-aero' => 'Xsense Aero'] |
+ [ 'xsense-aero' => 'Xsense Aero' ] |
76 |
+ ] ); |
+ ] ); |
77 |
+ return $devices; |
+ return $devices; |
78 |
+ |
+ |
93 |
+ # Web Services from which it can get ip address |
+ # Web Services from which it can get ip address |
94 |
+ # |
+ # |
95 |
+ my $webservices = ( [ |
+ my $webservices = ( [ |
96 |
+ [ 'dyndnshttp://checkip.dyndns.org/' => 'dyndns' ], |
+ [ 'dyndns-http://checkip.dyndns.org/' => 'dyndns' ], |
97 |
+ [ 'freednshttps://freedns.afraid.org/dynamic/check.php' => 'freedns' ], |
+ [ 'freedns-https://freedns.afraid.org/dynamic/check.php' => 'freedns' ], |
98 |
+ [ 'googledomainshttps://domains.google.com/checkip' => 'googledomains' ], |
+ [ 'googledomains-https://domains.google.com/checkip' => 'googledomains' ], |
99 |
+ [ 'hehttps://checkip.dns.he.net/' => 'he' ], |
+ [ 'he-https://checkip.dns.he.net/' => 'he' ], |
100 |
+ [ 'ip4only.mehttps://ip4only.me/api/' => 'ip4only.me' ], |
+ [ 'ip4only.me-https://ip4only.me/api/' => 'ip4only.me' ], |
101 |
+ [ 'ip6only.mehttps://ip6only.me/api/' => 'ip6only.me' ], |
+ [ 'ip6only.me-https://ip6only.me/api/' => 'ip6only.me' ], |
102 |
+ [ 'ipify-ipv4https://api.ipify.org/' => 'ipify-ipv4' ], |
+ [ 'ipify-ipv4-https://api.ipify.org/' => 'ipify-ipv4' ], |
103 |
+ [ 'ipify-ipv6https://api6.ipify.org/' => 'ipify-ipv6' ], |
+ [ 'ipify-ipv6-https://api6.ipify.org/' => 'ipify-ipv6' ], |
104 |
+ [ 'loopiahttps://dns.loopia.se/checkip/checkip.php' => 'loopia' ], |
+ [ 'loopia:-https://dns.loopia.se/checkip/checkip.php' => 'loopia' ], |
105 |
+ [ 'myonlineportalhttps://myonlineportal.net/checkip' => 'myonlineportal' ], |
+ [ 'myonlineportal-https://myonlineportal.net/checkip' => 'myonlineportal' ], |
106 |
+ [ 'noip-ipv4http://ip1.dynupdate.no-ip.com/' => 'noip-ipv4' ], |
+ [ 'noip-ipv4-http://ip1.dynupdate.no-ip.com/' => 'noip-ipv4' ], |
107 |
+ [ 'noip-ipv6http://ip1.dynupdate6.no-ip.com/' => 'noip-ipv6' ], |
+ [ 'noip-ipv6-http://ip1.dynupdate6.no-ip.com/' => 'noip-ipv6' ], |
108 |
+ [ 'nsupdate.info-ipv4https://ipv4.nsupdate.info/myip' => 'nsupdate.info-ipv4' ], |
+ [ 'nsupdate.info-ipv4-https://ipv4.nsupdate.info/myip' => 'nsupdate.info-ipv4' ], |
109 |
+ [ 'nsupdate.info-ipv6https://ipv6.nsupdate.info/myip' => 'nsupdate.info-ipv6' ], |
+ [ 'nsupdate.info-ipv6-https://ipv6.nsupdate.info/myip' => 'nsupdate.info-ipv6' ], |
110 |
+ [ 'zoneedithttps://dynamic.zoneedit.com/checkip.html' => 'zoneedit' ] |
+ [ 'zoneedit-https://dynamic.zoneedit.com/checkip.html' => 'zoneedit' ] |
111 |
+ ] ); |
+ ] ); |
112 |
+ return $webservices |
+ return $webservices |
113 |
+ |
+ |
130 |
# |
# |
131 |
my $c = shift; |
my $c = shift; |
132 |
- my $Labels = ( |
- my $Labels = ( |
133 |
+ my $dnsservices = ( [ |
- |
|
+ [ $c->l('1984') => '1984' ], |
|
|
+ [ $c->l('changeip') => 'changeip' ], |
|
|
+ [ $c->l('cloudflare') => 'cloudflare' ], |
|
|
+ [ $c->l('cloudns') => 'cloudns' ], |
|
|
+ [ $c->l('digitalocean') => 'digitalocean' ], |
|
|
+ [ $c->l('dinahosting') => 'dinahosting' ], |
|
|
+ [ $c->l('dnsexit') => 'dnsexit' ], |
|
|
+ [ $c->l('dnsmadeeasy') => 'dnsmadeeasy' ], |
|
|
+ [ $c->l('domeneshop') => 'domeneshop' ], |
|
|
+ [ $c->l('dondominio') => 'dondominio' ], |
|
|
+ [ $c->l('dslreports') => 'dslreports' ], |
|
|
+ [ $c->l('duckdns') => 'duckdns' ], |
|
|
+ [ $c->l('dyndns1') => 'dyndns1' ], |
|
|
+ [ $c->l('dyndns2') => 'dyndns2' ], |
|
|
+ [ $c->l('easydns') => 'easydns' ], |
|
|
+ [ $c->l('enom') => 'enom' ], |
|
|
+ [ $c->l('freedns') => 'freedns' ], |
|
|
+ [ $c->l('freemyip') => 'freemyip' ], |
|
|
+ [ $c->l('gandi') => 'gandi' ], |
|
|
+ [ $c->l('godaddy') => 'godaddy' ], |
|
|
+ [ $c->l('googledomains') => 'googledomains' ], |
|
|
+ [ $c->l('hetzner') => 'hetzner' ], |
|
|
+ [ $c->l('infomaniak') => 'infomaniak' ], |
|
|
+ [ $c->l('keysystems') => 'keysystems' ], |
|
|
+ [ $c->l('mythicdyn') => 'mythicdyn' ], |
|
|
+ [ $c->l('namecheap') => 'namecheap' ], |
|
|
+ [ $c->l('nfsn') => 'nfsn' ], |
|
|
+ [ $c->l('njalla') => 'njalla' ], |
|
|
+ [ $c->l('noip') => 'noip' ], |
|
|
+ [ $c->l('nsupdate') => 'nsupdate' ], |
|
|
+ [ $c->l('ovh') => 'ovh' ], |
|
|
+ [ $c->l('porkbun') => 'porkbun' ], |
|
|
+ [ $c->l('regfishde') => 'regfishde' ], |
|
|
+ [ $c->l('sitelutions') => 'sitelutions' ], |
|
|
+ [ $c->l('woima') => 'woima' ], |
|
|
+ [ $c->l('yandex') => 'yandex' ], |
|
|
+ [ $c->l('zoneedit') => 'zoneedit' ] |
|
|
+ ] ); |
|
|
+ return $dnsservices; |
|
|
|
|
134 |
- # v3.11.1 labels |
- # v3.11.1 labels |
135 |
- [ |
- [ |
136 |
- [$c->l('1984') '1984'], |
- [$c->l('1984') '1984'], |
172 |
- [$c->l('zoneedit1') 'zoneedit1'] |
- [$c->l('zoneedit1') 'zoneedit1'] |
173 |
- ] |
- ] |
174 |
- # end of v3.11.1 labels |
- # end of v3.11.1 labels |
175 |
- |
+ my $dnsservices = ( [ |
176 |
|
+ [ $c->l('1984') => '1984' ], |
177 |
|
+ [ $c->l('changeip') => 'changeip' ], |
178 |
|
+ [ $c->l('cloudflare') => 'cloudflare' ], |
179 |
|
+ [ $c->l('cloudns') => 'cloudns' ], |
180 |
|
+ [ $c->l('digitalocean') => 'digitalocean' ], |
181 |
|
+ [ $c->l('dinahosting') => 'dinahosting' ], |
182 |
|
+ [ $c->l('dnsexit') => 'dnsexit' ], |
183 |
|
+ [ $c->l('dnsmadeeasy') => 'dnsmadeeasy' ], |
184 |
|
+ [ $c->l('domeneshop') => 'domeneshop' ], |
185 |
|
+ [ $c->l('dondominio') => 'dondominio' ], |
186 |
|
+ [ $c->l('dslreports') => 'dslreports' ], |
187 |
|
+ [ $c->l('duckdns') => 'duckdns' ], |
188 |
|
+ [ $c->l('dyndns1') => 'dyndns1' ], |
189 |
|
+ [ $c->l('dyndns2') => 'dyndns2' ], |
190 |
|
+ [ $c->l('easydns') => 'easydns' ], |
191 |
|
+ [ $c->l('enom') => 'enom' ], |
192 |
|
+ [ $c->l('freedns') => 'freedns' ], |
193 |
|
+ [ $c->l('freemyip') => 'freemyip' ], |
194 |
|
+ [ $c->l('gandi') => 'gandi' ], |
195 |
|
+ [ $c->l('godaddy') => 'godaddy' ], |
196 |
|
+ [ $c->l('googledomains') => 'googledomains' ], |
197 |
|
+ [ $c->l('hetzner') => 'hetzner' ], |
198 |
|
+ [ $c->l('infomaniak') => 'infomaniak' ], |
199 |
|
+ [ $c->l('keysystems') => 'keysystems' ], |
200 |
|
+ [ $c->l('mythicdyn') => 'mythicdyn' ], |
201 |
|
+ [ $c->l('namecheap') => 'namecheap' ], |
202 |
|
+ [ $c->l('nfsn') => 'nfsn' ], |
203 |
|
+ [ $c->l('njalla') => 'njalla' ], |
204 |
|
+ [ $c->l('noip') => 'noip' ], |
205 |
|
+ [ $c->l('nsupdate') => 'nsupdate' ], |
206 |
|
+ [ $c->l('ovh') => 'ovh' ], |
207 |
|
+ [ $c->l('porkbun') => 'porkbun' ], |
208 |
|
+ [ $c->l('regfishde') => 'regfishde' ], |
209 |
|
+ [ $c->l('sitelutions') => 'sitelutions' ], |
210 |
|
+ [ $c->l('woima') => 'woima' ], |
211 |
|
+ [ $c->l('yandex') => 'yandex' ], |
212 |
|
+ [ $c->l('zoneedit') => 'zoneedit' ] |
213 |
|
+ ] ); |
214 |
|
+ return $dnsservices; |
215 |
|
|
216 |
- |
- |
217 |
- #[ [ $c->l('CUSTOMDNS'), 'CUSTOMDNS' ], |
- #[ [ $c->l('CUSTOMDNS'), 'CUSTOMDNS' ], |
218 |
|
- #[ $c->l('DYNDNS1'), 'DYNDNS1' ], |
219 |
|
- #[ $c->l('DYNDNS2'), 'DYNDNS2' ], |
220 |
|
- #[ $c->l('DYNDNS3'), 'DYNDNS3' ], |
221 |
|
- #[ $c->l('ZONEDIT'), 'ZONEDIT' ], |
222 |
|
- #[ $c->l('EASYDNS'), 'EASYDNS' ], |
223 |
|
- #[ $c->l('HAMMER'), 'HAMMER' ], |
224 |
|
- #[ $c->l('DSLREPORTS'), 'DSLREPORTS' ], |
225 |
|
- #[ $c->l('EURODYNDNS'), 'EURODYNDNS' ], |
226 |
|
- #[ $c->l('DTDNS'), 'DTDNS' ], |
227 |
|
- #[ $c->l('LOOPIA'), 'LOOPIA' ], |
228 |
|
- #[ $c->l('DNSPARK'), 'DNSPARK' ], |
229 |
|
- #[ $c->l('DYNHOST'), 'DYNHOST' ], |
230 |
|
- #[ $c->l('NOIP'), 'NOIP' ], |
231 |
|
- #[ $c->l('CHANGEIP'), 'CHANGEIP' ], |
232 |
|
- #[ $c->l('NAMECHEAP'), 'NAMECHEAP' ], |
233 |
|
- #[ $c->l('SPDNS'), 'SPDNS' ], |
234 |
|
- #[ $c->l('SITELUTIONS'), 'SITELUTIONS' ], |
235 |
|
- #[ $c->l('FREEDNS'), 'FREEDNS' ], |
236 |
|
- #[ $c->l('NSUPDATE'), 'NSUPDATE' ], |
237 |
|
- #[ $c->l('CLOUDFLARE'), 'CLOUDFLARE' ], |
238 |
|
- #[ $c->l('GOOGLEDOMAINS'), 'GOOGLEDOMAINS' ], |
239 |
|
- #[ $c->l('DUCKDNS'), 'DUCKDNS' ], |
240 |
|
- #[ $c->l('FREEMYIP'), 'FREEMYIP' ], |
241 |
|
- #[ $c->l('WOIMA'), 'WOIMA' ], |
242 |
|
- #[ $c->l('YANDEX'), 'YANDEX' ], |
243 |
|
- #[ $c->l('DNSMADEEASY'), 'DNSMADEEASY' ], |
244 |
|
- #[ $c->l('DONDOMINIO'), 'DONDOMINIO' ], |
245 |
|
- #[ $c->l('NEARLYFREESPEECH'), 'NFSN' ], |
246 |
|
- #[ $c->l('OVH'), 'OVH' ], |
247 |
|
- #[ $c->l('CLOUDNS'), 'CLOUDNS' ] |
248 |
|
- #] |
249 |
|
- ); |
250 |
|
- return $Labels; |
251 |
+ #my $output = `ddclient -list-protocols`; # Run ddclient command and capture the output |
+ #my $output = `ddclient -list-protocols`; # Run ddclient command and capture the output |
252 |
+ #my @protocols; |
+ #my @protocols; |
253 |
+ #foreach my $line (split /\n/, $output) { |
+ #foreach my $line (split /\n/, $output) { |
257 |
+ #push @protocols, [$custom_value, $protocol]; |
+ #push @protocols, [$custom_value, $protocol]; |
258 |
+ #} |
+ #} |
259 |
+ #return \@protocols; # Return a reference to the protocols array |
+ #return \@protocols; # Return a reference to the protocols array |
260 |
+} |
} |
|
+ |
|
|
+# Pre 3.11.1 dns services |
|
|
+ #[ [ $c->l('CUSTOMDNS'), 'CUSTOMDNS' ], |
|
|
#[ $c->l('DYNDNS1'), 'DYNDNS1' ], |
|
|
#[ $c->l('DYNDNS2'), 'DYNDNS2' ], |
|
|
#[ $c->l('DYNDNS3'), 'DYNDNS3' ], |
|
|
@@ -196,9 +307,6 @@ |
|
|
#[ $c->l('OVH'), 'OVH' ], |
|
|
#[ $c->l('CLOUDNS'), 'CLOUDNS' ] |
|
|
#] |
|
|
- ); |
|
|
- return $Labels; |
|
|
-} |
|
261 |
|
|
262 |
sub main { |
sub main { |
263 |
# |
@@ -230,13 +304,15 @@ |
|
@@ -230,13 +338,15 @@ |
|
264 |
my $emptycust = ( scalar @FreeDomains == 0 ); |
my $emptycust = ( scalar @FreeDomains == 0 ); |
265 |
|
|
266 |
my $Labels = ( |
my $Labels = ( |
275 |
+ [ $c->l('SME external Interface') => "smeIF" ], |
+ [ $c->l('SME external Interface') => "smeIF" ], |
276 |
+ [ $c->l('SME configuration DB') => 'smeCMD' ], |
+ [ $c->l('SME configuration DB') => 'smeCMD' ], |
277 |
+ [ $c->l('web') => 'web' ], |
+ [ $c->l('web') => 'web' ], |
278 |
+ [ $c->l('router') => 'router' ], |
+ [ $c->l('Router/Firewall') => 'router' ], |
279 |
+ [ $c->l('Interface') => 'if' ], |
+ [ $c->l('Interface') => 'if' ], |
280 |
+ [ $c->l('IP') => 'ip' ], |
+ [ $c->l('IP') => 'ip' ], |
281 |
+ [ $c->l('Command') => 'cmd' ] |
+ [ $c->l('Command') => 'cmd' ] |
283 |
); |
); |
284 |
|
|
285 |
$c->stash( |
$c->stash( |
286 |
@@ -246,6 +356,9 @@ |
@@ -246,6 +322,9 @@ |
287 |
domains => \@domains, |
domains => \@domains, |
288 |
freedomains => \@FreeDomains, |
freedomains => \@FreeDomains, |
289 |
methodlabels => $Labels, |
methodlabels => $Labels, |
293 |
emptydom => $emptydom, |
emptydom => $emptydom, |
294 |
emptycust => $emptycust |
emptycust => $emptycust |
295 |
); |
); |
296 |
@@ -260,6 +373,7 @@ |
@@ -260,6 +339,7 @@ |
297 |
# Called to update the parameters relating to the Ip address of the server |
# Called to update the parameters relating to the Ip address of the server |
298 |
# |
# |
299 |
my $c = shift; |
my $c = shift; |
301 |
$ddc_datas{"success"} = pushParams($c); |
$ddc_datas{"success"} = pushParams($c); |
302 |
do_display($c); |
do_display($c); |
303 |
} |
} |
304 |
@@ -269,6 +383,7 @@ |
@@ -269,6 +349,7 @@ |
305 |
#Called to update/delete the ddclient for a specific inbuilt domain |
#Called to update/delete the ddclient for a specific inbuilt domain |
306 |
# |
# |
307 |
my $c = shift; |
my $c = shift; |
309 |
my $retmsg; |
my $retmsg; |
310 |
if ( $c->param("Route") eq "ddclient2" ) { #Route is hidden field |
if ( $c->param("Route") eq "ddclient2" ) { #Route is hidden field |
311 |
$retmsg = performModifyCustom($c); |
$retmsg = performModifyCustom($c); |
312 |
@@ -276,10 +391,11 @@ |
@@ -276,10 +357,11 @@ |
313 |
else { |
else { |
314 |
$retmsg = performModifyDomain($c); |
$retmsg = performModifyDomain($c); |
315 |
} |
} |
322 |
$c->l( '' . $dns ) ); |
$c->l( '' . $dns ) ); |
323 |
do_display( $c, %ddc_datas ); |
do_display( $c, %ddc_datas ); |
324 |
} |
} |
325 |
@@ -296,7 +412,7 @@ |
@@ -296,7 +378,7 @@ |
326 |
# Create custom domain |
# Create custom domain |
327 |
# |
# |
328 |
my $c = shift; |
my $c = shift; |
331 |
my $modul = ''; |
my $modul = ''; |
332 |
my $trt = "NEW"; |
my $trt = "NEW"; |
333 |
|
|
334 |
@@ -305,18 +421,21 @@ |
@@ -305,18 +387,21 @@ |
335 |
title => $title, |
title => $title, |
336 |
modul => $modul, |
modul => $modul, |
337 |
ddc_datas => \%ddc_datas, |
ddc_datas => \%ddc_datas, |
355 |
$c->l( '' . $dns ) ); |
$c->l( '' . $dns ) ); |
356 |
do_display( $c, %ddc_datas ); |
do_display( $c, %ddc_datas ); |
357 |
} |
} |
358 |
@@ -334,7 +453,7 @@ |
@@ -334,7 +419,7 @@ |
359 |
# Display delete or modify panel for custom domain |
# Display delete or modify panel for custom domain |
360 |
# |
# |
361 |
my $c = shift; |
my $c = shift; |
364 |
my $modul = ''; |
my $modul = ''; |
365 |
my $trt = $c->param("trt"); |
my $trt = $c->param("trt"); |
366 |
|
|
367 |
@@ -349,7 +468,9 @@ |
@@ -349,7 +434,9 @@ |
368 |
title => $title, |
title => $title, |
369 |
modul => $modul, |
modul => $modul, |
370 |
ddc_datas => \%ddc_datas, |
ddc_datas => \%ddc_datas, |
375 |
); |
); |
376 |
$c->render( template => 'ddclient' ); |
$c->render( template => 'ddclient' ); |
377 |
} |
} |
378 |
@@ -360,21 +481,23 @@ |
@@ -360,21 +447,23 @@ |
379 |
# param trt = MOD or DEL |
# param trt = MOD or DEL |
380 |
# |
# |
381 |
my $c = shift; |
my $c = shift; |
402 |
); |
); |
403 |
$c->render( template => 'ddclient' ); |
$c->render( template => 'ddclient' ); |
404 |
} |
} |
405 |
@@ -386,10 +509,11 @@ |
@@ -386,10 +475,11 @@ |
406 |
# |
# |
407 |
my $c = shift; |
my $c = shift; |
408 |
my $route = $c->current_route; |
my $route = $c->current_route; |
415 |
|
|
416 |
#Delete it and return to front summary panel - depends on route domain or custom |
#Delete it and return to front summary panel - depends on route domain or custom |
417 |
if ( $c->param("Route") eq "ddclient2" ) { #Route is hidden field |
if ( $c->param("Route") eq "ddclient2" ) { #Route is hidden field |
418 |
@@ -400,7 +524,7 @@ |
@@ -400,7 +490,7 @@ |
419 |
} |
} |
420 |
|
|
421 |
if ( $retmsg eq "ok" ) { |
if ( $retmsg eq "ok" ) { |
424 |
$c->l( '' . $c->param("dns") ) ); |
$c->l( '' . $c->param("dns") ) ); |
425 |
} |
} |
426 |
else { $ddc_datas{"error"} = $retmsg; } |
else { $ddc_datas{"error"} = $retmsg; } |
427 |
@@ -415,15 +539,16 @@ |
@@ -415,15 +505,16 @@ |
428 |
# |
# |
429 |
my $c = shift; |
my $c = shift; |
430 |
my $route = $c->current_route; |
my $route = $c->current_route; |
443 |
} |
} |
444 |
else { $ddc_datas{"error"} = $retmsg; } |
else { $ddc_datas{"error"} = $retmsg; } |
445 |
do_display( $c, %ddc_datas ); |
do_display( $c, %ddc_datas ); |
446 |
@@ -588,6 +713,8 @@ |
@@ -450,7 +541,7 @@ |
447 |
|
|
448 |
|
foreach $domain ( sort @virtualDomains ) { |
449 |
|
my %properties = $domaindb->get($domain)->props; |
450 |
|
- my $test = $domaindb->get_prop( $domain, "dns" ) || ''; |
451 |
|
+ my $test = $domaindb->get($domain) || ''; |
452 |
|
my %extraprops; |
453 |
|
if ( $test ne '' ) { |
454 |
|
%extraprops = $domaindb->get($domain)->props; |
455 |
|
@@ -567,6 +658,8 @@ |
456 |
|
my $Extinterface = $ddretrieve->prop('Extinterface') || ''; |
457 |
|
my $cmd = $ddretrieve->prop('cmd') || ''; |
458 |
|
my $forceIP = $ddretrieve->prop('ForceIP') || ''; |
459 |
|
+ my $fwlogin = $ddretrieve->prop('fwlogin') || ''; |
460 |
|
+ my $fwpassword = $ddretrieve->prop('fwpassword') || ''; |
461 |
|
my $res = { |
462 |
|
"ssl" => $ssl, |
463 |
|
"DeamonUpdate" => $DeamonUpdate, |
464 |
|
@@ -574,29 +667,43 @@ |
465 |
|
"Extinterface" => $Extinterface, |
466 |
|
"cmd" => $cmd, |
467 |
|
"ForceIP" => $forceIP, |
468 |
|
- "urlcheckip" => $urlcheckip |
469 |
|
+ "urlcheckip" => $urlcheckip, |
470 |
|
+ "FWlogin" => $fwlogin, |
471 |
|
+ "FWpassword" => $fwpassword |
472 |
|
}; |
473 |
|
return $res; |
474 |
|
} |
475 |
|
|
476 |
|
sub pushParams { |
477 |
|
my $c = shift; |
478 |
|
- my $DeamonUpdate = $c->param('retrievedeamonupdate'); |
479 |
|
- my $urlcheckip = $c->param('retrieveurlcheckip'); |
480 |
|
- my $ssl = $c->param('retrievessl'); |
481 |
|
+ my $retrievedeamonupdate = $c->param('retrievedeamonupdate'); |
482 |
|
+ my $retrieverouter = $c->param('retrieverouter'); |
483 |
|
+ my $retrievewebservice = $c->param('retrievewebservice'); |
484 |
|
+ my $retrieveurlcheckip = $c->param('retrieveurlcheckip'); |
485 |
|
+ my $retrievessl = $c->param('retrievessl'); |
486 |
|
my $retrievemethod = $c->param('retrievemethod'); |
487 |
my $retrieveinterface = $c->param('retrieveinterface'); |
my $retrieveinterface = $c->param('retrieveinterface'); |
488 |
my $retrievecmd = $c->param('retrievecmd'); |
my $retrievecmd = $c->param('retrievecmd'); |
489 |
my $retrieveip = $c->param('retrieveip'); |
my $retrieveip = $c->param('retrieveip'); |
490 |
|
+ my $retrievefwlogin = $c->param('retrieverouterlogin'); |
491 |
|
+ my $retrievefwpassword = $c->param('retrieverouterpassword'); |
492 |
+ |
+ |
493 |
+ #print 1 / 0; #Crash |
+ #print 1 / 0; #Crash |
494 |
|
|
495 |
my $ddclient = $db->get('ddclient'); |
my $ddclient = $db->get('ddclient'); |
496 |
$ddclient->set_prop( 'urlcheckip' => $urlcheckip ); |
- $ddclient->set_prop( 'urlcheckip' => $urlcheckip ); |
497 |
@@ -616,7 +743,7 @@ |
- $ddclient->set_prop( 'DeamonUpdate' => $DeamonUpdate ); |
498 |
|
- $ddclient->set_prop( 'SSL' => $ssl ); |
499 |
|
+ $ddclient->set_prop( 'urlcheckip' => $retrievewebservice || $retrieveurlcheckip ); |
500 |
|
+ $ddclient->set_prop( 'DeamonUpdate' => $retrievedeamonupdate ); |
501 |
|
+ $ddclient->set_prop( 'SSL' => $retrievessl ); |
502 |
|
$ddclient->set_prop( 'method' => $retrievemethod ); |
503 |
|
- $ddclient->set_prop( 'Extinterface' => $retrieveinterface ); |
504 |
|
+ if ($retrievemethod eq 'router') { |
505 |
|
+ $ddclient->set_prop( 'Extinterface' => $retrieverouter ); |
506 |
|
+ } else { |
507 |
|
+ $ddclient->set_prop( 'Extinterface' => $retrieveinterface ); |
508 |
|
+ } |
509 |
|
$ddclient->set_prop( 'cmd' => $retrievecmd ); |
510 |
|
$ddclient->set_prop( 'ForceIP' => $retrieveip ); |
511 |
|
+ $ddclient->set_prop( 'fwlogin' => $retrievefwlogin ); |
512 |
|
+ $ddclient->set_prop( 'fwpassword' => $retrievefwpassword ); |
513 |
|
|
514 |
|
$domaindb->reload(); |
515 |
|
|
516 |
|
@@ -616,7 +723,7 @@ |
517 |
#------------------------------------------------------------ |
#------------------------------------------------------------ |
518 |
|
|
519 |
my $domainName = $c->param('domainName'); |
my $domainName = $c->param('domainName'); |
522 |
$domainName = $1; |
$domainName = $1; |
523 |
} |
} |
524 |
else { |
else { |
525 |
@@ -624,7 +751,7 @@ |
@@ -624,7 +731,7 @@ |
526 |
} |
} |
527 |
|
|
528 |
my $domainLogin = $c->param('login'); |
my $domainLogin = $c->param('login'); |
531 |
$domainLogin = $1; |
$domainLogin = $1; |
532 |
} |
} |
533 |
else { |
else { |
534 |
@@ -632,7 +759,7 @@ |
@@ -632,7 +739,7 @@ |
535 |
} |
} |
536 |
|
|
537 |
my $domainPassword = $c->param('password'); |
my $domainPassword = $c->param('password'); |
540 |
$domainPassword = $1; |
$domainPassword = $1; |
541 |
} |
} |
542 |
else { |
else { |
543 |
@@ -646,7 +773,7 @@ |
@@ -646,7 +753,7 @@ |
544 |
|
|
545 |
my $dns = $c->param('dns'); |
my $dns = $c->param('dns'); |
546 |
if ( $dns eq 'CUSTOMDNS' ) { |
if ( $dns eq 'CUSTOMDNS' ) { |
549 |
$customDNS = $1; |
$customDNS = $1; |
550 |
} |
} |
551 |
else |
else |
552 |
@@ -685,7 +812,7 @@ |
@@ -685,7 +792,7 @@ |
553 |
# Attempt to delete domain |
# Attempt to delete domain |
554 |
#------------------------------------------------------------ |
#------------------------------------------------------------ |
555 |
|
|
558 |
$domain = $1; |
$domain = $1; |
559 |
} |
} |
560 |
else { |
else { |
561 |
@@ -726,7 +853,7 @@ |
@@ -726,7 +833,7 @@ |
562 |
#------------------------------------------------------------ |
#------------------------------------------------------------ |
563 |
|
|
564 |
my $domainName = $c->param('domainName'); |
my $domainName = $c->param('domainName'); |
567 |
$domainName = $1; |
$domainName = $1; |
568 |
} |
} |
569 |
else { |
else { |
570 |
@@ -749,7 +876,7 @@ |
@@ -749,7 +856,7 @@ |
571 |
|
|
572 |
my $domainDesc = $c->param('desc'); |
my $domainDesc = $c->param('desc'); |
573 |
my $domainLogin = $c->param('login'); |
my $domainLogin = $c->param('login'); |
576 |
$domainLogin = $1; |
$domainLogin = $1; |
577 |
} |
} |
578 |
else { |
else { |
579 |
@@ -757,7 +884,7 @@ |
@@ -757,7 +864,7 @@ |
580 |
} |
} |
581 |
|
|
582 |
my $domainPassword = $c->param('password'); |
my $domainPassword = $c->param('password'); |
585 |
$domainPassword = $1; |
$domainPassword = $1; |
586 |
} |
} |
587 |
else { |
else { |
588 |
@@ -771,7 +898,7 @@ |
@@ -771,7 +878,7 @@ |
589 |
|
|
590 |
my $dns = $c->param('dns'); |
my $dns = $c->param('dns'); |
591 |
if ( $dns eq 'CUSTOMDNS' ) { |
if ( $dns eq 'CUSTOMDNS' ) { |
594 |
$customDNS = $1; |
$customDNS = $1; |
595 |
} |
} |
596 |
else { |
else { |
597 |
@@ -809,7 +936,7 @@ |
@@ -809,7 +916,7 @@ |
598 |
#------------------------------------------------------------ |
#------------------------------------------------------------ |
599 |
|
|
600 |
my $domainName = $c->param('domainName'); |
my $domainName = $c->param('domainName'); |
603 |
$domainName = $1; |
$domainName = $1; |
604 |
} |
} |
605 |
else { |
else { |
606 |
@@ -817,7 +944,7 @@ |
@@ -817,7 +924,7 @@ |
607 |
} |
} |
608 |
|
|
609 |
my $domainLogin = $c->param('login'); |
my $domainLogin = $c->param('login'); |
612 |
$domainLogin = $1; |
$domainLogin = $1; |
613 |
} |
} |
614 |
else { |
else { |
615 |
@@ -825,7 +952,7 @@ |
@@ -825,7 +932,7 @@ |
616 |
} |
} |
617 |
|
|
618 |
my $domainPassword = $c->param('password'); |
my $domainPassword = $c->param('password'); |
621 |
$domainPassword = $1; |
$domainPassword = $1; |
622 |
} |
} |
623 |
else { |
else { |
624 |
@@ -839,7 +966,7 @@ |
@@ -839,7 +946,7 @@ |
625 |
|
|
626 |
my $dns = $c->param('dns'); |
my $dns = $c->param('dns'); |
627 |
if ( $dns eq 'CUSTOMDNS' ) { |
if ( $dns eq 'CUSTOMDNS' ) { |
630 |
$customDNS = $1; |
$customDNS = $1; |
631 |
} |
} |
632 |
else |
else |
633 |
@@ -878,7 +1005,7 @@ |
@@ -878,7 +985,7 @@ |
634 |
# Attempt to delete domain |
# Attempt to delete domain |
635 |
#------------------------------------------------------------ |
#------------------------------------------------------------ |
636 |
|
|
744 |
</span><span class=data> |
</span><span class=data> |
745 |
diff -urN smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_paramlist.html.ep smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_paramlist.html.ep |
diff -urN smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_paramlist.html.ep smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_paramlist.html.ep |
746 |
--- smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_paramlist.html.ep 2023-11-10 16:11:05.902271946 +0000 |
--- smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_paramlist.html.ep 2023-11-10 16:11:05.902271946 +0000 |
747 |
+++ smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_paramlist.html.ep 2023-12-01 17:12:00.000000000 +0000 |
+++ smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_paramlist.html.ep 2023-12-14 09:58:00.000000000 +0000 |
748 |
@@ -1,4 +1,9 @@ |
@@ -1,4 +1,9 @@ |
749 |
<div id='paramlist'> |
<div id='paramlist'> |
750 |
+ <script> |
+ <script> |
769 |
</span><span class=data> |
</span><span class=data> |
770 |
% param retrievedeamonupdate=>$ddc_datas->{"params"}->{"DeamonUpdate"}; |
% param retrievedeamonupdate=>$ddc_datas->{"params"}->{"DeamonUpdate"}; |
771 |
%=number_field 'retrievedeamonupdate',min=>0 |
%=number_field 'retrievedeamonupdate',min=>0 |
772 |
@@ -19,33 +24,88 @@ |
@@ -19,33 +24,112 @@ |
773 |
<span class=label> |
<span class=label> |
774 |
%=l 'RETRIEVE_METHOD' |
%=l 'RETRIEVE_METHOD' |
775 |
</span><span class=data> |
</span><span class=data> |
777 |
- %=select_field retrievemethod=>$methodlabels |
- %=select_field retrievemethod=>$methodlabels |
778 |
- </span><br> |
- </span><br> |
779 |
- <span class=label> |
- <span class=label> |
780 |
|
- %=l 'RETRIEVE_IF' |
781 |
|
- </span><span class=data> |
782 |
|
- % param retrieveinterface=>$ddc_datas->{"params"}->{"Extinterface"}; |
783 |
|
- %=text_field 'retrieveinterface' |
784 |
|
- </span><br> |
785 |
|
- <span class=label> |
786 |
|
- %=l 'RETRIEVE_CMD' |
787 |
|
- </span><span class=data> |
788 |
|
- % param retrievecmd=>$ddc_datas->{"params"}->{"cmd"}; |
789 |
|
- %=text_field 'retrievecmd' |
790 |
|
- </span><br> |
791 |
|
- <span class=label> |
792 |
|
- %=l 'RETRIEVE_IP' |
793 |
|
- </span><span class=data> |
794 |
|
- % param retrieveip=>$ddc_datas->{"params"}->{"ForceIP"}; |
795 |
|
- %=text_field 'retrieveip' |
796 |
|
- </span><br> |
797 |
|
- <span class=label> |
798 |
|
- %=l 'RETRIEVE_URLCHECKIP' |
799 |
|
- </span><span class=data> |
800 |
|
- % param retrieveurlcheckip=>$ddc_datas->{"params"}->{"urlcheckip"}; |
801 |
|
- %=text_field 'retrieveurlcheckip' |
802 |
|
- </span><br> |
803 |
+ % param retrievemethod=>$ddc_datas->{"params"}->{"method"} unless param 'retrievemethod'; |
+ % param retrievemethod=>$ddc_datas->{"params"}->{"method"} unless param 'retrievemethod'; |
804 |
+ %=select_field retrievemethod=>$methodlabels,id=>"retrievemethod",onchange=>"SelectInput()" |
+ %=select_field retrievemethod=>$methodlabels,id=>"retrievemethod",onchange=>"SelectInput()" |
805 |
+ %= javascript begin |
+ %= javascript begin |
822 |
+ %# |
+ %# |
823 |
+ %# From here the one that is shown depends on the choice above |
+ %# From here the one that is shown depends on the choice above |
824 |
+ %# |
+ %# |
|
+ <div class = smeIF></div> |
|
|
+ <div class = smeIF></div> |
|
825 |
+ %# Only if "router" is chosen |
+ %# Only if "router" is chosen |
826 |
+ <div class = router> |
+ <div class = router> |
827 |
+ <span class=label> |
+ <span class=label> |
828 |
+ %=l 'Router type' |
+ %=l 'Router type' |
829 |
+ </span><span class=data> |
+ </span><span class=data> |
830 |
+ % param retrieveinterface=>$ddc_datas->{"params"}->{"Extinterface"} unless param 'retrieveinterface'; |
+ % param retrieverouter=>$ddc_datas->{"params"}->{"Extinterface"} unless param 'retrieverouter'; |
831 |
+ %=select_field retrieveinterface=>$devices |
+ %=select_field retrieverouter=>$devices |
832 |
+ </span><br> |
+ </span><br> |
833 |
|
+ %# Need login and password for router |
834 |
|
+ <span class=label> |
835 |
|
+ %=l 'Router login' |
836 |
|
+ </span><span class=data> |
837 |
|
+ % param retrieverouterlogin=>$ddc_datas->{"params"}->{"FWLogin"} unless param 'retrieverouter'; |
838 |
|
+ %=text_field 'retrieverouterlogin' |
839 |
|
+ </span><br> |
840 |
|
+ <span class=label> |
841 |
|
+ %=l 'Router password' |
842 |
|
+ </span><span class=data> |
843 |
|
+ % param retrieverouterpassword=>$ddc_datas->{"params"}->{"FWPassword"} unless param 'retrieverouterpassword'; |
844 |
|
+ %=password_field 'retrieverouterpassword', id=>'ddcPass' |
845 |
|
+ %=label_for show=>"Show" |
846 |
|
+ %=check_box show=>1,onclick=>"showPass()",style=>"vertical-align:middle;" |
847 |
|
+ %= javascript begin |
848 |
|
+ function showPass() { |
849 |
|
+ var x = document.getElementById("ddcPass"); |
850 |
|
+ if (x.type === "password") { |
851 |
|
+ x.type = "text"; |
852 |
|
+ } else { |
853 |
|
+ x.type = "password"; |
854 |
|
+ } |
855 |
|
+ } |
856 |
|
+ % end |
857 |
|
+ </span><br> |
858 |
+ </div> |
+ </div> |
859 |
+ |
+ |
860 |
+ %# Only if "web" is chosen" |
+ %# Only if "web" is chosen" |
861 |
+ <div class = web> |
+ <div class = web> |
862 |
+ <span class=label> |
+ <span class=label> |
863 |
+ %=l 'Web service' |
+ %=l 'Web service' |
864 |
+ </span><span class=data> |
+ </span><span class=data> |
865 |
+ % param retrieveurlcheckip=>$ddc_datas->{"params"}->{"urlcheckip"} unless param 'retrieveurlcheckip'; |
+ % param retrievewebservice=>$ddc_datas->{"params"}->{"urlcheckip"} unless param 'retrievewebservice'; |
866 |
+ %=select_field retrieveurlcheckip=>$dnslabels |
+ %=select_field retrievewebservice=>$webservices |
867 |
|
+ </span><br /> |
868 |
+ </div> |
+ </div> |
869 |
+ |
+ |
870 |
+ %# Only if "Interface" is chosen |
+ %# Only if "Interface" is chosen |
871 |
+ <div class=if> |
+ <div class=if> |
872 |
+ <span class=label Interface> |
+ <span class=label Interface> |
873 |
%=l 'RETRIEVE_IF' |
+ %=l 'RETRIEVE_IF' |
874 |
- </span><span class=data> |
+ </span><span class=data Interface> |
875 |
- % param retrieveinterface=>$ddc_datas->{"params"}->{"Extinterface"}; |
+ % param retrieveinterface=>$ddc_datas->{"params"}->{"Extinterface"} unless param 'retrieveinterface'; |
876 |
+ </span><span class=data Interface> |
+ %=text_field 'retrieveinterface' |
877 |
+ % param retrieveinterface=>$ddc_datas->{"params"}->{"Extinterface"} unless param 'retrieveinterface'; |
+ </span><br> |
|
%=text_field 'retrieveinterface' |
|
|
</span><br> |
|
|
- <span class=label> |
|
878 |
+ </div> |
+ </div> |
879 |
+ |
+ |
880 |
+ %# Only if "cmd" is chosen |
+ %# Only if "cmd" is chosen |
881 |
+ <div class=cmd> |
+ <div class=cmd> |
882 |
+ <span class=label cmd> |
+ <span class=label cmd> |
883 |
%=l 'RETRIEVE_CMD' |
+ %=l 'RETRIEVE_CMD' |
884 |
- </span><span class=data> |
+ </span><span class=data cmd> |
885 |
- % param retrievecmd=>$ddc_datas->{"params"}->{"cmd"}; |
+ % param retrievecmd=>$ddc_datas->{"params"}->{"cmd"} unless param 'retrievecmd'; |
886 |
+ </span><span class=data cmd> |
+ %=text_field 'retrievecmd' |
887 |
+ % param retrievecmd=>$ddc_datas->{"params"}->{"cmd"} unless param 'retrievecmd'; |
+ </span><br> |
|
%=text_field 'retrievecmd' |
|
|
</span><br> |
|
|
- <span class=label> |
|
888 |
+ </div> |
+ </div> |
889 |
+ |
+ |
890 |
+ %# Only if "ip" is chosen |
+ %# Only if "ip" is chosen |
891 |
+ <div class=ip> |
+ <div class=ip> |
892 |
+ <span class=label ip> |
+ <span class=label ip> |
893 |
%=l 'RETRIEVE_IP' |
+ %=l 'RETRIEVE_IP' |
894 |
- </span><span class=data> |
+ </span><span class=data ip> |
895 |
- % param retrieveip=>$ddc_datas->{"params"}->{"ForceIP"}; |
+ % param retrieveip=>$ddc_datas->{"params"}->{"ForceIP"} unless param 'retrieveip'; |
896 |
+ </span><span class=data ip> |
+ %=text_field 'retrieveip' |
897 |
+ % param retrieveip=>$ddc_datas->{"params"}->{"ForceIP"} unless param 'retrieveip'; |
+ </span><br> |
|
%=text_field 'retrieveip' |
|
|
</span><br> |
|
|
- <span class=label> |
|
898 |
+ </div> |
+ </div> |
899 |
+ |
+ |
900 |
+ %# Only if "custom web service" |
+ %# Only if "custom web service" |
901 |
+ <div class=custom> |
+ <div class=custom> |
902 |
+ <span class=label customweb> |
+ <span class=label customweb> |
903 |
%=l 'RETRIEVE_URLCHECKIP' |
+ %=l 'RETRIEVE_URLCHECKIP' |
904 |
- </span><span class=data> |
+ </span><span class=data customweb> |
905 |
- % param retrieveurlcheckip=>$ddc_datas->{"params"}->{"urlcheckip"}; |
+ % param retrieveurlcheckip=>$ddc_datas->{"params"}->{"urlcheckip"} unless param 'retrieveurlcheckip'; |
906 |
+ </span><span class=data customweb> |
+ %=text_field 'retrieveurlcheckip' |
907 |
+ % param retrieveurlcheckip=>$ddc_datas->{"params"}->{"urlcheckip"} unless param 'retrieveurlcheckip'; |
+ </span><br> |
|
%=text_field 'retrieveurlcheckip' |
|
|
</span><br> |
|
908 |
+ </div> |
+ </div> |
909 |
|
|
910 |
%= submit_button "$btn", class => 'action' |
%= submit_button "$btn", class => 'action' |