[첫화면으로]UseModWiki소스수정/EditConflict

마지막으로 [b]

3 번째 수정본

로그인 하지 않은 경우에 편집 충돌 인식 문제 해결

wiki.pl 수정

sub DoPost {
    ...
    # Later extract comparison?
#   if (($UserID > 399) || ($Section{'id'} > 399))  {
###############
### replaced by gypark
### 로그인 하지 않은 경우의 conflict
#   if (($UserID ne "") || ($Section{'id'} ne ""))  {
    if ((length($UserID) > 3) || (length($Section{'id'}) > 3)) {
###
###############
        $newAuthor = ($UserID ne $Section{'id'});       # known user(s)
    } else {
        $newAuthor = ($Section{'ip'} ne $authorAddr);  # hostname fallback
    }
    ...
}


if (($UserID eq "112") || ($UserID eq "113") || ($UserID eq "")) {

이런식이 더 낫지 않을까요? -- bab2


위키위키분류

이 수정본 편집일: 2003-3-27 6:11 pm (변경사항 [d])
1065 hits | Permalink | 변경내역 보기 [h] | 현재 수정본 보기 | 3 번째 수정본 소스 보기