gnuboard / gnuboard5

그누보드5 (영카트 포함) 공개형 Git
Other
308 stars 248 forks source link

adm/index.php 페이지에 컨텐츠를 삽입할 수 있는 Hook 추가 #283

Closed kkigomi closed 11 months ago

kkigomi commented 1 year ago

/adm/index.php 파일 상단과 하단에 컨텐츠를 추가할 수 있는 Replace Hook을 추가했습니다.

add_replace('adm_index_addtional_content_before', function ($content = '', $is_admin, $auth, $member) {
    // 권한 체크
    if (auth_check_menu($auth, '200100', 'r', true)) {
        // ...
    }

    return $content;
});
thisgun commented 11 months ago

안녕하세요. SIR 입니다.

코드를 제공해 주셔서 정말 감사합니다. ^_^