'.__('Safe mode').'
'. ''.__('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').'
'. 'blog && $core->auth->check($permissions,$core->blog->id)) { return; } if (session_id()) { $core->session->destroy(); } http::redirect(DC_AUTH_PAGE); } # Check super admin public static function checkSuper() { global $core; if (!$core->auth->isSuperAdmin()) { if (session_id()) { $core->session->destroy(); } http::redirect(DC_AUTH_PAGE); } } # Top of admin page public static function open($title='', $head='') { global $core; # List of user's blogs if ($core->auth->blog_count == 1 || $core->auth->blog_count > 20) { $blog_box = __('Blog:').' '. html::escapeHTML($core->blog->name).''; if ($core->auth->blog_count > 20) { $blog_box .= ' - '.__('Change blog').''; } } else { $rs_blogs = $core->getBlogs(array('order'=>'LOWER(blog_name)','limit'=>20)); $blogs = array(); while ($rs_blogs->fetch()) { $blogs[html::escapeHTML($rs_blogs->blog_name.' - '.$rs_blogs->blog_url)] = $rs_blogs->blog_id; } $blog_box = ''. ''; } $safe_mode = isset($_SESSION['sess_safe_mode']) && $_SESSION['sess_safe_mode']; # Display header('Content-Type: text/html; charset=UTF-8'); echo ''."\n". 'auth->getInfo('user_lang').'" '. 'lang="'.$core->auth->getInfo('user_lang').'">'."\n". "
\n". ' '."\n". ''.__('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').'
'. 'memory usage: '.memory_get_usage().' ('.files::size(memory_get_usage()).')
'; if (function_exists('xdebug_get_profiler_filename')) { $res .= 'Elapsed time: '.xdebug_time_index().' seconds
'; $prof_file = xdebug_get_profiler_filename(); if ($prof_file) { $res .= 'Profiler file : '.xdebug_get_profiler_filename().'
'; } else { $prof_url = http::getSelfURI(); $prof_url .= (strpos($prof_url,'?') === false) ? '?' : '&'; $prof_url .= 'XDEBUG_PROFILE'; $res .= ''; } /* xdebug configuration: zend_extension = /.../xdebug.so xdebug.auto_trace = On xdebug.trace_format = 0 xdebug.trace_options = 1 xdebug.show_mem_delta = On xdebug.profiler_enable = 0 xdebug.profiler_enable_trigger = 1 xdebug.profiler_output_dir = /tmp xdebug.profiler_append = 0 xdebug.profiler_output_name = timestamp */ } $res .= 'Global vars: '.$global_vars.'
'. '