feat: 활동 로그에 엑셀 다운로드/인쇄 기록 추가
- export_*: 모든 엑셀/CSV 다운로드를 'export' 액션으로 자동 기록(파일명 포함) - 인쇄: 레이아웃 beforeprint beacon → bag/activity/print-log 가 'print' 액션 기록(화면·경로) - 활동 로그 뷰어에 엑셀 다운로드/인쇄 라벨·배지·필터·요약 추가 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -3580,6 +3580,26 @@ SQL);
|
||||
/**
|
||||
* 사용자 매뉴얼(설명서) — 목차 첫 페이지로 이동.
|
||||
*/
|
||||
/**
|
||||
* 인쇄 활동 기록 (클라이언트 beforeprint beacon 수신).
|
||||
* 화면(경로·제목)을 활동 로그에 'print' 액션으로 남긴다.
|
||||
*/
|
||||
public function printLog(): \CodeIgniter\HTTP\ResponseInterface
|
||||
{
|
||||
$title = trim((string) $this->request->getPost('title'));
|
||||
$path = trim((string) $this->request->getPost('path'));
|
||||
if (mb_strlen($title) > 120) {
|
||||
$title = mb_substr($title, 0, 120);
|
||||
}
|
||||
if (mb_strlen($path) > 200) {
|
||||
$path = mb_substr($path, 0, 200);
|
||||
}
|
||||
helper('audit');
|
||||
audit_log('print', 'print', 0, null, ['화면' => $title, '경로' => $path]);
|
||||
|
||||
return $this->response->setStatusCode(204);
|
||||
}
|
||||
|
||||
public function manual(): \CodeIgniter\HTTP\RedirectResponse
|
||||
{
|
||||
$first = (new \App\Libraries\ManualRenderer())->firstSlug();
|
||||
|
||||
Reference in New Issue
Block a user