Dotclear


Ignore:
Timestamp:
11/26/16 10:40:17 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

No more <![CDATA[ … ]]> but in rss2.xsl (only useful for XML document, as XHTML)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/auth.php

    r3418 r3421  
    154154               $user_id = substr($data['cookie_admin'],40); 
    155155               $user_id = @unpack('a32',@pack('H*',$user_id)); 
    156                if (is_array($user_id)) 
    157                { 
     156               if (is_array($user_id)) { 
    158157                    $user_id = trim($data['user_id']); 
    159158                    $user_key = substr($data['cookie_admin'],0,40); 
     
    296295     <link rel="stylesheet" href="style/default.css" type="text/css" media="screen" /> 
    297296 
    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> 
    332329</head> 
    333330 
Note: See TracChangeset for help on using the changeset viewer.

Sites map