로그인

검색

조회 수 20838 추천 수 0 댓글 2
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄



function
procBoardInsertDocument()
    {
        $args = Context::getRequestVars();
        $mod_srl = (int) $args->module_srl;
        $doc_srl = (int) $args->document_srl;
        if(!$mod_srl || $this->module_srl != $mod_srl) return new Object(-1,'msg_invalid_request');
        if(!Context::get('logged_info')->group_list[1]){
        if (Context::getRequestMethod () == "GET") return new Object (-1, "msg_invalid_request");}
        if(!$this->grant->write_document) return new Object(-1, 'msg_not_permitted');
        if(!Context::get('logged_info')->group_list[1]){
        if(!strstr($_SERVER['HTTP_REFERER'],$_SERVER['SERVER_NAME'],true)) return new Object (-1, "msg_invalid_request");}


빨간부분을 추가하면 됩니다.

혹시몰라 관리그룹은 작동되지 않게 하였습니다.
function procBoardInsertComment() { $args = Context::getRequestVars(); $mod_srl = (int) $args->module_srl; $doc_srl = (int) $args->document_srl; $cmt_srl = (int) $args->comment_srl; if(!$doc_srl || !$mod_srl || $this->module_srl != $mod_srl) return new Object(-1, 'msg_invalid_request');
//자동 댓글 쓰기 방지 if (Context::getRequestMethod () == "GET") return new Object (-1, "msg_invalid_request"); if(!strstr($_SERVER['HTTP_REFERER'],$_SERVER['SERVER_NAME'],true)) return new Object (-1, "msg_invalid_request"); if(!$this->grant->write_comment) return new Object(-1, 'msg_not_permitted'); //자동 댓글 쓰기 방지 끝


  • ?
    보석 2013.08.27 08:53

    if(!Context::get('logged_info')->group_list[1]){ //해당그룹이 아니라면

    내용

    }

  • ?
    포인트 팡팡 2013.08.27 08:53
    보석님 포인트 팡팡 보너스 포인트 20를 추가로 받으셨습니다.

리눅스

유용한 정보 및 자료

  1. xe 이미지프로세스 묘듈

    Date2014.05.01 CategoryXE By보석 Views9108
    Read More
  2. 리눅스 백업서버 만들기

    Date2014.05.01 CategoryXE By보석 Views6672
    Read More
  3. [XE] SKETCHBOOK5 (최신버전)에서 특정 확장변수를 추천하는 사람에게만 공개

    Date2014.04.30 CategoryXE By보석 Views8171
    Read More
  4. [XE] 포인트복권 스킨

    Date2014.04.29 CategoryXE By보석 Views7742
    Read More
  5. [XE[ 공백제거 애드온 입니다.

    Date2014.04.29 CategoryXE By보석 Views8267
    Read More
  6. [XE]Vegas Background 플러그인 애드온

    Date2014.04.29 CategoryXE By보석 Views7694
    Read More
  7. [XE] P테그 제거 애드온

    Date2014.04.29 CategoryXE By보석 Views8286
    Read More
  8. XE 게시판 별 작성글 수 한번으로 제한 하기

    Date2014.04.23 CategoryXE By보석 Views8428
    Read More
  9. XE 알림센터 수정버전

    Date2014.04.15 CategoryXE By보석 Views7030
    Read More
  10. XE 무한 새로로침 방어 애드온

    Date2014.04.15 CategoryXE By보석 Views8995
    Read More
  11. nginx 무한 F5 막기

    Date2014.04.08 CategoryServer By보석 Views6527
    Read More
  12. 스케치북5 게시판 스킨 사용시 모바일 코멘트 수정시 글 내용이 없는경우

    Date2014.04.02 CategoryXE By보석 Views12017
    Read More
  13. ajaXplorer 한글파일 업로드시 411 에러 해결법

    Date2014.02.09 CategoryPydio By보석 Views7510
    Read More
  14. 우분투 프록시서버 만들기

    Date2014.02.03 CategoryServer By보석 Views9692
    Read More
  15. XE 게시글 리스트에 다운로드링크 만들기

    Date2014.01.16 CategoryXE By보석 Views12199
    Read More
  16. XE 비회원도 추천가능하게(비회원 추천)

    Date2013.10.08 CategoryXE By보석 Views20874
    Read More
  17. XE 애드온 - 닉네임동기화 및 일정 추천수시 게시글 이동

    Date2013.09.01 CategoryXE By보석 Views20228
    Read More
  18. XE 보드DX 자동글쓰기 및 댓글 쓰기 방지

    Date2013.08.26 CategoryXE By보석 Views20838
    Read More
  19. 우분투 mysql DB 파일 위치 변경 방법 패키지로 설치 했을 경우

    Date2013.08.26 CategoryServer By보석 Views57388
    Read More
  20. 우분투 로그 위치 및 각 로그의 설명

    Date2013.08.25 CategoryServer By보석 Views21417
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 Next
/ 11