9 |
{ |
{ |
10 |
global $script,$rss_max,$page_title,$whatsnew; |
global $script,$rss_max,$page_title,$whatsnew; |
11 |
|
|
12 |
$self = 'http://'.SERVER_NAME.PHP_SELF.'?'; |
$self = $script.'?'; |
13 |
|
|
14 |
$page_title_utf8 = $page_title; |
$page_title_utf8 = $page_title; |
15 |
if (function_exists('mb_convert_encoding')) { |
if (function_exists('mb_convert_encoding')) { |
30 |
if (function_exists('mb_convert_encoding')) { |
if (function_exists('mb_convert_encoding')) { |
31 |
$title = mb_convert_encoding($title,'UTF-8',SOURCE_ENCODING); |
$title = mb_convert_encoding($title,'UTF-8',SOURCE_ENCODING); |
32 |
} |
} |
33 |
|
// 'O'が出力する時刻を'+09:00'の形に整形 |
34 |
|
$dcdate = substr_replace(get_date('Y-m-d\TH:i:sO',$time),':',-2,0); |
35 |
|
|
36 |
|
// $desc = get_date('D, d M Y H:i:s T',$time); |
37 |
|
// <description>$desc</description> |
38 |
|
|
|
$dcdate = get_date('Y-m-d\TH:i:sO'); |
|
|
$desc = get_date('D, d M Y H:i:s T',$time); |
|
39 |
$items .= <<<EOD |
$items .= <<<EOD |
40 |
<item rdf:about="$self$r_page"> |
<item rdf:about="$script?$r_page"> |
41 |
<title>$title</title> |
<title>$title</title> |
42 |
<link>$self$r_page</link> |
<link>$script?$r_page</link> |
43 |
<dc:date>$dcdate</dc:date> |
<dc:date>$dcdate</dc:date> |
|
<description>$desc</description> |
|
44 |
</item> |
</item> |
45 |
|
|
46 |
EOD; |
EOD; |
47 |
$rdf_li .= " <rdf:li rdf:resource=\"$self$r_page\" />\n"; |
$rdf_li .= " <rdf:li rdf:resource=\"$script?$r_page\" />\n"; |
48 |
} |
} |
49 |
|
|
50 |
header('Content-type: application/xml'); |
header('Content-type: application/xml'); |
58 |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
59 |
xml:lang="ja"> |
xml:lang="ja"> |
60 |
|
|
61 |
<channel rdf:about="{$self}rss"> |
<channel rdf:about="$script?rss"> |
62 |
<title>$page_title_utf8</title> |
<title>$page_title_utf8</title> |
63 |
<link>$self$whatsnew</link> |
<link>$script?$whatsnew</link> |
64 |
<description>PukiWiki RecentChanges</description> |
<description>PukiWiki RecentChanges</description> |
65 |
<items> |
<items> |
66 |
<rdf:Seq> |
<rdf:Seq> |