[첫화면으로]"UseModWiki소스수정/TitleIndex액션" 페이지의 변경 내역

마지막으로 [b]


현재 버전 . . . . 2007-3-20 5:15 pm 수정한 사람: Raymundo
2 번째 수정본 . . . . (수정) 2007-1-8 12:19 pm 수정한 사람: Raymundo
 

변경사항 (가장 최근의 "일반적인 수정"부터) (다른 변경사항 없음)

-1,7 +1,9
== titleindex action 추가 ==
== # titleindex action 추가 ==
* 모든 페이지 목록을 단순한 텍스트로 출력함
* 사용법 - 주소창에서, http...wiki.pl?action=titleindex
:
* 사용법
** Local:action=titleindex - 기본 인코딩으로 출력
** Local:action=titleindex&charset=EUC-KR - 원하는 인코딩을 명시할 수 있음
{{{#!vim perl
sub DoOtherRequest {
   ...

-20,17 +22,25
{{{#!vim perl
### 다음 함수를 통채로 추가
sub DoTitleIndex {
    my (@list);
    my $index;
    print "Content-type: text/plain\n\n";
    my (@list, $page);
    my $charset = &GetParam("charset", "$HttpCharset");
    print "Content-type: text/plain; charset=$charset\n\n";
    @list = &AllPagesList();
    foreach $index (@list) {
        print $index."\r\n";
    if ($charset ne $HttpCharset) {
        @list = split(/!/, &convert_encode(join('!',@list), "$HttpCharset", "$charset"));
    }
    foreach $page (@list) {
        print $page."\n";
    }
}
}}}
=== # 추가 업데이트 내역 ===
ext2.4 - URL에 charset 파라메터를 별도로 받을 수 있게 함.
=== # 사용자 의견 ===
<longcomments(100)>
----
[[위키위키분류]]