Changeset 3986:2ee15bffa1b5
- Timestamp:
- 06/28/19 11:27:56 (6 years ago)
- Branch:
- default
- Location:
- admin
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/install/index.php
r3874 r3986 271 271 <link rel="stylesheet" href="../style/install.css" type="text/css" media="screen" /> 272 272 273 <script type="text/javascript" src="../js/jquery/jquery.js"></script> 273 <?php echo dcPage::jsLoad('../js/prepend.js'); ?> 274 <?php echo dcPage::jsLoad('../js/jquery/jquery.js'); ?> 274 275 <?php echo dcPage::jsLoad('../js/jquery/jquery.pwstrength.js'); ?> 275 <script type="text/javascript"> 276 $(function() { 277 var login_re = new RegExp('[^A-Za-z0-9@._-]+','g'); 278 $('#u_firstname').keyup(function() { 279 var login = this.value.toLowerCase().replace(login_re,'').substring(0,32); 280 $('#u_login').val(login); 281 }); 282 $('#u_login').keyup(function() { 283 $(this).val(this.value.replace(login_re,'')); 284 }); 285 286 <?php echo "\$('#u_pwd').pwstrength({texts: ['" . 287 sprintf(__('Password strength: %s'), __('very weak')) . "', '" . 288 sprintf(__('Password strength: %s'), __('weak')) . "', '" . 289 sprintf(__('Password strength: %s'), __('mediocre')) . "', '" . 290 sprintf(__('Password strength: %s'), __('strong')) . "', '" . 291 sprintf(__('Password strength: %s'), __('very strong')) . "']});\n"; ?> 292 293 $('#u_login').parent().after($('<input type="hidden" name="u_date" value="' + Date().toLocaleString() + '" />')); 294 295 var password_link = $('<a href="#" id="obfus"><?php echo (__('show')); ?></a>').click(function() { 296 $('#password').show(); 297 $(this).remove(); 298 return false; 299 }); 300 $('#password').hide().before(password_link); 301 }); 302 </script> 276 <?php echo dcPage::jsJson('install', [ 277 sprintf(__('Password strength: %s'), __('very weak')), 278 sprintf(__('Password strength: %s'), __('weak')), 279 sprintf(__('Password strength: %s'), __('mediocre')), 280 sprintf(__('Password strength: %s'), __('strong')), 281 sprintf(__('Password strength: %s'), __('very strong')) 282 ]); 283 ?> 284 <?php echo dcPage::jsJson('install_show', __('show')); ?> 285 <?php echo dcPage::jsLoad('../js/_install.js'); ?> 303 286 </head> 304 287
Note: See TracChangeset
for help on using the changeset viewer.