위키/팁/수정한것
이름하야.. 위키 혼자쓰기 -_-;;;



1 /config.php

  • $menu
    ※ 메뉴항목 추가한다. 방명록도 넣고, 블로그 링크도 넣어줌.
    $menu=array('대문'=>1, 'FindPage'=>4, 'TitleIndex'=>3, 'RecentChanges'=>2, 'UserPreferences'=>'', '방명록'=>' ', 'http://windless.rosered.net/blog/index.php 블로그'=>' ');

  • $actions
    ※하단에 액션 추가.
    $actions=array('DeletePage','LikePages','Rename');

  • $hide_actions
    ※보통 방문자는 액션 안보이게 설정
    $hide_actions=1;

  • $security_class
    ※위키마스터로 설정한다.
    $security_class="wikimaster";

  • $wikimasters
    ※내 아이디만 딸랑..
    $wikimasters=array('뭉탱이');

  • $owners
    ※요거 역시 딸랑..
    $owners=array('뭉탱이');


2 /plugin/security/wikimaster.php

  • action 제한
    • 이전

        function may_edit($action,$options) {
          if (!$options['page']) return 0;
          return 1;
        }
      

    • 변경후

        function may_edit($action,$options) {
          if (!$options['page']) return 0;
          if (in_array($options['id'],$this->allowed_users)) return 1;
          $options['err']=sprintf(_("You are not allowed to '%s' on this page."),$action);
          $options['err'].=" "._("Please contact to WikiMaster");
          return 0;
        }
       
  • 그 외의 액션들
    ※ 함수 이름 변경하여 추가 & 수정
    ex) function may_diff($action, $options)

  • 변경한 액션들,
    • edit
    • blog
    • diff
    • keywords
    • info
    • deletepage
    • deletefile
    • rename
    • uploadfile

3 /wikilib.php

  • UserPreferences에서 자바스크립트 에러남.
    macro_UserPreferences() 에서
    1813 line:

        $script=<<<EOF
    <script src='$DBInfo->url_prefix/local/tz.js'> </script>
    <script type="text/javascript">
    /*<![CDATA[*/
    setTimezone();
    /*]]>*/
    </script>
    EOF;
    • 추가항목
      <script src='$DBInfo->url_prefix/local/tz.js'> </script>

ID
Password
Join





- 전 이런 놈입니다.

격언> 마음이 없으면 보고도 눈에 보이지 않고 들어도 귀에 들리지 않는다. (채근담)

Recent Changes

D  Echoes Of War(The... @ 2012-05-18 [03:44 pm] by windlesszone
D  Diablo3 @ 2012-05-15 [04:49 pm] by windlesszone
D  Diablo3/story/wizard @ 2012-05-15 [04:48 pm] by windlesszone 4 changes
D  Diablo3/story/wit... @ 2012-05-15 [04:16 pm] by windlesszone
D  Diablo3/story/monk @ 2012-05-15 [04:14 pm] by windlesszone





Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2006-03-14 15:13:34
Processing time 0.0539 sec