@@ -42,7 +42,7 @@ class remoting_dns extends remoting {
4242 // DNS Function --------------------------------------------------------------------------------------------------
4343
4444 //* Create Zone with Template
45- public function dns_templatezone_add ($ session_id , $ client_id , $ template_id , $ domain , $ ip , $ ns1 , $ ns2 , $ email ) {
45+ public function dns_templatezone_add ($ session_id , $ client_id , $ template_id , $ domain , $ ip , $ ns1 , $ ns2 , $ email, $ ipv6 = '' ) {
4646 global $ app , $ conf ;
4747 if (!$ this ->checkPerm ($ session_id , 'dns_templatezone_add ' )) {
4848 throw new SoapFault ('permission_denied ' , 'You do not have the permissions to access this function. ' );
@@ -63,6 +63,7 @@ public function dns_templatezone_add($session_id, $client_id, $template_id, $dom
6363 $ tpl_content = $ template_record ['template ' ];
6464 if ($ domain != '' ) $ tpl_content = str_replace ('{DOMAIN} ' , $ domain , $ tpl_content );
6565 if ($ ip != '' ) $ tpl_content = str_replace ('{IP} ' , $ ip , $ tpl_content );
66+ if ($ ipv6 != '' ) $ tpl_content = str_replace ('{IPV6} ' , $ ipv6 , $ tpl_content );
6667 if ($ ns1 != '' ) $ tpl_content = str_replace ('{NS1} ' , $ ns1 , $ tpl_content );
6768 if ($ ns2 != '' ) $ tpl_content = str_replace ('{NS2} ' , $ ns2 , $ tpl_content );
6869 if ($ email != '' ) $ tpl_content = str_replace ('{EMAIL} ' , $ email , $ tpl_content );
0 commit comments