www.usr.com/support/gpl/USR9107_release.1.4.tar.gz
[bcm963xx.git] / userapps / broadcom / cfm / html / ddnsadd.html
index bf5e077..355e4ce 100755 (executable)
@@ -7,13 +7,13 @@
        <title>DNS Add</title>
 
        <link href="usr_main.css" rel="stylesheet" type="text/css">
-       <script src="usr_menus.js" type="text/javascript"></script>
+       <link href="usr_menus.css" rel="stylesheet" type="text/css"><script src="usr_menus.js" type="text/javascript"></script><script src="usr_menus_build.js" type="text/javascript"></script>
        <script src="usr_common.js" type="text/javascript"></script>
 
        <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
        <script type="text/javascript">
 <!-- hide
-setPageTitle("<%ejGetWl(wlInterface)%>");
+setPageTitle("<%ejGetWlJS(wlInterface)%>");
 
 function ddnsChange() {
   with ( document.forms[0] ) {
@@ -21,6 +21,8 @@ function ddnsChange() {
 
     switch( ddns ) {
     case "dyndns":
+    case "dtdns":
+    case "noip":
       hideDDNSInfo( 0 );
       hideTZOInfo( 1 );
       hideDynDNSInfo( 0 );
@@ -113,6 +115,12 @@ function btnApply(place) {
   if ( place == "ddnsmngr.cmd" ) {
     with ( document.forms[0] ) {
       switch( ddnsMode[ddnsMode.selectedIndex].value ) {
+      case 'noip':
+        loc += '3';
+        break;
+      case 'dtdns':
+        loc += '2';
+        break;
       case 'dyndns':
         loc += '1';
         break;
@@ -123,6 +131,8 @@ function btnApply(place) {
 
       switch( ddnsMode[ddnsMode.selectedIndex].value ) {
       case "dyndns":
+      case "dtdns":
+      case "noip":
         update_username = dyndnsUsername.value;
         update_password = dyndnsPassword.value;
         break;
@@ -133,7 +143,9 @@ function btnApply(place) {
       }
 
       if ( update_username.length == 0 ) {
-        if ( ddnsMode[ddnsMode.selectedIndex].value == 'dyndns' )
+        if ( ddnsMode[ddnsMode.selectedIndex].value == 'dyndns' ||
+             ddnsMode[ddnsMode.selectedIndex].value == 'dtdns' ||
+             ddnsMode[ddnsMode.selectedIndex].value == 'noip' )
           alert('Empty username.' );
         else
           alert('Invalid Email address.' );
@@ -142,7 +154,9 @@ function btnApply(place) {
       loc += '&username=' + update_username;
 
       if ( update_password.length == 0 ) {
-        if ( ddnsMode[ddnsMode.selectedIndex].value == 'dyndns' )
+        if ( ddnsMode[ddnsMode.selectedIndex].value == 'dyndns' ||
+             ddnsMode[ddnsMode.selectedIndex].value == 'dtdns' ||
+             ddnsMode[ddnsMode.selectedIndex].value == 'noip' )
           alert('Empty password.' );
         else
           alert('Invalid key.' );
@@ -158,17 +172,17 @@ function btnApply(place) {
 
       loc += '&iface=' + ddnsInterface[ddnsInterface.selectedIndex].value;
     }
-    var code = 'location.assign("' + loc + '")';
+    var code = 'location = "' + loc + '"';
     eval(code);
   }
 }
 // done hiding -->
        </script>
 </head>
-<body onload="initMenu('idMenu'); frmLoad();">
+<body onload="initMenu(); frmLoad();">
 
 <script type="text/javascript">
-       writeHeader("Dynamic DNS", "<%ejGet(curUserName)%>", "<%ejGetOther(sysInfo, adslStd)%>", "<%ejGetOther(sysInfo, noBrPrtcl)%>", <%ejGetOther(sysInfo, pppIpExtension)%>, <%ejGetOther(sysInfo, enblFirewall)%>, <%ejGetOther(sysInfo, enblNat)%>, "<%ejGetWl(wlInterface)%>", <%ejGet(enblQos)%>);
+       writeHeader("Dynamic DNS", "<%ejGetJS(curUserName)%>", "<%ejGetOther(sysInfo, adslStd)%>", "<%ejGetOther(sysInfo, noBrPrtcl)%>", <%ejGetOther(sysInfo, pppIpExtension)%>, <%ejGetOther(sysInfo, enblFirewall)%>, <%ejGetOther(sysInfo, enblNat)%>, "<%ejGetWlJS(wlInterface)%>", <%ejGetJS(enblQos)%>);
 </script>
 
 
@@ -176,11 +190,13 @@ function btnApply(place) {
        <h3>Add Dynamic DDNS</h3>
 
        <p>This page allows you to add a Dynamic DNS address from
-       DynDNS.org or TZO.</p>
+       selected dynamic DNS servers.</p>
 
 <p><label for="">Dynamic DNS provider:</label>
        <select name="ddnsMode" id="ddnsMode" onChange='ddnsChange()'>
                <option value="dyndns">DynDNS.org</option>
+               <option value="dtdns">DtDNS.net</option>
+               <option value="noip">No-IP.com</option>
                <option value="tzo">TZO</option>
        </select>
 </p>