Changeset 36:939dd5995f91
- Timestamp:
- 04/28/11 17:40:13 (14 years ago)
- Branch:
- safemode
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/auth.php
r0 r36 293 293 return true; 294 294 }; 295 296 $('a#safe_mode_link_help').click(function() { 297 $(this).parent().next().slideToggle(); 298 }); 295 299 }); 296 300 //]]> … … 388 392 } else { 389 393 echo 390 '<p><a href="auth.php?safe_mode=1" id="safe_mode_link">'.__('I have a connection problem').'</a></p>'; 394 '<p><a href="auth.php?safe_mode=1" id="safe_mode_link">'.__('I want to log in in safe mode').'</a></p>'. 395 '<p class="form-note"><a href="#" id="safe_mode_link_help">'.__('Know more about safe mode').'</a></p>'. 396 '<p id="safe_mode_help"><em>'. 397 __('This mode allows you to log in without any plugin loaded (very usefull in case of conflict between two of them for example)').' '. 398 __('Disable or delete plugin(s) which are giving you troubles then log out. You can after log in as usual'). 399 '</em></p>'; 391 400 } 392 401 -
admin/style/default.css
r0 r36 1067 1067 width: 100%; 1068 1068 } 1069 #login-screen #safe_mode_help { 1070 display : none; 1071 margin : 0 0 1em 0; 1072 padding: 5px 10px 5px 30px; 1073 background: #fbfbfb url(msg-std.png) no-repeat 5px 5px; 1074 border: 1px solid #999; 1075 -moz-border-radius: 4px; 1076 -webkit-border-radius: 4px; 1077 } -
inc/admin/lib.dc.page.php
r0 r36 76 76 } 77 77 78 $safe_mode = isset($_SESSION['sess_safe_mode']) && $_SESSION['sess_safe_mode']; 79 78 80 # Display 79 81 header('Content-Type: text/html; charset=UTF-8'); … … 109 111 echo 110 112 "</head>\n". 111 '<body id="dotclear-admin">'."\n". 113 '<body id="dotclear-admin'. 114 ($safe_mode ? ' safe-mode' : ''). 115 '">'."\n". 112 116 113 117 '<div id="top"><h1><a href="index.php">'.DC_VENDOR_NAME.'</a></h1></div>'."\n"; … … 129 133 '<div id="content">'."\n"; 130 134 131 # Recoverymode132 if ( isset($_SESSION['sess_safe_mode']) && $_SESSION['sess_safe_mode'])135 # Safe mode 136 if ($safe_mode) 133 137 { 134 138 echo 135 '<div class="error"><h3>'.__(' Recoverymode').'</h3>'.136 '<p>'.__('You are in recovery mode means no plugin have been loaded.').'</p>'.139 '<div class="error"><h3>'.__('Safe mode').'</h3>'. 140 '<p>'.__('You are in safe mode. All plugins have been temporary disabled. Remind to log out then log in again normally to get back all functionalities').'</p>'. 137 141 '</div>'; 138 142 }
Note: See TracChangeset
for help on using the changeset viewer.