Dotclear

Changeset 42:aba6d23140fc for inc


Ignore:
Timestamp:
04/29/11 08:32:10 (14 years ago)
Author:
Dsls <dsls@…>
Branch:
userprefs
Parents:
41:54016742931c (diff), 37:89b90dfd3913 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge safemode onto userprefs for layout updates. safemode still active for core management.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.dc.page.php

    r37 r42  
    122122          '<form action="index.php" method="post"><div>'. 
    123123          $blog_box. 
    124           ' - <a href="'.$core->blog->url.'" class="button">'.__('View site').'</a>'. 
    125           ' - '.__('User:').' <strong>'.$core->auth->userID().'</strong>'. 
    126           ' - <a href="index.php?logout=1" class="logout">'.__('Logout').'</a>'. 
     124          '<a href="'.$core->blog->url.'"onclick="window.open(this.href);return false;" title="'.__('Go to site').' ('.__('new window').')'.'">'.__('Go to site').' <img src="images/outgoing.png" alt="" /></a>'. 
     125          '</div></form>'. 
     126          '</div>'. 
     127          '<div id="info-box2"><form action="index.php" method="post><div>"'. 
     128          ' '.__('User:').' <strong>'.$core->auth->userID().'</strong>'. 
     129          ' - <a href="index.php?logout=1" class="logout">'.__('Logout').' <img src="images/logout.png" alt="" /></a>'. 
    127130          '</div></form>'. 
    128131          '</div>'; 
     
    166169          echo 
    167170          '</div>'."\n".      // End of #main-menu 
    168           '<div id="footer"><p><img src="images/dotclear_pw.png" alt="Dotclear" /> '. 
    169           sprintf(__('Thank you for using %s.'),'<a href="http://dotclear.org/">Dotclear</a>'). 
     171          '<div id="footer"><p>'. 
     172          sprintf(__('Thank you for using %s.'),'<a href="http://dotclear.org/">Dotclear '.DC_VERSION.'</a>'). 
     173          ' <span class="credit"> (Icons by <a href="http://dryicons.com/">Dryicons</a>)</span>'. 
    170174          '</p></div>'."\n". 
    171175          "</div>\n";         // End of #wrapper 
     
    332336           
    333337          echo 
    334           '<div id="help"><hr /><div class="help-content"><h2>'.__('Help').'</h2>'. 
     338          '<div id="help"><hr /><div class="help-content clear"><h2>'.__('Help').'</h2>'. 
    335339          $content. 
    336340          '</div></div>'; 
  • inc/admin/lib.dc.page.php

    r18 r42  
    7676          } 
    7777           
     78          $safe_mode = isset($_SESSION['sess_safe_mode']) && $_SESSION['sess_safe_mode']; 
     79           
    7880          # Display 
    7981          header('Content-Type: text/html; charset=UTF-8'); 
     
    109111          echo 
    110112          "</head>\n". 
    111           '<body id="dotclear-admin">'."\n". 
     113          '<body id="dotclear-admin'. 
     114          ($safe_mode ? ' safe-mode' : ''). 
     115          '">'."\n". 
    112116           
    113117          '<div id="top"><h1><a href="index.php">'.DC_VENDOR_NAME.'</a></h1></div>'."\n"; 
     
    131135          '<div id="main">'."\n". 
    132136          '<div id="content">'."\n"; 
     137           
     138          # Safe mode 
     139          if ($safe_mode) 
     140          { 
     141               echo 
     142               '<div class="error"><h3>'.__('Safe mode').'</h3>'. 
     143               '<p>'.__('You are in safe mode. All plugins have been temporarily disabled. Remind to log out then log in again normally to get back all functionalities').'</p>'. 
     144               '</div>'; 
     145          } 
    133146           
    134147          if ($core->error->flag()) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map