/[smecontribs]/rpms/smeserver-ddclient/contribs10/smeserver-ddclient-1.3.0-Update-SM2-code-for-new-services-and-protocols.patch
ViewVC logotype

Diff of /rpms/smeserver-ddclient/contribs10/smeserver-ddclient-1.3.0-Update-SM2-code-for-new-services-and-protocols.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.4 by brianr, Wed Dec 13 16:19:50 2023 UTC Revision 1.10 by brianr, Mon Dec 18 13:53:48 2023 UTC
# Line 1  Line 1 
1    diff -urN smeserver-ddclient-1.3.0.old/createlinks smeserver-ddclient-1.3.0/createlinks
2    --- smeserver-ddclient-1.3.0.old/createlinks    2023-11-10 16:11:05.855271810 +0000
3    +++ smeserver-ddclient-1.3.0/createlinks        2023-12-18 10:52:53.495714627 +0000
4    @@ -48,3 +48,6 @@
5     $event = 'post-upgrade';
6      templates2events("/etc/ddclient/ddclient.conf", $event);
7      templates2events("/etc/ppp/ip-up.local", $event);
8    +
9    +# and create an empty cache
10    +# safe_touch("/var/cache/ddclient/ddclient.cache")
11  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  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
12  --- smeserver-ddclient-1.3.0.old/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers        2023-11-10 16:11:05.911271972 +0000  --- smeserver-ddclient-1.3.0.old/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers        2023-11-10 16:11:05.911271972 +0000
13  +++ smeserver-ddclient-1.3.0/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers    2023-12-04 14:55:00.000000000 +0000  +++ smeserver-ddclient-1.3.0/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers    2023-12-14 11:40:00.000000000 +0000
14  @@ -57,10 +57,11 @@  @@ -52,15 +52,16 @@
15            } elsif ( $method eq 'ip') {
16                    # we want to force manually
17                    $OUT.="usev4=ipv4, ipv4=$ForceIP \n";
18    -       } elsif ( $method eq 'cmd') {
19    -               $OUT .="usev4=cmd, cmdv4='$cmd'\n";
20    +       } elsif ( $method eq 'cmdv4') {
21    +               $OUT .="usev4=cmdv4, cmdv4='$cmd'\n";
22          } else {          } else {
23                  # fw method                  # fw method
24                  my $fwaddress = $ddclient{'fwaddress'}||'';                  my $fwaddress = $ddclient{'fwaddress'}||'';
# Line 14  diff -urN smeserver-ddclient-1.3.0.old/r Line 31  diff -urN smeserver-ddclient-1.3.0.old/r
31                  $OUT .= ", fw-login=$fwlogin " if ( $fwlogin ne '' );                  $OUT .= ", fw-login=$fwlogin " if ( $fwlogin ne '' );
32                  $OUT .= ", fw-password=$fwpassword " if ( $fwpassword ne '' );                  $OUT .= ", fw-password=$fwpassword " if ( $fwpassword ne '' );
33                  $OUT .= ", fwv4-skip='$fwskip' " if ( $fwskip ne '' );                  $OUT .= ", fwv4-skip='$fwskip' " if ( $fwskip ne '' );
34    diff -urN smeserver-ddclient-1.3.0.old/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/30FreeHosts smeserver-ddclient-1.3.0/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/30FreeHosts
35    --- smeserver-ddclient-1.3.0.old/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/30FreeHosts      2023-11-10 16:11:05.913271977 +0000
36    +++ smeserver-ddclient-1.3.0/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/30FreeHosts  2023-12-18 13:45:00.000000000 +0000
37    @@ -93,5 +93,9 @@
38                }
39            }
40         }
41    +    my $file = '/var/cache/ddclient/ddclient.cache';
42    +       # Execute the shell command to clear the file
43    +       system("rm -f '' > $file");
44    +
45     }
46    
47    diff -urN smeserver-ddclient-1.3.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/ddclient.service.d/50koozali.conf/20Service smeserver-ddclient-1.3.0/root/etc/e-smith/templates/usr/lib/systemd/system/ddclient.service.d/50koozali.conf/20Service
48    --- smeserver-ddclient-1.3.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/ddclient.service.d/50koozali.conf/20Service  2023-11-10 16:11:05.857271816 +0000
49    +++ smeserver-ddclient-1.3.0/root/etc/e-smith/templates/usr/lib/systemd/system/ddclient.service.d/50koozali.conf/20Service      2023-12-16 10:40:00.000000000 +0000
50    @@ -1,7 +1,7 @@
51     {
52     $debug   = (($ddclient{'debug'}   eq 'enabled') ? "debug"   : "nodebug");
53     $verbose = (($ddclient{'verbose'} eq 'enabled') ? "verbose" : "noverbose");
54    -$quiet   = (($ddclient{'quiet'}   eq 'enabled') ? "quiet"   : "noquiet");
55    +$quiet   = (($ddclient{'quiet'}   eq 'disabled') ? "noquiet"   : "quiet");
56     $syslog  = (($ddclient{'syslog'}  eq "enabled") ? "syslog"  : "nosyslog");
57     $OUT .= "\n";
58     $OUT .= "[Service]\n";
59    diff -urN smeserver-ddclient-1.3.0.old/root/etc/e-smith/templates.metadata/etc/ddclient/ddclient.conf smeserver-ddclient-1.3.0/root/etc/e-smith/templates.metadata/etc/ddclient/ddclient.conf
60    --- smeserver-ddclient-1.3.0.old/root/etc/e-smith/templates.metadata/etc/ddclient/ddclient.conf 2023-11-10 16:11:05.785271609 +0000
61    +++ smeserver-ddclient-1.3.0/root/etc/e-smith/templates.metadata/etc/ddclient/ddclient.conf     2023-12-15 11:54:47.841967164 +0000
62    @@ -1,3 +1,3 @@
63     UID="ddclient"
64     GID="ddclient"
65    -PERMS=0644
66    +PERMS=0600
67  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
68  --- 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
69  +++ smeserver-ddclient-1.3.0/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm 2023-12-13 16:00:00.000000000 +0000  +++ smeserver-ddclient-1.3.0/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm 2023-12-14 11:33:00.000000000 +0000
70  @@ -114,90 +114,164 @@  @@ -114,90 +114,164 @@
71    
72   my %ddc_datas = ();   my %ddc_datas = ();
# Line 93  diff -urN smeserver-ddclient-1.3.0.old/r Line 143  diff -urN smeserver-ddclient-1.3.0.old/r
143  +       # Web Services from which it can get ip address  +       # Web Services from which it can get ip address
144  +       #  +       #
145  +       my $webservices = ( [  +       my $webservices = ( [
146  +               [ 'dyndnshttp://checkip.dyndns.org/' => 'dyndns' ],  +               [ 'dyndns-http://checkip.dyndns.org/' => 'dyndns' ],
147  +               [ 'freednshttps://freedns.afraid.org/dynamic/check.php' => 'freedns' ],  +               [ 'freedns-https://freedns.afraid.org/dynamic/check.php' => 'freedns' ],
148  +               [ 'googledomainshttps://domains.google.com/checkip' => 'googledomains' ],  +               [ 'googledomains-https://domains.google.com/checkip' => 'googledomains' ],
149  +               [ 'hehttps://checkip.dns.he.net/' => 'he' ],  +               [ 'he-https://checkip.dns.he.net/' => 'he' ],
150  +               [ 'ip4only.mehttps://ip4only.me/api/' => 'ip4only.me' ],  +               [ 'ip4only.me-https://ip4only.me/api/' => 'ip4only.me' ],
151  +               [ 'ip6only.mehttps://ip6only.me/api/' => 'ip6only.me' ],  +               [ 'ip6only.me-https://ip6only.me/api/' => 'ip6only.me' ],
152  +               [ 'ipify-ipv4https://api.ipify.org/' => 'ipify-ipv4' ],  +               [ 'ipify-ipv4-https://api.ipify.org/' => 'ipify-ipv4' ],
153  +               [ 'ipify-ipv6https://api6.ipify.org/' => 'ipify-ipv6' ],  +               [ 'ipify-ipv6-https://api6.ipify.org/' => 'ipify-ipv6' ],
154  +               [ 'loopiahttps://dns.loopia.se/checkip/checkip.php' => 'loopia' ],  +               [ 'loopia:-https://dns.loopia.se/checkip/checkip.php' => 'loopia' ],
155  +               [ 'myonlineportalhttps://myonlineportal.net/checkip' => 'myonlineportal' ],  +               [ 'myonlineportal-https://myonlineportal.net/checkip' => 'myonlineportal' ],
156  +               [ 'noip-ipv4http://ip1.dynupdate.no-ip.com/' => 'noip-ipv4' ],  +               [ 'noip-ipv4-http://ip1.dynupdate.no-ip.com/' => 'noip-ipv4' ],
157  +               [ 'noip-ipv6http://ip1.dynupdate6.no-ip.com/' => 'noip-ipv6' ],  +               [ 'noip-ipv6-http://ip1.dynupdate6.no-ip.com/' => 'noip-ipv6' ],
158  +               [ 'nsupdate.info-ipv4https://ipv4.nsupdate.info/myip' => 'nsupdate.info-ipv4' ],  +               [ 'nsupdate.info-ipv4-https://ipv4.nsupdate.info/myip' => 'nsupdate.info-ipv4' ],
159  +               [ 'nsupdate.info-ipv6https://ipv6.nsupdate.info/myip' => 'nsupdate.info-ipv6' ],  +               [ 'nsupdate.info-ipv6-https://ipv6.nsupdate.info/myip' => 'nsupdate.info-ipv6' ],
160  +               [ 'zoneedithttps://dynamic.zoneedit.com/checkip.html' => 'zoneedit' ]  +               [ 'zoneedit-https://dynamic.zoneedit.com/checkip.html' => 'zoneedit' ]
161  +       ] );  +       ] );
162  +       return $webservices  +       return $webservices
163  +  +
# Line 278  diff -urN smeserver-ddclient-1.3.0.old/r Line 328  diff -urN smeserver-ddclient-1.3.0.old/r
328  +                       [ $c->l('Router/Firewall') => 'router' ],  +                       [ $c->l('Router/Firewall') => 'router' ],
329  +                       [ $c->l('Interface') => 'if' ],  +                       [ $c->l('Interface') => 'if' ],
330  +                       [ $c->l('IP') => 'ip' ],  +                       [ $c->l('IP') => 'ip' ],
331  +                       [ $c->l('Command') => 'cmd' ]  +                       [ $c->l('Command') => 'cmdv4' ]
332  +               ]  +               ]
333       );       );
334    
# Line 641  diff -urN smeserver-ddclient-1.3.0.old/r Line 691  diff -urN smeserver-ddclient-1.3.0.old/r
691       else {       else {
692  diff -urN smeserver-ddclient-1.3.0.old/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Ddclient/en.pm smeserver-ddclient-1.3.0/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Ddclient/en.pm  diff -urN smeserver-ddclient-1.3.0.old/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Ddclient/en.pm smeserver-ddclient-1.3.0/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Ddclient/en.pm
693  --- smeserver-ddclient-1.3.0.old/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Ddclient/en.pm        2023-11-10 16:11:05.916271986 +0000  --- smeserver-ddclient-1.3.0.old/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Ddclient/en.pm        2023-11-10 16:11:05.916271986 +0000
694  +++ smeserver-ddclient-1.3.0/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Ddclient/en.pm    2023-12-01 16:35:00.000000000 +0000  +++ smeserver-ddclient-1.3.0/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Ddclient/en.pm    2023-12-18 09:29:00.000000000 +0000
695  @@ -80,7 +80,7 @@  @@ -80,46 +80,48 @@
696   'CLOUDNS'=>'CLOUDNS www.cloudns.net',   'CLOUDNS'=>'CLOUDNS www.cloudns.net',
697   # End of Service descriptions   # End of Service descriptions
698    
699  -# v3.11.1 Service descriptions:  -# v3.11.1 Service descriptions:
700  +# v3.11.x Service descriptions:  -"1984" => "https://kb.1984hosting.com/doku.php?id=freedns",
701   "1984" => "https://kb.1984hosting.com/doku.php?id=freedns",  -"changeip" => "https://changeip.com",
702   "changeip" => "https://changeip.com",  -"cloudflare" => "https://cloudflare.com",
703   "cloudflare" => "https://cloudflare.com",  -"cloudns" => "https://cloudns.com",
704  @@ -118,7 +118,7 @@  -"digitalocean" => "https://digitalocean.com",
705   "woima" => "http://woima.com",  -"dinahosting" => "https://dinahosting.com",
706   "yandex" => "https://yandex.com",  -"dnsexit" => "https://dnsexit.com/",
707   "zoneedit" => "https://www.zoneedit.com/dynamic-dns/",  -"dnsmadeeasy" => "https://dnsmadeeasy.com",
708    -"domeneshop" => "https://domeneshop.com",
709    -"dondominio" => "https://dondominio.com",
710    -"dslreports" => "https://www.dslreports.com/",
711    -"duckdns" => "https://duckdns.com",
712    -"dyndns1" => "https://account.dyn.com/",
713    -"dyndns2" => "https://account.dyn.com/",
714    -"easydns" => "https://easydns.com",
715    -"enom" => "https://enom.com",
716    -"freedns" => "http://freedns.com",
717    -"freemyip" => "https://freemyip.com",
718    -"gandi" => "https://gandi.com",
719    -"godaddy" => "https://godaddy.com",
720    -"googledomains" => "https://googledomains.com",
721    -"hetzner" => "https://hetzner.com",
722    -"infomaniak" => "https://infomaniak.com",
723    -"keysystems" => "https://keysystems.com",
724    -"mythicdyn" => "https://www.mythic-beasts.com/support/api/dnsv2/dynamic-dns",
725    -"namecheap" => "https://namecheap.com",
726    -"nfsn" => "http://nfsn.com",
727    -"njalla" => "https://njalla.com",
728    -"noip" => "https://noip.com",
729    -"nsupdate" => "http://nsupdate.com",
730    -"ovh" => "https://ovh.com",
731    -"porkbun" => "https://porkbun.com",
732    -"regfishde" => "regfishde",
733    -"sitelutions" => "https://sitelutions.com",
734    -"woima" => "http://woima.com",
735    -"yandex" => "https://yandex.com",
736    -"zoneedit" => "https://www.zoneedit.com/dynamic-dns/",
737  -# end of v3.11.1 Service descriptions:  -# end of v3.11.1 Service descriptions:
738    +# v3.11.x Service descriptions:
739    +"1984" => "1984-https://kb.1984hosting.com/doku.php?id=freedns",
740    +"changeip" => "changeip-https://changeip.com",
741    +"cloudflare" => "cloudflare-https://cloudflare.com",
742    +"cloudns" => "cloudns-https://cloudns.com",
743    +"digitalocean" => "digitalocean-https://digitalocean.com",
744    +"dinahosting" => "dinahosting-https://dinahosting.com",
745    +"dnsexit" => "dnsexit-https://dnsexit.com/",
746    +"dnsmadeeasy" => "dnsmadeeasy-https://dnsmadeeasy.com",
747    +"domeneshop" => "domeneshop-https://domeneshop.com",
748    +"dondominio" => "dondominio-https://dondominio.com",
749    +"dslreports" => "dslreports-https://www.dslreports.com/",
750    +"duckdns" => "duckdns-https://duckdns.com",
751    +"dyndns1" => "dyndns1-https://account.dyn.com/",
752    +"dyndns2" => "dyndns2-https://account.dyn.com/",
753    +"easydns" => "easydns-https://easydns.com",
754    +"enom" => "enom-https://enom.com",
755    +"freedns" => "freedns-http://freedns.com",
756    +"freemyip" => "freemyip-https://freemyip.com",
757    +"gandi" => "gandi-https://gandi.com",
758    +"godaddy" => "godaddy-https://godaddy.com",
759    +"googledomains" => "googledomains-https://googledomains.com",
760    +"hetzner" => "hetzner-https://hetzner.com",
761    +"infomaniak" => "infomaniak-https://infomaniak.com",
762    +"keysystems" => "keysystems-https://keysystems.com",
763    +"mythicdyn" => "mythicdyn-https://www.mythic-beasts.com/support/api/dnsv2/dynamic-dns",
764    +"namecheap" => "namecheap-https://namecheap.com",
765    +"nfsn" => "nfsn-http://nfsn.com",
766    +"njalla" => "njalla-https://njalla.com",
767    +"noip" => "noip-https://noip.com",
768    +"nsupdate" => "nsupdate-http://nsupdate.com",
769    +"ovh" => "ovh-https://ovh.com",
770    +"porkbun" => "porkbun-https://porkbun.com",
771    +"regfishde" => "regfishde-regfishde",
772    +"sitelutions" => "sitelutions-https://sitelutions.com",
773    +"woima" => "woima-http://woima.com",
774    +"yandex" => "yandex-https://yandex.com",
775    +"zoneedit" => "zoneedit-https://www.zoneedit.com/dynamic-dns/",
776  +# end of v3.11.x Service descriptions:  +# end of v3.11.x Service descriptions:
777    
778    +'MODIFY_DESCRIPTION' => "You can modify the Dynamic DNS Service that you use and change the username and password",
779    +'CREATE_DESCRIPTION' => "You can create a domain to use for the Dynamic DNS Service that you use and set or change the username and password",
780   'CUSTOMDNS' => 'Custom Dynamic DNS Provider',   'CUSTOMDNS' => 'Custom Dynamic DNS Provider',
781   'CUSTOMDNS_LABEL' => 'Custom server Address',   'CUSTOMDNS_LABEL' => 'Custom server Address',
782  @@ -136,8 +136,8 @@   'CUSTOM_PROTOCOL_LABEL' => 'Custom ddclient Protocol',
783    @@ -136,8 +138,8 @@
784   'DESCRIPTION_LABEL' => 'Domain description',   'DESCRIPTION_LABEL' => 'Domain description',
785   'SUCCESSFULLY_MODIFIED_RETRIEVE_IP' => 'You have successfully modified the retrieve IP options.',   'SUCCESSFULLY_MODIFIED_RETRIEVE_IP' => 'You have successfully modified the retrieve IP options.',
786   'RETRIEVE_METHOD' => 'Method to retrieve new IP:',   'RETRIEVE_METHOD' => 'Method to retrieve new IP:',
# Line 673  diff -urN smeserver-ddclient-1.3.0.old/r Line 793  diff -urN smeserver-ddclient-1.3.0.old/r
793   'web' => 'Web query',   'web' => 'Web query',
794  diff -urN smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_create_cust.html.ep smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_create_cust.html.ep  diff -urN smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_create_cust.html.ep smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_create_cust.html.ep
795  --- smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_create_cust.html.ep     2020-06-28 09:57:52.000000000 +0100  --- smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_create_cust.html.ep     2020-06-28 09:57:52.000000000 +0100
796  +++ smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_create_cust.html.ep 2023-11-15 16:10:00.000000000 +0000  +++ smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_create_cust.html.ep 2023-12-18 09:35:00.000000000 +0000
797  @@ -1,6 +1,6 @@  @@ -1,41 +1,43 @@
798   <div id='ddc_createcustom'>  -<div id='ddc_createcustom'>
799    +<div id='createcustom'>
800        <h2>        <h2>
801  -     %= l 'ddc_CUSTOM_DESCRIPTION'  -     %= l 'ddc_CUSTOM_DESCRIPTION'
802  +     %= l 'CUSTOM_DESCRIPTION'  +     %= l 'CREATE_DESCRIPTION'
803        </h2><br>        </h2><br>
804       % my $btn = l('ddc_APPLY');  -    % my $btn = l('ddc_APPLY');
805    +    % my $btn = l('APPLY');
806       %= form_for '/ddclient7' => (method => 'POST') => begin       %= form_for '/ddclient7' => (method => 'POST') => begin
807                    <span class=label>
808    -                       %=l 'ddc_DOMAIN_NAME_LABEL'
809    +                       %=l 'DOMAIN_NAME_LABEL'
810                    </span><span class=data>
811                            %=text_field 'domainName'
812                    </span><br>
813                    <span class=label>
814    -                       %=l 'ddc_DESCRIPTION_LABEL'
815    +                       %=l 'DESCRIPTION_LABEL'
816                    </span><span class=data>
817                            %=text_field 'desc'
818                    </span><br>
819                    <span class=label>
820    -                       %=l 'ddc_SERVERS_LABEL'
821    +                       %=l 'SERVERS_LABEL'
822                    </span><span class=data>
823                            %=select_field dns=>$dnslabels
824                    </span><br>
825    +<!--
826                    <span class=label>
827    -                       %=l 'ddc_CUSTOMDNS_LABEL'
828    +                       %=l 'CUSTOMDNS_LABEL'
829                    </span><span class=data>
830                            %=text_field  'customdns'
831                    </span><br>
832                    <span class=label>
833    -                       %=l 'ddc_CUSTOM_PROTOCOL_LABEL'
834    +                       %=l 'CUSTOM_PROTOCOL_LABEL'
835                    </span><span class=data>
836                            %=text_field  'customprotocol'
837                    </span><br>
838    +-->
839                    <span class=label>
840    -                       %=l 'ddc_NAME_LABEL'
841    +                       %=l 'NAME_LABEL'
842                    </span><span class=data>
843                            %=text_field  'login'
844                    </span><br>
845                    <span class=label>
846    -                       %=l 'ddc_PASSWORD_LABEL'
847    +                       %=l 'PASSWORD_LABEL'
848                    </span><span class=data>
849                            %=password_field 'password',id=>"ddcPass"
850                            %=label_for show=>"Show"
851    @@ -52,7 +54,7 @@
852                            % end
853                    </span><br>
854                    <span class=label>
855    -                       %=l 'ddc_MX'
856    +                       %=l 'MX'
857                    </span><span class=data>
858                            %=text_field 'mx'
859                    </span><br>    
860    diff -urN smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_del.html.ep smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_del.html.ep
861    --- smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_del.html.ep     2023-11-10 16:11:05.900271940 +0000
862    +++ smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_del.html.ep 2023-12-18 11:14:00.000000000 +0000
863    @@ -2,7 +2,7 @@
864         % my $btn = l('REMOVE');
865                    %= form_for '/ddclient4' => (method => 'POST') => begin
866             <p>
867    -               %= $c->render_to_string(inline =>l("ddc_REMOVE_DESCRIPTION",$ddc_datas->{"Domain_details"}->{"Domain"},$ddc_datas->{"Domain_details"}->{"Description"},$c->l($ddc_datas->{"Domain_details"}->{"Publication"})))
868    +               %= $c->render_to_string(inline =>l("REMOVE_DESCRIPTION",$ddc_datas->{"Domain_details"}->{"Domain"},$ddc_datas->{"Domain_details"}->{"Description"},$c->l($ddc_datas->{"Domain_details"}->{"Publication"})))
869                    </p>
870                    % param Domain=>$ddc_datas->{"Domain_details"}->{"Domain"};
871                    %= hidden_field Domain=>$ddc_datas->{"Domain_details"}->{"Domain"}
872    diff -urN smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_domainlist.html.ep smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_domainlist.html.ep
873    --- smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_domainlist.html.ep      2023-11-10 16:11:05.900271940 +0000
874    +++ smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_domainlist.html.ep  2023-12-18 11:46:00.000000000 +0000
875    @@ -36,9 +36,12 @@
876                            %= t td => (class => 'sme-border') => $Domain->{"Publication"}
877                            <td class = 'sme-border'>
878                                    <a href="/smanager/ddclient1?trt=MOD&Domain=<%= $Domain->{"Domain"}%>"><%=l 'MODIFY'%></a>
879    -                       </td><td class = 'sme-border'>          
880    -                               <a href="/smanager/ddclient1?trt=DEL&Domain=<%= $Domain->{"Domain"}%>"><%=l 'REMOVE'%></a>
881    -                       </td>          
882    +                       </td>
883    +                       % if ($Domain->{"Publication"} ne ""){
884    +                               <td class = 'sme-border'>      
885    +                                       <a href="/smanager/ddclient1?trt=DEL&Domain=<%= $Domain->{"Domain"}%>"><%=l 'REMOVE'%></a>
886    +                               </td>          
887    +                       % }
888                    </tr>
889                    %}
890                    </tbody>
891  diff -urN smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_modify_domain.html.ep smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_modify_domain.html.ep  diff -urN smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_modify_domain.html.ep smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_modify_domain.html.ep
892  --- smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_modify_domain.html.ep   2023-11-10 16:11:05.901271943 +0000  --- smeserver-ddclient-1.3.0.old/root/usr/share/smanager/themes/default/templates/partials/_ddc_modify_domain.html.ep   2023-11-10 16:11:05.901271943 +0000
893  +++ smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_modify_domain.html.ep       2023-11-18 14:56:00.000000000 +0000  +++ smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_modify_domain.html.ep       2023-12-18 11:13:00.000000000 +0000
894  @@ -1,4 +1,9 @@  @@ -1,6 +1,11 @@
895   <div id='modifydomain'>   <div id='modifydomain'>
896  +  <script>  +  <script>
897  +    window.onload = function() {  +    window.onload = function() {
# Line 693  diff -urN smeserver-ddclient-1.3.0.old/r Line 899  diff -urN smeserver-ddclient-1.3.0.old/r
899  +    };  +    };
900  +  </script>  +  </script>
901        <h2>        <h2>
902        %= l 'CUSTOM_DESCRIPTION'  -     %= l 'CUSTOM_DESCRIPTION'
903    +     %= l 'MODIFY_DESCRIPTION'
904        </h2><br>        </h2><br>
905  @@ -24,20 +29,41 @@       % my $btn = l('APPLY');
906         %= form_for '/ddclient8' => (method => 'POST') => begin
907    @@ -10,34 +15,60 @@
908                    %= hidden_field domainName => $ddc_datas->{"Domain_details"}->{"Domain"}
909                            %= $ddc_datas->{"Domain_details"}->{"Domain"}
910                    </span><br><br>
911    +              
912                    <span class=label>
913                            %=l 'DESCRIPTION_LABEL'
914                    </span><span class=data>
915                            %= $ddc_datas->{"Domain_details"}->{"Description"}
916                    </span><br><br>
917    +              
918    +               % if ($ddc_datas->{"Domain_details"}->{"Content"} ne ""){
919                    <span class=label>
920                            %= $ddc_datas->{"Domain_details"}->{"Content"}
921                    </span><span class=data>
922                            %= $ddc_datas->{"Domain_details"}->{"Content"}
923                    </span><br><br>
924    +               % }
925    +              
926                    <span class=label>
927                          %=l 'SERVERS_LABEL'                          %=l 'SERVERS_LABEL'
928                  </span><span class=data>                  </span><span class=data>
929                      % param dns=>$ddc_datas->{"Domain_details"}->{"dns"};                      % param dns=>$ddc_datas->{"Domain_details"}->{"dns"};
# Line 744  diff -urN smeserver-ddclient-1.3.0.old/r Line 972  diff -urN smeserver-ddclient-1.3.0.old/r
972                  </span><span class=data>                  </span><span class=data>
973  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
974  --- 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
975  +++ smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_paramlist.html.ep   2023-12-04 10:53:00.000000000 +0000  +++ smeserver-ddclient-1.3.0/root/usr/share/smanager/themes/default/templates/partials/_ddc_paramlist.html.ep   2023-12-16 08:19:00.000000000 +0000
976  @@ -1,4 +1,9 @@  @@ -1,4 +1,9 @@
977   <div id='paramlist'>   <div id='paramlist'>
978  +  <script>  +  <script>
# Line 805  diff -urN smeserver-ddclient-1.3.0.old/r Line 1033  diff -urN smeserver-ddclient-1.3.0.old/r
1033  +                       %= javascript begin  +                       %= javascript begin
1034  +                       function SelectInput() {  +                       function SelectInput() {
1035  +                         var method = document.querySelector("#retrievemethod");  +                         var method = document.querySelector("#retrievemethod");
1036  +                         const types=['smeIF','smeCMD','web','router','if','ip','cmd','custom'];  +                         const types=['smeIF','smeCMD','web','router','if','ip','cmdv4','custom'];
1037  +                         types.forEach((type)=>{  +                         types.forEach((type)=>{
1038  +                                 var service = document.querySelector(`.${type}`);  +                                 var service = document.querySelector(`.${type}`);
1039  +                                 if (service != null) {  +                                 if (service != null) {
# Line 863  diff -urN smeserver-ddclient-1.3.0.old/r Line 1091  diff -urN smeserver-ddclient-1.3.0.old/r
1091  +                               %=l 'Web service'  +                               %=l 'Web service'
1092  +                       </span><span class=data>  +                       </span><span class=data>
1093  +                               % param retrievewebservice=>$ddc_datas->{"params"}->{"urlcheckip"} unless param 'retrievewebservice';  +                               % param retrievewebservice=>$ddc_datas->{"params"}->{"urlcheckip"} unless param 'retrievewebservice';
1094  +                               %=select_field  retrievewebservice=>$dnslabels  +                               %=select_field  retrievewebservice=>$webservices
1095  +                       </span><br />  +                       </span><br />
1096  +               </div>  +               </div>
1097  +  +
# Line 878  diff -urN smeserver-ddclient-1.3.0.old/r Line 1106  diff -urN smeserver-ddclient-1.3.0.old/r
1106  +               </div>  +               </div>
1107  +                +              
1108  +               %# Only if "cmd" is chosen  +               %# Only if "cmd" is chosen
1109  +               <div class=cmd>  +               <div class=cmdv4>
1110  +                       <span class=label cmd>  +                       <span class=label cmd>
1111  +                               %=l 'RETRIEVE_CMD'  +                               %=l 'RETRIEVE_CMD'
1112  +                       </span><span class=data cmd>  +                       </span><span class=data cmd>
1113  +                               % param retrievecmd=>$ddc_datas->{"params"}->{"cmd"} unless param 'retrievecmd';  +                               % param retrievecmd=>$ddc_datas->{"params"}->{"cmdv4"} unless param 'retrievecmd';
1114  +                               %=text_field  'retrievecmd'  +                               %=text_field  'retrievecmd'
1115  +                       </span><br>  +                       </span><br>
1116  +               </div>  +               </div>


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed