Changeset 3421:34cfd92ec45a for admin
- Timestamp:
- 11/26/16 10:40:17 (9 years ago)
- Branch:
- default
- Location:
- admin
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/_charte.php
r3418 r3421 30 30 echo 31 31 '<script type="text/javascript">'."\n". 32 "//<![CDATA[\n".33 32 dcPage::jsVar('dotclear_htmlFontSize',$core->auth->user_prefs->interface->htmlfontsize). 34 "\n//]]>\n".35 33 "</script>\n"; 36 34 } … … 45 43 <script type="text/javascript" src="js/prelude.js"></script> 46 44 <script type="text/javascript"> 47 //<![CDATA[48 45 dotclear.img_plus_alt = 'dévoiler'; 49 46 dotclear.img_minus_alt = 'cacher'; … … 51 48 dotclear.img_menu_off = 'images/menu_off.png'; 52 49 dotclear.msg.new_window = 'nouvelle fenêtre'; 53 //]]>54 50 </script> 55 51 <script type="text/javascript"> 56 //<![CDATA[57 52 $(function() { 58 53 $.pageTabs('two-boxes'); … … 66 61 $('#pageslist tr td.handle').addClass('handler'); 67 62 }); 68 //]]>69 63 </script> 70 64 </head> -
admin/auth.php
r3418 r3421 154 154 $user_id = substr($data['cookie_admin'],40); 155 155 $user_id = @unpack('a32',@pack('H*',$user_id)); 156 if (is_array($user_id)) 157 { 156 if (is_array($user_id)) { 158 157 $user_id = trim($data['user_id']); 159 158 $user_key = substr($data['cookie_admin'],0,40); … … 296 295 <link rel="stylesheet" href="style/default.css" type="text/css" media="screen" /> 297 296 298 <?php 299 # --BEHAVIOR-- loginPageHTMLHead 300 $core->callBehavior('loginPageHTMLHead'); 301 ?> 302 303 <script type="text/javascript"> 304 //<![CDATA[ 305 $(window).load(function() { 306 var uid = $('input[name=user_id]'); 307 var upw = $('input[name=user_pwd]'); 308 uid.focus(); 309 310 if (upw.length == 0) { return; } 311 312 uid.keypress(processKey); 313 314 function processKey(evt) { 315 if (evt.which == 13 && upw.val() == '') { 316 upw.focus(); 317 return false; 318 } 319 return true; 320 }; 321 $.cookie('dc_admin_test_cookie',true); 322 if ($.cookie('dc_admin_test_cookie')) { 323 $('#cookie_help').hide(); 324 $.cookie('dc_admin_test_cookie', '', {'expires': -1}); 325 } else { 326 $('#cookie_help').show(); 327 } 328 $('#issue #more').toggleWithLegend($('#issue').children().not('#more')); 329 }); 330 //]]> 331 </script> 297 <?php 298 # --BEHAVIOR-- loginPageHTMLHead 299 $core->callBehavior('loginPageHTMLHead'); 300 ?> 301 302 <script type="text/javascript"> 303 $(window).load(function() { 304 var uid = $('input[name=user_id]'); 305 var upw = $('input[name=user_pwd]'); 306 uid.focus(); 307 308 if (upw.length == 0) { return; } 309 310 uid.keypress(processKey); 311 312 function processKey(evt) { 313 if (evt.which == 13 && upw.val() == '') { 314 upw.focus(); 315 return false; 316 } 317 return true; 318 }; 319 $.cookie('dc_admin_test_cookie',true); 320 if ($.cookie('dc_admin_test_cookie')) { 321 $('#cookie_help').hide(); 322 $.cookie('dc_admin_test_cookie', '', {'expires': -1}); 323 } else { 324 $('#cookie_help').show(); 325 } 326 $('#issue #more').toggleWithLegend($('#issue').children().not('#more')); 327 }); 328 </script> 332 329 </head> 333 330 -
admin/blog_pref.php
r3394 r3421 321 321 dcPage::open(__('Blog settings'), 322 322 '<script type="text/javascript">'."\n". 323 "//<![CDATA["."\n".324 323 dcPage::jsVar('dotclear.msg.warning_path_info', 325 324 __('Warning: except for special configurations, it is generally advised to have a trailing "/" in your blog URL in PATH_INFO mode.'))."\n". 326 325 dcPage::jsVar('dotclear.msg.warning_query_string', 327 326 __('Warning: except for special configurations, it is generally advised to have a trailing "?" in your blog URL in QUERY_STRING mode.'))."\n". 328 "//]]>".329 327 "</script>". 330 328 dcPage::jsConfirmClose('blog-form'). -
admin/install/index.php
r3401 r3421 268 268 <?php echo dcPage::jsLoad('../js/jquery/jquery.pwstrength.js'); ?> 269 269 <script type="text/javascript"> 270 //<![CDATA[ 271 $(function() { 272 var login_re = new RegExp('[^A-Za-z0-9@._-]+','g'); 273 $('#u_firstname').keyup(function() { 274 var login = this.value.toLowerCase().replace(login_re,'').substring(0,32); 275 $('#u_login').val(login); 276 }); 277 $('#u_login').keyup(function() { 278 $(this).val(this.value.replace(login_re,'')); 279 }); 280 281 <?php echo "\$('#u_pwd').pwstrength({texts: ['". 282 sprintf(__('Password strength: %s'),__('very weak'))."', '". 283 sprintf(__('Password strength: %s'),__('weak'))."', '". 284 sprintf(__('Password strength: %s'),__('mediocre'))."', '". 285 sprintf(__('Password strength: %s'),__('strong'))."', '". 286 sprintf(__('Password strength: %s'),__('very strong'))."']});\n"; ?> 287 288 $('#u_login').parent().after($('<input type="hidden" name="u_date" value="' + Date().toLocaleString() + '" />')); 289 290 var password_link = $('<a href="#" id="obfus"><?php echo(__('show')); ?></a>').click(function() { 291 $('#password').show(); 292 $(this).remove(); 293 return false; 270 $(function() { 271 var login_re = new RegExp('[^A-Za-z0-9@._-]+','g'); 272 $('#u_firstname').keyup(function() { 273 var login = this.value.toLowerCase().replace(login_re,'').substring(0,32); 274 $('#u_login').val(login); 294 275 }); 295 $('#password').hide().before(password_link); 296 }); 297 //]]> 276 $('#u_login').keyup(function() { 277 $(this).val(this.value.replace(login_re,'')); 278 }); 279 280 <?php echo "\$('#u_pwd').pwstrength({texts: ['". 281 sprintf(__('Password strength: %s'),__('very weak'))."', '". 282 sprintf(__('Password strength: %s'),__('weak'))."', '". 283 sprintf(__('Password strength: %s'),__('mediocre'))."', '". 284 sprintf(__('Password strength: %s'),__('strong'))."', '". 285 sprintf(__('Password strength: %s'),__('very strong'))."']});\n"; ?> 286 287 $('#u_login').parent().after($('<input type="hidden" name="u_date" value="' + Date().toLocaleString() + '" />')); 288 289 var password_link = $('<a href="#" id="obfus"><?php echo(__('show')); ?></a>').click(function() { 290 $('#password').show(); 291 $(this).remove(); 292 return false; 293 }); 294 $('#password').hide().before(password_link); 295 }); 298 296 </script> 299 297 </head> -
admin/media_item.php
r3398 r3421 231 231 $starting_scripts = 232 232 '<script type="text/javascript">'."\n". 233 "//<![CDATA["."\n".234 233 dcPage::jsVar('dotclear.msg.confirm_delete_media',__('Are you sure to delete this media?'))."\n". 235 "//]]>".236 234 "</script>". 237 235 dcPage::jsModal(). -
admin/popup_link.php
r2758 r3421 44 44 45 45 '<script type="text/javascript">'."\n". 46 '//<![CDATA['."\n".47 46 '$(\'input[name="href"]\').get(0).focus();'."\n". 48 '//]]>'."\n".49 47 '</script>'."\n"; 50 48 -
admin/preferences.php
r3408 r3421 407 407 dcPage::jsLoad('js/jquery/jquery.pwstrength.js'). 408 408 '<script type="text/javascript">'."\n". 409 "//<![CDATA[\n".410 409 "\$(function() {\n". 411 410 " \$('#new_pwd').pwstrength({texts: ['". … … 415 414 sprintf(__('Password strength: %s'),__('strong'))."', '". 416 415 sprintf(__('Password strength: %s'),__('very strong'))."']});\n". 417 "});". 418 "\n//]]>\n". 416 "});\n". 419 417 "</script>\n". 420 418 dcPage::jsPageTabs($default_tab). -
admin/user.php
r3398 r3421 169 169 dcPage::jsLoad('js/jquery/jquery.pwstrength.js'). 170 170 '<script type="text/javascript">'."\n". 171 "//<![CDATA[\n".172 171 "\$(function() {\n". 173 172 " \$('#new_pwd').pwstrength({texts: ['". … … 178 177 sprintf(__('Password strength: %s'),__('very strong'))."']});\n". 179 178 "});\n". 180 "\n//]]>\n".181 179 "</script>\n". 182 180
Note: See TracChangeset
for help on using the changeset viewer.