activityReport; $super = $core->auth->isSuperAdmin() && !empty($_REQUEST['super']); if ($super) { $report->setGlobal(); } $logs = $report->getLogs([]); if ($super) { $breadcrumb = [ __('Current blog') => $core->adminurl->get('admin.plugin.activityReport', ['super' => 0]), '' . __('All blogs') . '' => '' ]; } else { $breadcrumb = ['' . __('Current blog') . '' => '']; if ($core->auth->isSuperAdmin()) { $breadcrumb[__('All blogs')] = $core->adminurl->get('admin.plugin.activityReport', ['super' => 1]); } } echo '' . __('Activity report') . '' . dcPage::breadcrumb(array_merge([__('Activity report') => '', __('Logs') => ''], $breadcrumb),['hl' => false]) . dcPage::notices(); if ($logs->isEmpty()) { echo '

'.__('No log').'

'; } else { echo '
'; if ($super) { echo ''; } echo ''; while($logs->fetch()) { $action = $report->getGroups($logs->activity_group, $logs->activity_action); if (empty($action)) { continue; } $off = $super && $logs->activity_blog_status == 1 ? ' offline' : ''; $date = dt::str( $core->blog->settings->system->date_format . ', ' . $core->blog->settings->system->time_format, strtotime($logs->activity_dt), $core->auth->getInfo('user_tz') ); $msg = vsprintf(__($action['msg']), $report->decode($logs->activity_logs)); echo ' '; if ($super) { echo ''; } echo ''; } echo '
' . __('Action') . ' ' . __('Message') . ' ' . __('Date') . '' . __('Blog') .'
' . __($action['title']) . ' ' . $msg . ' ' . $date . '' . $logs->blog_id . '
'; } $report->unsetGlobal(); echo '';