equal
deleted
inserted
replaced
54 $ui->add_header('<script type="text/javascript" src="includes/js/formutils.js"></script>'); |
54 $ui->add_header('<script type="text/javascript" src="includes/js/formutils.js"></script>'); |
55 $ui->show_header(); |
55 $ui->show_header(); |
56 |
56 |
57 // FIXME: l10n |
57 // FIXME: l10n |
58 ?> |
58 ?> |
59 <h3>Administration account</h3> |
59 <h3><?php echo $lang->get('login_welcome_title'); ?></h3> |
60 <p>Now it's time to create the account you'll use to administer your site. The e-mail address you enter here will also be used for the global contact address; you can change this after installation is finished if need be.</p> |
60 <?php echo $lang->get('login_welcome_body'); ?> |
61 <p>Do not forget the information you enter here. Otherwise you will be unable to administer your site.</p> |
|
62 |
61 |
63 <script type="text/javascript"> |
62 <script type="text/javascript"> |
64 |
63 |
65 // <![CDATA[ |
64 // <![CDATA[ |
66 |
65 |
109 |
108 |
110 function verify_submit() |
109 function verify_submit() |
111 { |
110 { |
112 if ( verify() ) |
111 if ( verify() ) |
113 return true; |
112 return true; |
114 alert("One or more of the form fields contains an incorrect value. Please correct any fields that have an X next to them."); |
113 alert($lang.get('login_err_verify_failure')); |
|
114 return false; |
115 } |
115 } |
116 |
116 |
117 function submit_encrypt() |
117 function submit_encrypt() |
118 { |
118 { |
119 var frm = document.forms [ 'install_login' ]; |
119 var frm = document.forms [ 'install_login' ]; |
139 |
139 |
140 var crypt_data = rijndaelEncrypt(password, crypt_key, 'ECB'); |
140 var crypt_data = rijndaelEncrypt(password, crypt_key, 'ECB'); |
141 |
141 |
142 if ( !crypt_data ) |
142 if ( !crypt_data ) |
143 { |
143 { |
144 alert('Received a bad response from rijndaelEncrypt(). Shift-click "reload" or "refresh" (depending on your browser) and try again.'); |
144 alert($lang.get('login_err_rijndael_failed')); |
145 return false; |
145 return false; |
146 } |
146 } |
147 |
147 |
148 crypt_data = byteArrayToHex(crypt_data); |
148 crypt_data = byteArrayToHex(crypt_data); |
149 |
149 |
179 |
179 |
180 <table border="0" cellspacing="0" cellpadding="10" style="width: 100%;"> |
180 <table border="0" cellspacing="0" cellpadding="10" style="width: 100%;"> |
181 |
181 |
182 <tr> |
182 <tr> |
183 <td style="width: 50%;"> |
183 <td style="width: 50%;"> |
184 <b>Username</b> |
184 <b><?php echo $lang->get('login_field_username'); ?></b> |
185 </td> |
185 </td> |
186 <td style="width: 50%;"> |
186 <td style="width: 50%;"> |
187 <input type="text" tabindex="1" name="username" size="15" onkeyup="verify(this);" /> |
187 <input type="text" tabindex="1" name="username" size="15" onkeyup="verify(this);" /> |
188 </td> |
188 </td> |
189 <td> |
189 <td> |
191 </td> |
191 </td> |
192 </tr> |
192 </tr> |
193 |
193 |
194 <tr> |
194 <tr> |
195 <td> |
195 <td> |
196 <b>Password</b><br /> |
196 <b><?php echo $lang->get('login_field_password'); ?></b><br /> |
197 This will be encrypted with AES before it's sent to the server. |
197 <?php echo $lang->get('login_aes_blurb'); ?> |
198 </td> |
198 </td> |
199 <td> |
199 <td> |
200 <input type="password" tabindex="2" name="password" size="15" onkeyup="password_score_field(this); verify(this);" /><br /> |
200 <input type="password" tabindex="2" name="password" size="15" onkeyup="password_score_field(this); verify(this);" /><br /> |
201 <br /> |
201 <br /> |
202 <div id="pwmeter"></div> |
202 <div id="pwmeter"></div> |
203 <br /> |
203 <br /> |
204 <input type="password" tabindex="3" name="password_confirm" size="15" onkeyup="verify(this);" /> <small>(confirm)</small> |
204 <input type="password" tabindex="3" name="password_confirm" size="15" onkeyup="verify(this);" /> <small><?php echo $lang->get('login_field_password_confirm'); ?></small> |
205 </td> |
205 </td> |
206 <td> |
206 <td> |
207 <img id="s_password" alt="Good/bad icon" src="../images/bad.gif" /> |
207 <img id="s_password" alt="Good/bad icon" src="../images/bad.gif" /> |
208 </td> |
208 </td> |
209 </tr> |
209 </tr> |
210 |
210 |
211 <tr> |
211 <tr> |
212 <td style="width: 50%;"> |
212 <td style="width: 50%;"> |
213 <b>E-mail</b> |
213 <b><?php echo $lang->get('login_field_email'); ?></b> |
214 </td> |
214 </td> |
215 <td style="width: 50%;"> |
215 <td style="width: 50%;"> |
216 <input type="text" tabindex="4" name="email" size="30" onkeyup="verify(this);" /> |
216 <input type="text" tabindex="4" name="email" size="30" onkeyup="verify(this);" /> |
217 </td> |
217 </td> |
218 <td> |
218 <td> |