auth->makePermissions([ dcAuth::PERMISSION_ADMIN, ])); $super = dcCore::app()->auth->isSuperAdmin() && !empty($_REQUEST['super']); if ($super) { dcCore::app()->activityReport->setGlobal(); } $logs = dcCore::app()->activityReport->getLogs([]); if ($super) { $breadcrumb = [ __('Current blog') => dcCore::app()->adminurl->get('admin.plugin.' . basename(__DIR__), ['super' => 0]), '' . __('All blogs') . '' => '', ]; } else { $breadcrumb = ['' . __('Current blog') . '' => '']; if (dcCore::app()->auth->isSuperAdmin()) { $breadcrumb[__('All blogs')] = dcCore::app()->adminurl->get('admin.plugin.' . basename(__DIR__), ['super' => 1]); } } echo '
' . __('No log') . '
'; } else { echo '' . __('Action') . ' | ' . __('Message') . ' | ' . __('Date') . ' | '; if ($super) { echo '' . __('Blog') . ' | '; } echo '
---|---|---|---|
' . __($action['title']) . ' | ' . $msg . ' | ' . $date . ' | '; if ($super) { echo '' . $logs->blog_id . ' | '; } echo '