Dotclear


Ignore:
Timestamp:
04/30/11 20:31:09 (14 years ago)
Author:
Franck <carnet.franck.paul@…>
Branch:
userprefs
Message:

Reprise de la logique de l'authentification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/auth.php

    r48 r72  
    299299      $('#cookie_help').show(); 
    300300    } 
    301     $('#issue h4').toggleWithLegend($('#issue').children().not('h4'), 
     301    $('#issue #more').toggleWithLegend($('#issue').children().not('#more'), 
    302302      {cookie:'dc_issue',fn: function(){$('#safe_mode_help').hide();}} 
    303303    ); 
     
    369369          if ($safe_mode) { 
    370370               echo '<legend>'.__('Safe mode login').'</legend>'; 
     371               echo '<div class="form-note"><p><a href="#" id="safe_mode_link_help">'.__('What is dotclear safe mode ?').'</a></p>'. 
     372               '<p id="safe_mode_help">'. 
     373                    __('This mode allows you to login without activating any of your plugins. This may be useful to solve compatibility problems').'&nbsp;'. 
     374                    __('Disable or delete any plugin suspected to cause trouble, then log out and log back in normally.'). 
     375               '</p></div>'; 
    371376          } 
    372377          echo 
     
    392397          echo 
    393398          '</fieldset>'. 
    394            
    395           '<p id="cookie_help">'.__('You must accept cookies in order to use the private area.').'</p>'. 
    396            
    397           '<div id="issue">'. 
    398           '<h4>'.__('Connection issue').'</h4>'; 
     399          '<p id="cookie_help">'.__('You must accept cookies in order to use the private area.').'</p>'; 
     400 
     401          echo '<div id="issue">'; 
    399402           
    400403          if ($safe_mode) { 
     
    402405               '<p><a href="auth.php" id="normal_mode_link">'.__('Get back to normal authentication').'</a></p>'; 
    403406          } else { 
    404                echo 
    405                '<p><a href="auth.php?safe_mode=1" id="safe_mode_link">'.__('I want to log in in safe mode').'</a></p>'. 
    406                '<p class="form-note"><a href="#" id="safe_mode_link_help">'.__('What is dotclear safe mode ?').'</a></p>'. 
    407                '<p id="safe_mode_help"><em>'. 
    408                     __('This mode allows you to login without activating any of your plugins. This may be useful to solve compatibility problems').'&nbsp;'. 
    409                     __('Disable or delete any plugin suspected to cause trouble, then log out and log back in normally.'). 
    410                '</em></p>'; 
    411           } 
    412            
    413           if ($core->auth->allowPassChange()) { 
    414                echo '<p><a href="auth.php?recover=1">'.__('I forgot my password').'</a></p>'; 
    415           } 
    416           echo 
    417           '</div>'; 
     407               echo '<p id="more"><strong>'.__('Connection issue?').'</strong></p>'; 
     408               if ($core->auth->allowPassChange()) { 
     409                    echo '<p><a href="auth.php?recover=1">'.__('I forgot my password').'</a></p>'; 
     410               } 
     411               echo '<p><a href="auth.php?safe_mode=1" id="safe_mode_link">'.__('I want to log in in safe mode').'</a></p>'; 
     412          } 
     413           
     414          echo '</div>'; 
    418415     } 
    419416} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map