www.usr.com/support/gpl/USR9108_release1.5.tar.gz
[bcm963xx.git] / userapps / broadcom / cfm / html / password.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--
3         (c) 2005 U.S. Robotics Corporation
4 -->
5 <html>
6 <head>
7         <title>Security &raquo; Device Login</title>
8
9         <link href="usr_main.css" rel="stylesheet" type="text/css">
10         <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>
11         <script src="usr_common.js" type="text/javascript"></script>
12
13         <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
14
15         <script type="text/javascript" src="util.js"></script>
16         <script type="text/javascript">
17 <!-- hide
18
19 setPageTitle("<%ejGetWlJS(wlInterface)%>");
20
21 var strPasswords = new Array (
22                                                                                         "<%ejGetJS(sysPassword)%>",
23                                                                                         "<%ejGetJS(sptPassword)%>",
24                                                                                         "<%ejGetJS(usrPassword)%>"
25                                                                                 );
26
27 function validatePage()
28 {
29         var ix = document.idForm.userName.selectedIndex;
30         if (document.idForm.pwdOld.value != strPasswords[ix])
31         {
32                 alert("The old password is incorrect. Please try again.");
33                 return false;
34         }
35
36         if (document.idForm.pwdNew.value != document.idForm.pwdCfm.value)
37         {
38                 alert("The new passwords do not match.");
39                 return false;
40         }
41
42         // copy the new password to the correct field
43         if (ix == 1)
44                 document.idForm.sptPassword.value = document.idForm.pwdNew.value;
45         else if (ix == 2)
46                 document.idForm.usrPassword.value = document.idForm.pwdNew.value;
47         else
48                 document.idForm.sysPassword.value = document.idForm.pwdNew.value;
49
50         return true;
51 }
52 // done hiding -->
53 </script>
54 </head>
55 <body onload="initMenu();">
56
57 <script type="text/javascript">
58         writeHeader("Security");
59 </script>
60
61 <h3>Device Login</h3>
62
63 <p>Access to your router is controlled through three user accounts: admin,
64 support, and user.</p>
65
66 <p>The user name "admin" has unrestricted access to change and view configuration of
67 your router.</p>
68
69 <p>The user name "support" is used to allow an ISP technician to access your
70 router for maintenance and to run diagnostics.</p>
71
72 <p>The user name "user" can access the router, view configuration settings
73 and statistics, as well as update the router&rsquo;s software.</p>
74
75 <p>Use the fields below to enter up to 16 characters
76 and press <b>Apply</b> to change or create passwords.</p>
77
78 <form name="idForm" action="password.cgi" method="post">
79         <input type="hidden" id="sysPassword" name="sysPassword" value="<%ejGetHTML(sysPassword)%>">
80         <input type="hidden" id="sptPassword" name="sptPassword" value="<%ejGetHTML(sptPassword)%>">
81         <input type="hidden" id="usrPassword" name="usrPassword" value="<%ejGetHTML(usrPassword)%>">
82
83    <table border="0" cellpadding="2" cellspacing="0">
84       <tr>
85          <td><label>User name:</label></td>
86          <td><select name='userName' id='userName' size="1">
87                <option value="1">admin</option>
88                <option value="2">support</option>
89                <option value="3">user</option>
90             </select></td>
91       </tr>
92       <tr>
93          <td><label for="pwdOld">Old password:</label></td>
94          <td><input name='pwdOld' id='pwdOld' type="text" size="20" maxlength="16"></td>
95       </tr>
96       <tr>
97          <td><label for="pwdNew">New password:</label></td>
98          <td><input name='pwdNew' id='pwdNew' type="text" size="20" maxlength="16"></td>
99       </tr>
100       <tr>
101          <td><label for="pwdCfm">Confirm password:</label></td>
102          <td><input name='pwdCfm' id='pwdCfm' type='text' size="20" maxlength="16"></td>
103       </tr>
104    </table>
105    <p><input type="submit" value="Apply" onClick="if (!validatePage()) return false;"></p>
106 </form>
107
108 <script type="text/javascript">
109         writeFooter();
110 </script>
111
112 </body>
113 </html>