Revision | 8e31f0d2ba35f5f03029e61834730a90a48a8963 (tree) |
---|---|
Time | 2014-11-26 01:40:37 |
Author | henoheno <henoheno> |
Commiter | umorigu |
BugTrack2/62:
TrackBack implimentation had been removed entirely
due to extremely strong suspicion of violating copyright.
'referer' function (that use the implimentation), also
removed.
@@ -7,7 +7,7 @@ | ||
7 | 7 | 2001-2002 yu-ji (Based on PukiWiki 1.3 by yu-ji) |
8 | 8 | License: GPL version 2 or (at your option) any later version |
9 | 9 | |
10 | - $Id: INSTALL.txt,v 1.8 2005/12/06 14:59:29 henoheno Exp $ | |
10 | + $Id: INSTALL.txt,v 1.9 2007/02/11 05:53:30 henoheno Exp $ | |
11 | 11 | |
12 | 12 | インストール |
13 | 13 | PukiWikiはPHPスクリプトであるため、(例えばPerlのように)スクリプトに実行権 |
@@ -77,7 +77,6 @@ | ||
77 | 77 | lib 755 ライブラリ |
78 | 78 | plugin 755 プラグイン |
79 | 79 | skin 755 スキン、CSS、JavaScirptファイル |
80 | - trackback 777 TrackBackファイル格納ディレクトリ | |
81 | 80 | wiki 777 データの格納ディレクトリ |
82 | 81 | |
83 | 82 | ファイル パーミッション データの種類(参考) |
@@ -178,7 +177,7 @@ | ||
178 | 177 | バックアップとリストア |
179 | 178 | ページの最新データを収めているディレクトリ(デフォルトの名前は wiki)以下 |
180 | 179 | を、また必要に応じて他のデータを収めているディレクトリ以下をバックアップし |
181 | - て下さい。(同 attach, backup, cache, counter, diff, trackback) | |
180 | + て下さい。(同 attach, backup, cache, counter, diff) | |
182 | 181 | |
183 | 182 | cacheディレクトリもバックアップすることをお薦めします。 |
184 | 183 | 1. cache/*.rel ファイルと cache/*.ref ファイルは linksプラグイン で再生 |
@@ -67,7 +67,6 @@ HOW TO MAKE SITE | ||
67 | 67 | image 755 705 |
68 | 68 | plugin 755 705 |
69 | 69 | skin 755 705 |
70 | - trackback 777 707 | |
71 | 70 | wiki 777 707 |
72 | 71 | File |
73 | 72 | attach/* 666 606 |
@@ -78,7 +77,6 @@ HOW TO MAKE SITE | ||
78 | 77 | image/* 644 604 |
79 | 78 | plugin/* 644 604 |
80 | 79 | skin/* 644 604 |
81 | - trackback/* 666 606 | |
82 | 80 | wiki/* 666 606 |
83 | 81 | *.php 644 604 |
84 | 82 | *.lng 644 604 |
@@ -93,7 +91,7 @@ HOW TO MAKE A BACKUP OF DATA | ||
93 | 91 | The document data is stored in the "wiki" directory. (default setting) |
94 | 92 | Please make a backup of your "wiki" directory. |
95 | 93 | And, if necessary, also make backups of the other directories - namely, |
96 | - "attach" , "backup", "counter", "cache", "diff" and "trackback" with default setting. | |
94 | + "attach" , "backup", "counter", "cache", and "diff" with default setting. | |
97 | 95 | |
98 | 96 | HOW TO CREATE PAGE |
99 | 97 |
@@ -1,10 +1,26 @@ | ||
1 | 1 | PukiWiki UPDATING |
2 | -$Id: UPDATING.en.txt,v 1.3 2006/06/11 15:24:35 henoheno Exp $ | |
2 | +$Id: UPDATING.en.txt,v 1.6 2007/02/11 05:53:29 henoheno Exp $ | |
3 | + | |
4 | + | |
5 | +CHANGES | |
6 | +======= | |
7 | + | |
8 | +See description at PukiWiki-official | |
9 | +http://pukiwiki.sourceforge.jp/?PukiWiki/Download | |
10 | + | |
3 | 11 | |
4 | 12 | |
5 | 13 | INCOMPATIBILITY INFORMATION BETWEEN RELEASES |
6 | 14 | ============================================ |
7 | 15 | |
16 | +PukiWiki 1.4.8: Incompatibility from PukiWiki 1.4.7 | |
17 | + | |
18 | + 1. TrackBack implimentation had been removed entirely due to extremely | |
19 | + strong suspicion of violating copyright. 'referer' function (that use | |
20 | + the implimentation), also removed. | |
21 | + (See BugTrack2/62) | |
22 | + | |
23 | + | |
8 | 24 | PukiWiki 1.4.7: Incompatibility from PukiWiki 1.4.6 |
9 | 25 | |
10 | 26 | 1. Default value of administrator's password ($adminpass) had been changed |
@@ -1,10 +1,28 @@ | ||
1 | 1 | PukiWiki UPDATING |
2 | -$Id: UPDATING.txt,v 1.38 2006/06/11 15:35:52 henoheno Exp $ | |
2 | +$Id: UPDATING.txt,v 1.41 2007/02/11 05:53:29 henoheno Exp $ | |
3 | + | |
4 | + | |
5 | +更新履歴 | |
6 | +======== | |
7 | + | |
8 | +※詳細は公式Webサイトを参照して下さい | |
9 | + | |
10 | +http://pukiwiki.sourceforge.jp/?PukiWiki/Download | |
11 | + | |
3 | 12 | |
4 | 13 | |
5 | 14 | リリース間の互換性に関する記述 |
6 | 15 | ============================== |
7 | 16 | |
17 | +PukiWiki 1.4.8: PukiWiki 1.4.7 との非互換点 | |
18 | + | |
19 | + 1. これまでのTrackBack実装は、著作(創作)の手順が不適切である疑いが強くなっ | |
20 | + たため、完全に削除されました。同様にこの実装に依存していた referer 機能 | |
21 | + も削除されました。 | |
22 | + (See BugTrack2/62) | |
23 | + | |
24 | + | |
25 | + | |
8 | 26 | PukiWiki 1.4.7: PukiWiki 1.4.6 との非互換点 |
9 | 27 | |
10 | 28 | 1. 管理者パスワード($adminpass)のデフォルト値が "pass" から、"(判定に絶対 |
@@ -1 +1 @@ | ||
1 | -PageReading :config/PageReading/dict :config/plugin/attach/mime-type :config/plugin/referer/config :config/plugin/tracker/default :config/plugin/tracker/default/form :config/plugin/tracker/default/list :config/plugin/tracker/default/page BracketName FormattingRules FrontPage Help InterWiki InterWikiName InterWikiSandBox MenuBar PHP PukiWiki RecentChanges SandBox WikiEngines WikiName WikiWikiWeb YukiWiki | |
\ No newline at end of file | ||
1 | +PageReading :config/PageReading/dict :config/plugin/attach/mime-type :config/plugin/tracker/default :config/plugin/tracker/default/form :config/plugin/tracker/default/list :config/plugin/tracker/default/page BracketName FormattingRules FrontPage Help InterWiki InterWikiName InterWikiSandBox MenuBar PHP PukiWiki RecentChanges SandBox WikiEngines WikiName WikiWikiWeb YukiWiki | |
\ No newline at end of file |
@@ -1 +1 @@ | ||
1 | -PukiWiki MenuBar FrontPage PukiWiki/1.4/Manual/Plugin/A-D InterWiki RecentChanges WikiName BracketName RenameLog TrackBack | |
\ No newline at end of file | ||
1 | +PukiWiki MenuBar FrontPage PukiWiki/1.4/Manual/Plugin/A-D InterWiki RecentChanges WikiName BracketName RenameLog | |
\ No newline at end of file |
@@ -1 +1 @@ | ||
1 | -PukiWiki PukiWiki/1.4/Manual/Plugin/A-D MenuBar TrackBack | |
\ No newline at end of file | ||
1 | +PukiWiki PukiWiki/1.4/Manual/Plugin/A-D MenuBar | |
\ No newline at end of file |
@@ -1,6 +1,6 @@ | ||
1 | 1 | <?php |
2 | 2 | // PukiWiki - Yet another WikiWikiWeb clone. |
3 | -// $Id: en.lng.php,v 1.15 2006/04/10 17:36:56 teanan Exp $ | |
3 | +// $Id: en.lng.php,v 1.16 2007/02/11 05:53:29 henoheno Exp $ | |
4 | 4 | // Copyright (C) |
5 | 5 | // 2002-2005 PukiWiki Developers Team |
6 | 6 | // 2001-2002 Originally written by yu-ji |
@@ -82,10 +82,6 @@ $_msg_auth = 'PukiWikiAuth'; | ||
82 | 82 | $rule_page = 'FormattingRules'; // Formatting rules |
83 | 83 | $help_page = 'Help'; // Help |
84 | 84 | |
85 | -/////////////////////////////////////// | |
86 | -// TrackBack (REMOVED) | |
87 | -$_tb_date = 'F j, Y, g:i A'; | |
88 | - | |
89 | 85 | ///////////////////////////////////////////////// |
90 | 86 | // No subject (article) |
91 | 87 | $_no_subject = 'no subject'; |
@@ -110,7 +106,6 @@ $_LANG['skin']['list'] = 'List of pages'; | ||
110 | 106 | $_LANG['skin']['new'] = 'New'; |
111 | 107 | $_LANG['skin']['rdf'] = 'RDF of recent changes'; |
112 | 108 | $_LANG['skin']['recent'] = 'Recent changes'; // RecentChanges |
113 | -$_LANG['skin']['refer'] = 'Referer'; // Show list of referer | |
114 | 109 | $_LANG['skin']['reload'] = 'Reload'; |
115 | 110 | $_LANG['skin']['rename'] = 'Rename'; // Rename a page (and related) |
116 | 111 | $_LANG['skin']['rss'] = 'RSS of recent changes'; |
@@ -118,7 +113,6 @@ $_LANG['skin']['rss10'] = & $_LANG['skin']['rss']; | ||
118 | 113 | $_LANG['skin']['rss20'] = & $_LANG['skin']['rss']; |
119 | 114 | $_LANG['skin']['search'] = 'Search'; |
120 | 115 | $_LANG['skin']['top'] = 'Front page'; // Top page |
121 | -$_LANG['skin']['trackback'] = 'Trackback'; // Show list of trackback | |
122 | 116 | $_LANG['skin']['unfreeze'] = 'Unfreeze'; |
123 | 117 | $_LANG['skin']['upload'] = 'Upload'; // Attach a file |
124 | 118 |
@@ -330,19 +324,6 @@ $_recent_plugin_frame = '<h5>recent(%d)</h5> | ||
330 | 324 | <div>%s</div>'; |
331 | 325 | |
332 | 326 | /////////////////////////////////////// |
333 | -// referer.inc.php | |
334 | -$_referer_msg = array( | |
335 | - 'msg_H0_Refer' => 'Referer', | |
336 | - 'msg_Hed_LastUpdate' => 'LastUpdate', | |
337 | - 'msg_Hed_1stDate' => 'First Register', | |
338 | - 'msg_Hed_RefCounter' => 'RefCounter', | |
339 | - 'msg_Hed_Referer' => 'Referer', | |
340 | - 'msg_Fmt_Date' => 'F j, Y, g:i A', | |
341 | - 'msg_Chr_uarr' => '⇑', | |
342 | - 'msg_Chr_darr' => '⇓', | |
343 | -); | |
344 | - | |
345 | -/////////////////////////////////////// | |
346 | 327 | // rename.inc.php |
347 | 328 | $_rename_messages = array( |
348 | 329 | 'err' => '<p>error:%s</p>', |
@@ -1,6 +1,6 @@ | ||
1 | 1 | <?php |
2 | 2 | // PukiWiki - Yet another WikiWikiWeb clone. |
3 | -// $Id: ja.lng.php,v 1.14 2006/04/10 17:36:56 teanan Exp $ | |
3 | +// $Id: ja.lng.php,v 1.15 2007/02/11 05:53:29 henoheno Exp $ | |
4 | 4 | // Copyright (C) |
5 | 5 | // 2002-2005 PukiWiki Developers Team |
6 | 6 | // 2001-2002 Originally written by yu-ji |
@@ -84,10 +84,6 @@ $_msg_auth = 'PukiWikiAuth'; | ||
84 | 84 | $rule_page = 'FormattingRules'; // Formatting rules |
85 | 85 | $help_page = 'Help'; // Help |
86 | 86 | |
87 | -/////////////////////////////////////// | |
88 | -// TrackBack (REMOVED) | |
89 | -$_tb_date = 'Y年n月j日 H:i:s'; | |
90 | - | |
91 | 87 | ///////////////////////////////////////////////// |
92 | 88 | // 題名が未記入の場合の表記 (article) |
93 | 89 | $_no_subject = '無題'; |
@@ -112,7 +108,6 @@ $_LANG['skin']['list'] = ' | ||
112 | 108 | $_LANG['skin']['new'] = '新規'; |
113 | 109 | $_LANG['skin']['rdf'] = '最終更新のRDF'; // RDF of RecentChanges |
114 | 110 | $_LANG['skin']['recent'] = '最終更新'; // RecentChanges |
115 | -$_LANG['skin']['refer'] = 'リンク元'; // Show list of referer | |
116 | 111 | $_LANG['skin']['reload'] = 'リロード'; |
117 | 112 | $_LANG['skin']['rename'] = '名前変更'; // Rename a page (and related) |
118 | 113 | $_LANG['skin']['rss'] = '最終更新のRSS'; // RSS of RecentChanges |
@@ -120,7 +115,6 @@ $_LANG['skin']['rss10'] = & $_LANG['skin']['rss']; | ||
120 | 115 | $_LANG['skin']['rss20'] = & $_LANG['skin']['rss']; |
121 | 116 | $_LANG['skin']['search'] = '単語検索'; |
122 | 117 | $_LANG['skin']['top'] = 'トップ'; // Top page |
123 | -$_LANG['skin']['trackback'] = 'Trackback'; // Show list of trackback | |
124 | 118 | $_LANG['skin']['unfreeze'] = '凍結解除'; |
125 | 119 | $_LANG['skin']['upload'] = '添付'; // Attach a file |
126 | 120 |
@@ -332,19 +326,6 @@ $_recent_plugin_frame = '<h5> | ||
332 | 326 | <div>%s</div>'; |
333 | 327 | |
334 | 328 | /////////////////////////////////////// |
335 | -// referer.inc.php | |
336 | -$_referer_msg = array( | |
337 | - 'msg_H0_Refer' => 'リンク元の表示', | |
338 | - 'msg_Hed_LastUpdate' => '最終更新日時', | |
339 | - 'msg_Hed_1stDate' => '初回登録日時', | |
340 | - 'msg_Hed_RefCounter' => 'カウンタ', | |
341 | - 'msg_Hed_Referer' => 'Referer', | |
342 | - 'msg_Fmt_Date' => 'Y年n月j日 H:i', | |
343 | - 'msg_Chr_uarr' => '↑', | |
344 | - 'msg_Chr_darr' => '↓', | |
345 | -); | |
346 | - | |
347 | -/////////////////////////////////////// | |
348 | 329 | // rename.inc.php |
349 | 330 | $_rename_messages = array( |
350 | 331 | 'err' => '<p>エラー:%s</p>', |
@@ -62,8 +62,6 @@ function get_filename($page) | ||
62 | 62 | // Put a data(wiki text) into a physical file(diff, backup, text) |
63 | 63 | function page_write($page, $postdata, $notimestamp = FALSE) |
64 | 64 | { |
65 | - global $trackback; | |
66 | - | |
67 | 65 | if (PKWK_READONLY) return; // Do nothing |
68 | 66 | |
69 | 67 | $postdata = make_str_rules($postdata); |
@@ -79,14 +77,6 @@ function page_write($page, $postdata, $notimestamp = FALSE) | ||
79 | 77 | // Create wiki text |
80 | 78 | file_write(DATA_DIR, $page, $postdata, $notimestamp); |
81 | 79 | |
82 | - if ($trackback) { | |
83 | - // TrackBack Ping | |
84 | - $_diff = explode("\n", $diffdata); | |
85 | - $plus = join("\n", preg_replace('/^\+/', '', preg_grep('/^\+/', $_diff))); | |
86 | - $minus = join("\n", preg_replace('/^-/', '', preg_grep('/^-/', $_diff))); | |
87 | - tb_send($page, $plus, $minus); | |
88 | - } | |
89 | - | |
90 | 80 | links_update($page); |
91 | 81 | } |
92 | 82 |
@@ -14,7 +14,7 @@ function catbody($title, $page, $body) | ||
14 | 14 | global $script, $vars, $arg, $defaultpage, $whatsnew, $help_page, $hr; |
15 | 15 | global $attach_link, $related_link, $cantedit, $function_freeze; |
16 | 16 | global $search_word_color, $_msg_word, $foot_explain, $note_hr, $head_tags; |
17 | - global $trackback, $referer, $javascript, $nofollow; | |
17 | + global $javascript, $nofollow; | |
18 | 18 | global $_LANG, $_LINK, $_IMAGE; |
19 | 19 | |
20 | 20 | global $pkwk_dtd; // XHTML 1.1, XHTML1.0, HTML 4.01 Transitional... |
@@ -47,7 +47,6 @@ function catbody($title, $page, $body) | ||
47 | 47 | $_LINK['new'] = "$script?plugin=newpage&refer=$r_page"; |
48 | 48 | $_LINK['rdf'] = "$script?cmd=rss&ver=1.0"; |
49 | 49 | $_LINK['recent'] = "$script?" . rawurlencode($whatsnew); |
50 | - $_LINK['refer'] = "$script?plugin=referer&page=$r_page"; | |
51 | 50 | $_LINK['reload'] = "$script?$r_page"; |
52 | 51 | $_LINK['rename'] = "$script?plugin=rename&refer=$r_page"; |
53 | 52 | $_LINK['rss'] = "$script?cmd=rss"; |
@@ -55,10 +54,6 @@ function catbody($title, $page, $body) | ||
55 | 54 | $_LINK['rss20'] = "$script?cmd=rss&ver=2.0"; |
56 | 55 | $_LINK['search'] = "$script?cmd=search"; |
57 | 56 | $_LINK['top'] = "$script?" . rawurlencode($defaultpage); |
58 | - if ($trackback) { | |
59 | - $tb_id = tb_get_id($_page); | |
60 | - $_LINK['trackback'] = "$script?plugin=tb&__mode=view&tb_id=$tb_id"; | |
61 | - } | |
62 | 57 | $_LINK['unfreeze'] = "$script?cmd=unfreeze&page=$r_page"; |
63 | 58 | $_LINK['upload'] = "$script?plugin=attach&pcmd=upload&page=$r_page"; |
64 | 59 |
@@ -74,7 +69,7 @@ function catbody($title, $page, $body) | ||
74 | 69 | $link_whatsnew = & $_LINK['recent']; |
75 | 70 | $link_backup = & $_LINK['backup']; |
76 | 71 | $link_help = & $_LINK['help']; |
77 | - $link_trackback = & $_LINK['trackback']; // New! | |
72 | + $link_trackback = ''; // Removed (compat) | |
78 | 73 | $link_rdf = & $_LINK['rdf']; // New! |
79 | 74 | $link_rss = & $_LINK['rss']; |
80 | 75 | $link_rss10 = & $_LINK['rss10']; // New! |
@@ -83,7 +78,7 @@ function catbody($title, $page, $body) | ||
83 | 78 | $link_unfreeze = & $_LINK['unfreeze']; |
84 | 79 | $link_upload = & $_LINK['upload']; |
85 | 80 | $link_template = & $_LINK['copy']; |
86 | - $link_refer = & $_LINK['refer']; // New! | |
81 | + $link_refer = ''; // Removed (compat) | |
87 | 82 | $link_rename = & $_LINK['rename']; |
88 | 83 | |
89 | 84 | // Init flags |
@@ -351,11 +351,6 @@ if (isset($get['md5']) && $get['md5'] != '' && | ||
351 | 351 | $get['cmd'] = $post['cmd'] = $vars['cmd'] = 'md5'; |
352 | 352 | } |
353 | 353 | |
354 | -// TrackBack Ping | |
355 | -if (isset($vars['tb_id']) && $vars['tb_id'] != '') { | |
356 | - $get['cmd'] = $post['cmd'] = $vars['cmd'] = 'tb'; | |
357 | -} | |
358 | - | |
359 | 354 | // cmdもpluginも指定されていない場合は、QUERY_STRINGをページ名かInterWikiNameであるとみなす |
360 | 355 | if (! isset($vars['cmd']) && ! isset($vars['plugin'])) { |
361 | 356 |
@@ -53,7 +53,7 @@ if (! extension_loaded('mbstring')) { | ||
53 | 53 | } |
54 | 54 | |
55 | 55 | // Defaults |
56 | -$notify = $trackback = $referer = 0; | |
56 | +$notify = 0; | |
57 | 57 | |
58 | 58 | // Load *.ini.php files and init PukiWiki |
59 | 59 | require(LIB_DIR . 'init.php'); |
@@ -62,11 +62,6 @@ require(LIB_DIR . 'init.php'); | ||
62 | 62 | if ($notify) { |
63 | 63 | require(LIB_DIR . 'mail.php'); // Mail notification |
64 | 64 | } |
65 | -if ($trackback || $referer) { | |
66 | - // Referer functionality uses trackback functions | |
67 | - // without functional reason now | |
68 | - require(LIB_DIR . 'trackback.php'); // TrackBack | |
69 | -} | |
70 | 65 | |
71 | 66 | ///////////////////////////////////////////////// |
72 | 67 | // Main |
@@ -121,9 +116,6 @@ if (isset($retvars['body']) && $retvars['body'] != '') { | ||
121 | 116 | $vars['page'] = & $base; |
122 | 117 | |
123 | 118 | $body = convert_html(get_source($base)); |
124 | - | |
125 | - if ($trackback) $body .= tb_get_rdf($base); // Add TrackBack-Ping URI | |
126 | - if ($referer) ref_save($base); | |
127 | 119 | } |
128 | 120 | |
129 | 121 | // Output |
@@ -1,304 +0,0 @@ | ||
1 | -<?php | |
2 | -// $Id: trackback.php,v 1.21 2005/07/05 12:51:08 henoheno Exp $ | |
3 | -// Copyright (C) | |
4 | -// 2003-2005 PukiWiki Developers Team | |
5 | -// 2003 Originally written by Katsumi Saito <katsumi@jo1upk.ymt.prug.or.jp> | |
6 | -// License: GPL v2 or (at your option) any later version | |
7 | -// | |
8 | -// PukiWiki/TrackBack | |
9 | - | |
10 | -/* | |
11 | - * NOTE: | |
12 | - * To get TrackBack ID correctly, specify URI clearly like: | |
13 | - * http://localhost/pukiwiki/pukiwiki.php?FrontPage | |
14 | - * | |
15 | - * tb_get_id($page) Get TrackBack ID from page name | |
16 | - * tb_id2page($tb_id) Get page name from TrackBack ID | |
17 | - * tb_get_filename($page) Get file name of TrackBack ping data | |
18 | - * tb_count($page) Count the number of TrackBack pings included for the page | |
19 | - * // pukiwiki.skin.php | |
20 | - * tb_send($page, $data) Send TrackBack ping(s) automatically // file.php | |
21 | - * tb_delete($page) Remove TrackBack ping data // edit.inc.php | |
22 | - * tb_get($file, $key = 1) Import TrackBack ping data from file | |
23 | - * tb_get_rdf($page) Get a RDF comment to bury TrackBack-ping-URI under HTML(XHTML) output | |
24 | - * // lib/pukiwiki.php | |
25 | - * tb_get_url($url) HTTP-GET from $uri, and reveal the TrackBack Ping URL | |
26 | - * class TrackBack_XML Parse and reveal the TrackBack Ping URL from RDF data | |
27 | - * | |
28 | - * == Referer related == | |
29 | - * ref_save($page) Save or update referer data // lib/pukiwiki.php | |
30 | - */ | |
31 | - | |
32 | -define('PLUGIN_TRACKBACK_VERSION', 'PukiWiki/TrackBack 0.3'); | |
33 | - | |
34 | -// Get TrackBack ID from page name | |
35 | -function tb_get_id($page) | |
36 | -{ | |
37 | - return md5($page); | |
38 | -} | |
39 | - | |
40 | -// Get page name from TrackBack ID | |
41 | -function tb_id2page($tb_id) | |
42 | -{ | |
43 | - static $pages, $cache = array(); | |
44 | - | |
45 | - if (isset($cache[$tb_id])) return $cache[$tb_id]; | |
46 | - | |
47 | - if (! isset($pages)) $pages = get_existpages(); | |
48 | - foreach ($pages as $page) { | |
49 | - $_tb_id = tb_get_id($page); | |
50 | - $cache[$_tb_id] = $page; | |
51 | - unset($pages[$page]); | |
52 | - if ($tb_id == $_tb_id) return $cache[$tb_id]; // Found | |
53 | - } | |
54 | - | |
55 | - $cache[$tb_id] = FALSE; | |
56 | - return $cache[$tb_id]; // Not found | |
57 | -} | |
58 | - | |
59 | -// Get file name of TrackBack ping data | |
60 | -function tb_get_filename($page, $ext = '.txt') | |
61 | -{ | |
62 | - return TRACKBACK_DIR . encode($page) . $ext; | |
63 | -} | |
64 | - | |
65 | -// Count the number of TrackBack pings included for the page | |
66 | -function tb_count($page, $ext = '.txt') | |
67 | -{ | |
68 | - $filename = tb_get_filename($page, $ext); | |
69 | - return file_exists($filename) ? count(file($filename)) : 0; | |
70 | -} | |
71 | - | |
72 | -// Send TrackBack ping(s) automatically | |
73 | -// $plus = Newly added lines may include URLs | |
74 | -// $minus = Removed lines may include URLs | |
75 | -function tb_send($page, $plus, $minus = '') | |
76 | -{ | |
77 | - global $page_title; | |
78 | - | |
79 | - $script = get_script_uri(); | |
80 | - | |
81 | - // Disable 'max execution time' (php.ini: max_execution_time) | |
82 | - if (ini_get('safe_mode') == '0') set_time_limit(0); | |
83 | - | |
84 | - // Get URLs from <a>(anchor) tag from convert_html() | |
85 | - $links = array(); | |
86 | - $plus = convert_html($plus); // WARNING: heavy and may cause side-effect | |
87 | - preg_match_all('#href="(https?://[^"]+)"#', $plus, $links, PREG_PATTERN_ORDER); | |
88 | - $links = array_unique($links[1]); | |
89 | - | |
90 | - // Reject from minus list | |
91 | - if ($minus != '') { | |
92 | - $links_m = array(); | |
93 | - $minus = convert_html($minus); // WARNING: heavy and may cause side-effect | |
94 | - preg_match_all('#href="(https?://[^"]+)"#', $minus, $links_m, PREG_PATTERN_ORDER); | |
95 | - $links_m = array_unique($links_m[1]); | |
96 | - | |
97 | - $links = array_diff($links, $links_m); | |
98 | - } | |
99 | - | |
100 | - // Reject own URL (Pattern _NOT_ started with '$script' and '?') | |
101 | - $links = preg_grep('/^(?!' . preg_quote($script, '/') . '\?)./', $links); | |
102 | - | |
103 | - // No link, END | |
104 | - if (! is_array($links) || empty($links)) return; | |
105 | - | |
106 | - $r_page = rawurlencode($page); | |
107 | - $excerpt = strip_htmltag(convert_html(get_source($page))); | |
108 | - | |
109 | - // Sender's information | |
110 | - $putdata = array( | |
111 | - 'title' => $page, // Title = It's page name | |
112 | - 'url' => $script . '?' . $r_page, // will be rawurlencode() at send phase | |
113 | - 'excerpt' => mb_strimwidth(preg_replace("/[\r\n]/", ' ', $excerpt), 0, 255, '...'), | |
114 | - 'blog_name' => $page_title . ' (' . PLUGIN_TRACKBACK_VERSION . ')', | |
115 | - 'charset' => SOURCE_ENCODING // Ping text encoding (Not defined) | |
116 | - ); | |
117 | - | |
118 | - foreach ($links as $link) { | |
119 | - $tb_id = tb_get_url($link); // Get Trackback ID from the URL | |
120 | - if (empty($tb_id)) continue; // Trackback is not supported | |
121 | - | |
122 | - $result = http_request($tb_id, 'POST', '', $putdata, 2, CONTENT_CHARSET); | |
123 | - // FIXME: Create warning notification space at pukiwiki.skin! | |
124 | - } | |
125 | -} | |
126 | - | |
127 | -// Remove TrackBack ping data | |
128 | -function tb_delete($page) | |
129 | -{ | |
130 | - $filename = tb_get_filename($page); | |
131 | - if (file_exists($filename)) @unlink($filename); | |
132 | -} | |
133 | - | |
134 | -// Import TrackBack ping data from file | |
135 | -function tb_get($file, $key = 1) | |
136 | -{ | |
137 | - if (! file_exists($file)) return array(); | |
138 | - | |
139 | - $result = array(); | |
140 | - $fp = @fopen($file, 'r'); | |
141 | - set_file_buffer($fp, 0); | |
142 | - flock($fp, LOCK_EX); | |
143 | - rewind($fp); | |
144 | - while ($data = @fgetcsv($fp, 8192, ',')) { | |
145 | - // $data[$key] = URL | |
146 | - $result[rawurldecode($data[$key])] = $data; | |
147 | - } | |
148 | - flock($fp, LOCK_UN); | |
149 | - fclose ($fp); | |
150 | - | |
151 | - return $result; | |
152 | -} | |
153 | - | |
154 | -// Get a RDF comment to bury TrackBack-ping-URI under HTML(XHTML) output | |
155 | -function tb_get_rdf($page) | |
156 | -{ | |
157 | - $_script = get_script_uri(); // Get absolute path | |
158 | - $r_page = rawurlencode($page); | |
159 | - $tb_id = tb_get_id($page); | |
160 | - // $dcdate = substr_replace(get_date('Y-m-d\TH:i:sO', $time), ':', -2, 0); | |
161 | - // dc:date="$dcdate" | |
162 | - | |
163 | - return <<<EOD | |
164 | -<!-- | |
165 | -<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | |
166 | - xmlns:dc="http://purl.org/dc/elements/1.1/" | |
167 | - xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"> | |
168 | - <rdf:Description | |
169 | - rdf:about="$_script?$r_page" | |
170 | - dc:identifier="$_script?$r_page" | |
171 | - dc:title="$page" | |
172 | - trackback:ping="$_script?tb_id=$tb_id" /> | |
173 | -</rdf:RDF> | |
174 | ---> | |
175 | -EOD; | |
176 | -} | |
177 | - | |
178 | -// HTTP-GET from $uri, and reveal the TrackBack Ping URL | |
179 | -function tb_get_url($url) | |
180 | -{ | |
181 | - global $use_proxy, $no_proxy; | |
182 | - | |
183 | - // Don't go across HTTP-proxy server | |
184 | - $parse_url = parse_url($url); | |
185 | - if (empty($parse_url['host']) || | |
186 | - ($use_proxy && ! in_the_net($no_proxy, $parse_url['host']))) | |
187 | - return ''; | |
188 | - | |
189 | - $data = http_request($url); | |
190 | - if ($data['rc'] !== 200) return ''; | |
191 | - | |
192 | - $matches = array(); | |
193 | - if (! preg_match_all('#<rdf:RDF[^>]*xmlns:trackback=[^>]*>(.*?)</rdf:RDF>#si', $data['data'], | |
194 | - $matches, PREG_PATTERN_ORDER)) | |
195 | - return ''; | |
196 | - | |
197 | - $obj = new TrackBack_XML(); | |
198 | - foreach ($matches[1] as $body) { | |
199 | - $tb_url = $obj->parse($body, $url); | |
200 | - if ($tb_url !== FALSE) return $tb_url; | |
201 | - } | |
202 | - | |
203 | - return ''; | |
204 | -} | |
205 | - | |
206 | -// Parse and reveal the TrackBack Ping URL from RDF(XML) data | |
207 | -class TrackBack_XML | |
208 | -{ | |
209 | - var $url; | |
210 | - var $tb_url; | |
211 | - | |
212 | - function parse($buf, $url) | |
213 | - { | |
214 | - // Init | |
215 | - $this->url = $url; | |
216 | - $this->tb_url = FALSE; | |
217 | - | |
218 | - $xml_parser = xml_parser_create(); | |
219 | - if ($xml_parser === FALSE) return FALSE; | |
220 | - | |
221 | - xml_set_element_handler($xml_parser, array(& $this, 'start_element'), | |
222 | - array(& $this, 'end_element')); | |
223 | - | |
224 | - if (! xml_parse($xml_parser, $buf, TRUE)) { | |
225 | -/* die(sprintf('XML error: %s at line %d in %s', | |
226 | - xml_error_string(xml_get_error_code($xml_parser)), | |
227 | - xml_get_current_line_number($xml_parser), | |
228 | - $buf)); | |
229 | -*/ | |
230 | - return FALSE; | |
231 | - } | |
232 | - | |
233 | - return $this->tb_url; | |
234 | - } | |
235 | - | |
236 | - function start_element($parser, $name, $attrs) | |
237 | - { | |
238 | - if ($name !== 'RDF:DESCRIPTION') return; | |
239 | - | |
240 | - $about = $url = $tb_url = ''; | |
241 | - foreach ($attrs as $key=>$value) { | |
242 | - switch ($key) { | |
243 | - case 'RDF:ABOUT' : $about = $value; break; | |
244 | - case 'DC:IDENTIFER' : /*FALLTHROUGH*/ | |
245 | - case 'DC:IDENTIFIER' : $url = $value; break; | |
246 | - case 'TRACKBACK:PING': $tb_url = $value; break; | |
247 | - } | |
248 | - } | |
249 | - if ($about == $this->url || $url == $this->url) | |
250 | - $this->tb_url = $tb_url; | |
251 | - } | |
252 | - | |
253 | - function end_element($parser, $name) {} | |
254 | -} | |
255 | - | |
256 | -// Save or update referer data | |
257 | -function ref_save($page) | |
258 | -{ | |
259 | - global $referer; | |
260 | - | |
261 | - if (PKWK_READONLY || ! $referer || empty($_SERVER['HTTP_REFERER'])) return TRUE; | |
262 | - | |
263 | - $url = $_SERVER['HTTP_REFERER']; | |
264 | - | |
265 | - // Validate URI (Ignore own) | |
266 | - $parse_url = parse_url($url); | |
267 | - if (empty($parse_url['host']) || $parse_url['host'] == $_SERVER['HTTP_HOST']) | |
268 | - return TRUE; | |
269 | - | |
270 | - if (! is_dir(TRACKBACK_DIR)) die('No such directory: TRACKBACK_DIR'); | |
271 | - if (! is_writable(TRACKBACK_DIR)) die('Permission denied to write: TRACKBACK_DIR'); | |
272 | - | |
273 | - // Update referer data | |
274 | - if (ereg("[,\"\n\r]", $url)) | |
275 | - $url = '"' . str_replace('"', '""', $url) . '"'; | |
276 | - | |
277 | - $filename = tb_get_filename($page, '.ref'); | |
278 | - $data = tb_get($filename, 3); | |
279 | - $d_url = rawurldecode($url); | |
280 | - if (! isset($data[$d_url])) { | |
281 | - $data[$d_url] = array( | |
282 | - '', // [0]: Last update date | |
283 | - UTIME, // [1]: Creation date | |
284 | - 0, // [2]: Reference counter | |
285 | - $url, // [3]: Referer header | |
286 | - 1 // [4]: Enable / Disable flag (1 = enable) | |
287 | - ); | |
288 | - } | |
289 | - $data[$d_url][0] = UTIME; | |
290 | - $data[$d_url][2]++; | |
291 | - | |
292 | - $fp = fopen($filename, 'w'); | |
293 | - if ($fp === FALSE) return FALSE; | |
294 | - set_file_buffer($fp, 0); | |
295 | - flock($fp, LOCK_EX); | |
296 | - rewind($fp); | |
297 | - foreach ($data as $line) | |
298 | - fwrite($fp, join(',', $line) . "\n"); | |
299 | - flock($fp, LOCK_UN); | |
300 | - fclose($fp); | |
301 | - | |
302 | - return TRUE; | |
303 | -} | |
304 | -?> |
@@ -174,7 +174,7 @@ function plugin_edit_inline() | ||
174 | 174 | // Write, add, or insert new comment |
175 | 175 | function plugin_edit_write() |
176 | 176 | { |
177 | - global $vars, $trackback; | |
177 | + global $vars; | |
178 | 178 | global $_title_collided, $_msg_collided_auto, $_msg_collided, $_title_deleted; |
179 | 179 | global $notimeupdate, $_msg_invalidpass, $do_update_diff_table; |
180 | 180 |
@@ -221,9 +221,6 @@ function plugin_edit_write() | ||
221 | 221 | page_write($page, $postdata); |
222 | 222 | $retvars['msg' ] = $_title_deleted; |
223 | 223 | $retvars['body'] = str_replace('$1', htmlsc($page), $_title_deleted); |
224 | - | |
225 | - if ($trackback) tb_delete($page); | |
226 | - | |
227 | 224 | return $retvars; |
228 | 225 | } |
229 | 226 |
@@ -1,191 +0,0 @@ | ||
1 | -<?php | |
2 | -// $Id: referer.inc.php,v 1.10 2005/01/23 05:20:02 henoheno Exp $ | |
3 | -/* | |
4 | - * PukiWiki Referer プラグイン(リンク元表示プラグイン) | |
5 | - * (C) 2003, Katsumi Saito <katsumi@jo1upk.ymt.prug.or.jp> | |
6 | - * License: GPL | |
7 | -*/ | |
8 | - | |
9 | -define('CONFIG_REFERER', 'plugin/referer/config'); | |
10 | - | |
11 | -function plugin_referer_action() | |
12 | -{ | |
13 | - global $vars, $referer; | |
14 | - global $_referer_msg; | |
15 | - | |
16 | - // Setting: Off | |
17 | - if (! $referer) return array('msg'=>'','body'=>''); | |
18 | - | |
19 | - if (isset($vars['page']) && is_page($vars['page'])) { | |
20 | - $sort = (empty($vars['sort'])) ? '0d' : $vars['sort']; | |
21 | - return array( | |
22 | - 'msg' => $_referer_msg['msg_H0_Refer'], | |
23 | - 'body' => plugin_referer_body($vars['page'], $sort)); | |
24 | - } | |
25 | - $pages = get_existpages(TRACKBACK_DIR, '.ref'); | |
26 | - | |
27 | - if (empty($pages)) { | |
28 | - return array('msg'=>'', 'body'=>''); | |
29 | - } else { | |
30 | - return array( | |
31 | - 'msg' => 'referer list', | |
32 | - 'body' => page_list($pages, 'referer', FALSE)); | |
33 | - } | |
34 | -} | |
35 | - | |
36 | -// Referer 明細行編集 | |
37 | -function plugin_referer_body($page, $sort) | |
38 | -{ | |
39 | - global $script, $_referer_msg; | |
40 | - | |
41 | - $data = tb_get(tb_get_filename($page, '.ref')); | |
42 | - if (empty($data)) return '<p>no data.</p>'; | |
43 | - | |
44 | - $bg = plugin_referer_set_color(); | |
45 | - | |
46 | - $arrow_last = $arrow_1st = $arrow_ctr = ''; | |
47 | - $color_last = $color_1st = $color_ctr = $color_ref = $bg['etc']; | |
48 | - $sort_last = '0d'; | |
49 | - $sort_1st = '1d'; | |
50 | - $sort_ctr = '2d'; | |
51 | - | |
52 | - switch ($sort) { | |
53 | - case '0d': // 0d 最終更新日時(新着順) | |
54 | - usort($data, create_function('$a,$b', 'return $b[0] - $a[0];')); | |
55 | - $color_last = $bg['cur']; | |
56 | - $arrow_last = $_referer_msg['msg_Chr_darr']; | |
57 | - $sort_last = '0a'; | |
58 | - break; | |
59 | - case '0a': // 0a 最終更新日時(日付順) | |
60 | - usort($data, create_function('$a,$b', 'return $a[0] - $b[0];')); | |
61 | - $color_last = $bg['cur']; | |
62 | - $arrow_last = $_referer_msg['msg_Chr_uarr']; | |
63 | -// $sort_last = '0d'; | |
64 | - break; | |
65 | - case '1d': // 1d 初回登録日時(新着順) | |
66 | - usort($data, create_function('$a,$b', 'return $b[1] - $a[1];')); | |
67 | - $color_1st = $bg['cur']; | |
68 | - $arrow_1st = $_referer_msg['msg_Chr_darr']; | |
69 | - $sort_1st = '1a'; | |
70 | - break; | |
71 | - case '1a': // 1a 初回登録日時(日付順) | |
72 | - usort($data, create_function('$a,$b', 'return $a[1] - $b[1];')); | |
73 | - $color_1st = $bg['cur']; | |
74 | - $arrow_1st = $_referer_msg['msg_Chr_uarr']; | |
75 | -// $sort_1st = '1d'; | |
76 | - break; | |
77 | - case '2d': // 2d カウンタ(大きい順) | |
78 | - usort($data, create_function('$a,$b', 'return $b[2] - $a[2];')); | |
79 | - $color_ctr = $bg['cur']; | |
80 | - $arrow_ctr = $_referer_msg['msg_Chr_darr']; | |
81 | - $sort_ctr = '2a'; | |
82 | - break; | |
83 | - case '2a': // 2a カウンタ(小さい順) | |
84 | - usort($data, create_function('$a,$b', 'return $a[2] - $b[2];')); | |
85 | - $color_ctr = $bg['cur']; | |
86 | - $arrow_ctr = $_referer_msg['msg_Chr_uarr']; | |
87 | -// $sort_ctr = '2d'; | |
88 | - break; | |
89 | - case '3': // 3 Referer | |
90 | - usort($data, create_function('$a,$b', | |
91 | - 'return ($a[3] == $b[3]) ? 0 : (($a[3] > $b[3]) ? 1 : -1);')); | |
92 | - $color_ref = $bg['cur']; | |
93 | - break; | |
94 | - } | |
95 | - | |
96 | - $body = ''; | |
97 | - foreach ($data as $arr) { | |
98 | - // 0:最終更新日時, 1:初回登録日時, 2:参照カウンタ, 3:Referer ヘッダ, 4:利用可否フラグ(1は有効) | |
99 | - list($ltime, $stime, $count, $url, $enable) = $arr; | |
100 | - | |
101 | - // 非ASCIIキャラクタ(だけ)をURLエンコードしておく BugTrack/440 | |
102 | - $e_url = htmlsc(preg_replace('/([" \x80-\xff]+)/e', 'rawurlencode("$1")', $url)); | |
103 | - $s_url = htmlsc(mb_convert_encoding(rawurldecode($url), SOURCE_ENCODING, 'auto')); | |
104 | - | |
105 | - $lpass = get_passage($ltime, FALSE); // 最終更新日時からの経過時間 | |
106 | - $spass = get_passage($stime, FALSE); // 初回登録日時からの経過時間 | |
107 | - $ldate = get_date($_referer_msg['msg_Fmt_Date'], $ltime); // 最終更新日時文字列 | |
108 | - $sdate = get_date($_referer_msg['msg_Fmt_Date'], $stime); // 初回登録日時文字列 | |
109 | - | |
110 | - $body .= | |
111 | - ' <tr>' . "\n" . | |
112 | - ' <td>' . $ldate . '</td>' . "\n" . | |
113 | - ' <td>' . $lpass . '</td>' . "\n"; | |
114 | - | |
115 | - $body .= ($count == 1) ? | |
116 | - ' <td colspan="2">N/A</td>' . "\n" : | |
117 | - ' <td>' . $sdate . '</td>' . "\n" . | |
118 | - ' <td>' . $spass . '</td>' . "\n"; | |
119 | - | |
120 | - $body .= ' <td style="text-align:right;">' . $count . '</td>' . "\n"; | |
121 | - | |
122 | - // 適用不可データのときはアンカーをつけない | |
123 | - $body .= plugin_referer_ignore_check($url) ? | |
124 | - ' <td>' . $s_url . '</td>' . "\n" : | |
125 | - ' <td><a href="' . $e_url . '" rel="nofollow">' . $s_url . '</a></td>' . "\n"; | |
126 | - | |
127 | - $body .= ' </tr>' . "\n"; | |
128 | - } | |
129 | - $href = $script . '?plugin=referer&page=' . rawurlencode($page); | |
130 | - return <<<EOD | |
131 | -<table border="1" cellspacing="1" summary="Referer"> | |
132 | - <tr> | |
133 | - <td style="background-color:$color_last" colspan="2"> | |
134 | - <a href="$href&sort=$sort_last">{$_referer_msg['msg_Hed_LastUpdate']}$arrow_last</a> | |
135 | - </td> | |
136 | - <td style="background-color:$color_1st" colspan="2"> | |
137 | - <a href="$href&sort=$sort_1st">{$_referer_msg['msg_Hed_1stDate']}$arrow_1st</a> | |
138 | - </td> | |
139 | - <td style="background-color:$color_ctr;text-align:right"> | |
140 | - <a href="$href&sort=$sort_ctr">{$_referer_msg['msg_Hed_RefCounter']}$arrow_ctr</a> | |
141 | - </td> | |
142 | - <td style="background-color:$color_ref"> | |
143 | - <a href="$href&sort=3">{$_referer_msg['msg_Hed_Referer']}</a> | |
144 | - </td> | |
145 | - </tr> | |
146 | - $body | |
147 | -</table> | |
148 | -EOD; | |
149 | -} | |
150 | - | |
151 | -function plugin_referer_set_color() | |
152 | -{ | |
153 | - static $color; | |
154 | - | |
155 | - if (! isset($color)) { | |
156 | - // Default color | |
157 | - $color = array('cur' => '#88ff88', 'etc' => '#cccccc'); | |
158 | - | |
159 | - $config = new Config(CONFIG_REFERER); | |
160 | - $config->read(); | |
161 | - $pconfig_color = $config->get('COLOR'); | |
162 | - unset($config); | |
163 | - | |
164 | - // BGCOLOR(#88ff88) | |
165 | - $matches = array(); | |
166 | - foreach ($pconfig_color as $x) | |
167 | - $color[$x[0]] = htmlsc( | |
168 | - preg_match('/BGCOLOR\(([^)]+)\)/si', $x[1], $matches) ? | |
169 | - $matches[1] : $x[1]); | |
170 | - } | |
171 | - return $color; | |
172 | -} | |
173 | - | |
174 | -function plugin_referer_ignore_check($url) | |
175 | -{ | |
176 | - static $ignore_url; | |
177 | - | |
178 | - // config.php | |
179 | - if (! isset($ignore_url)) { | |
180 | - $config = new Config(CONFIG_REFERER); | |
181 | - $config->read(); | |
182 | - $ignore_url = $config->get('IGNORE'); | |
183 | - unset($config); | |
184 | - } | |
185 | - | |
186 | - foreach ($ignore_url as $x) | |
187 | - if (strpos($url, $x) !== FALSE) | |
188 | - return 1; | |
189 | - return 0; | |
190 | -} | |
191 | -?> |
@@ -1,6 +1,6 @@ | ||
1 | 1 | <?php |
2 | 2 | // PukiWiki - Yet another WikiWikiWeb clone |
3 | -// $Id: rss.inc.php,v 1.18 2006/03/05 15:01:31 henoheno Exp $ | |
3 | +// $Id: rss.inc.php,v 1.21 2007/02/11 05:53:31 henoheno Exp $ | |
4 | 4 | // |
5 | 5 | // RSS plugin: Publishing RSS of RecentChanges |
6 | 6 | // |
@@ -13,7 +13,7 @@ | ||
13 | 13 | |
14 | 14 | function plugin_rss_action() |
15 | 15 | { |
16 | - global $vars, $rss_max, $page_title, $whatsnew, $trackback; | |
16 | + global $vars, $rss_max, $page_title, $whatsnew; | |
17 | 17 | |
18 | 18 | $version = isset($vars['ver']) ? $vars['ver'] : ''; |
19 | 19 | switch($version){ |
@@ -64,19 +64,12 @@ EOD; | ||
64 | 64 | '?' . $r_page . '" />' . "\n"; |
65 | 65 | |
66 | 66 | $date = substr_replace(get_date('Y-m-d\TH:i:sO', $time), ':', -2, 0); |
67 | - $trackback_ping = ''; | |
68 | - if ($trackback) { | |
69 | - $tb_id = md5($r_page); | |
70 | - $trackback_ping = ' <trackback:ping>' . $self . | |
71 | - '?tb_id=' . $tb_id . '</trackback:ping>'; | |
72 | - } | |
73 | 67 | $items .= <<<EOD |
74 | 68 | <item rdf:about="$self?$r_page"> |
75 | 69 | <title>$title</title> |
76 | 70 | <link>$self?$r_page</link> |
77 | 71 | <dc:date>$date</dc:date> |
78 | 72 | <dc:identifier>$self?$r_page</dc:identifier> |
79 | -$trackback_ping | |
80 | 73 | </item> |
81 | 74 | |
82 | 75 | EOD; |
@@ -112,12 +105,9 @@ EOD; | ||
112 | 105 | break; |
113 | 106 | |
114 | 107 | case '1.0': |
115 | - $xmlns_trackback = $trackback ? | |
116 | - ' xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"' : ''; | |
117 | 108 | print <<<EOD |
118 | 109 | <rdf:RDF |
119 | 110 | xmlns:dc="http://purl.org/dc/elements/1.1/" |
120 | -$xmlns_trackback | |
121 | 111 | xmlns="http://purl.org/rss/1.0/" |
122 | 112 | xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
123 | 113 | xml:lang="$lang"> |
@@ -1,6 +1,6 @@ | ||
1 | 1 | <?php |
2 | 2 | // PukiWiki - Yet another WikiWikiWeb clone |
3 | -// $Id: pukiwiki.ini.php,v 1.143 2006/10/08 11:27:06 henoheno Exp $ | |
3 | +// $Id: pukiwiki.ini.php,v 1.148 2007/02/11 05:53:30 henoheno Exp $ | |
4 | 4 | // Copyright (C) |
5 | 5 | // 2002-2006 PukiWiki Developers Team |
6 | 6 | // 2001-2002 Originally written by yu-ji |
@@ -76,7 +76,6 @@ define('BACKUP_DIR', DATA_HOME . 'backup/' ); // Backups | ||
76 | 76 | define('CACHE_DIR', DATA_HOME . 'cache/' ); // Some sort of caches |
77 | 77 | define('UPLOAD_DIR', DATA_HOME . 'attach/' ); // Attached files and logs |
78 | 78 | define('COUNTER_DIR', DATA_HOME . 'counter/' ); // Counter plugin's counts |
79 | -define('TRACKBACK_DIR', DATA_HOME . 'trackback/'); // TrackBack logs | |
80 | 79 | define('PLUGIN_DIR', DATA_HOME . 'plugin/' ); // Plugin directory |
81 | 80 | |
82 | 81 | ///////////////////////////////////////////////// |
@@ -155,16 +154,6 @@ $nofollow = 0; // 1 = Try hiding from search engines | ||
155 | 154 | define('PKWK_ALLOW_JAVASCRIPT', 0); |
156 | 155 | |
157 | 156 | ///////////////////////////////////////////////// |
158 | -// TrackBack feature | |
159 | - | |
160 | -// Enable Trackback | |
161 | -$trackback = 0; | |
162 | - | |
163 | -///////////////////////////////////////////////// | |
164 | -// Referer list feature | |
165 | -$referer = 0; | |
166 | - | |
167 | -///////////////////////////////////////////////// | |
168 | 157 | // _Disable_ WikiName auto-linking |
169 | 158 | $nowikiname = 0; |
170 | 159 |
@@ -328,7 +317,7 @@ define('PKWK_UPDATE_EXEC', ''); | ||
328 | 317 | // ' -O ' . $output_dir . ' -L ja -c -K ' . $target); |
329 | 318 | |
330 | 319 | ///////////////////////////////////////////////// |
331 | -// HTTP proxy setting (for TrackBack etc) | |
320 | +// HTTP proxy setting | |
332 | 321 | |
333 | 322 | // Use HTTP proxy server to get remote data |
334 | 323 | $use_proxy = 0; |
@@ -1,6 +1,6 @@ | ||
1 | 1 | <?php |
2 | 2 | // PukiWiki - Yet another WikiWikiWeb clone. |
3 | -// $Id: pukiwiki.skin.php,v 1.51 2006/10/08 11:24:30 henoheno Exp $ | |
3 | +// $Id: pukiwiki.skin.php,v 1.52 2007/02/11 05:53:31 henoheno Exp $ | |
4 | 4 | // Copyright (C) |
5 | 5 | // 2002-2006 PukiWiki Developers Team |
6 | 6 | // 2001-2002 Originally written by yu-ji |
@@ -151,13 +151,6 @@ function _navigator($key, $value = '', $javascript = ''){ | ||
151 | 151 | | <?php _navigator('recent') ?> |
152 | 152 | | <?php _navigator('help') ?> |
153 | 153 | ] |
154 | - | |
155 | -<?php if ($trackback) { ?> | |
156 | - [ <?php _navigator('trackback', $lang['trackback'] . '(' . tb_count($_page) . ')') ?> ] | |
157 | -<?php } ?> | |
158 | -<?php if ($referer) { ?> | |
159 | - [ <?php _navigator('refer') ?> ] | |
160 | -<?php } ?> | |
161 | 154 | <?php } // PKWK_SKIN_SHOW_NAVBAR ?> |
162 | 155 | </div> |
163 | 156 |
@@ -649,13 +649,6 @@ function _navigator($key, $value = '', $javascript = ''){ | ||
649 | 649 | <?php _navigator('search') ?> |
650 | 650 | <?php _navigator('recent') ?> |
651 | 651 | <?php _navigator('help') ?> |
652 | - | |
653 | -<?php if ($trackback) { ?> | |
654 | - <?php _navigator('trackback', $lang['trackback'] . '(' . tb_count($_page) . ')') ?> | |
655 | -<?php } ?> | |
656 | -<?php if ($referer) { ?> | |
657 | - <?php _navigator('refer') ?> | |
658 | -<?php } ?> | |
659 | 652 | </div></div> |
660 | 653 | <?php } else { ?> |
661 | 654 | <div id="navigator"></div> |
@@ -1,2 +0,0 @@ | ||
1 | -*.ref | |
2 | -*.txt |
@@ -1,2 +0,0 @@ | ||
1 | -Order allow,deny | |
2 | -Deny from all |
@@ -1 +0,0 @@ | ||
1 | -Place trackback cache files here |
@@ -1,7 +1,6 @@ | ||
1 | 1 | -[[:config/PageReading]] :config/PageReading |
2 | 2 | -[[:config/PageReading/dict]] :config/PageReading/dict |
3 | 3 | -[[:config/plugin/attach/mime-type]] :config/plugin/attach/mime-type |
4 | --[[:config/plugin/referer/config]] :config/plugin/referer/config | |
5 | 4 | -[[:config/plugin/tracker/default]] :config/plugin/tracker/default |
6 | 5 | -[[:config/plugin/tracker/default/form]] :config/plugin/tracker/default/form |
7 | 6 | -[[:config/plugin/tracker/default/list]] :config/plugin/tracker/default/list |
@@ -278,39 +278,6 @@ | ||
278 | 278 | (7) &ref(fuga.jpg); |
279 | 279 | (7)は(6)と似た記述ですが、添付ファイル名の次の引数が省略されているため、エラーにはなりません。 |
280 | 280 | |
281 | - | |
282 | -**referer [#l8d62a01] | |
283 | -:種別| | |
284 | -~コマンド | |
285 | -:重要度| | |
286 | -~★★★☆☆ | |
287 | -:書式| | |
288 | -''?plugin=referer'' | |
289 | -[&color(blue){&page=ページ名};] | |
290 | -[&color(blue){&sort=}; | |
291 | -&color(blue){0d};|&color(blue){0a};| | |
292 | -&color(blue){1d};|&color(blue){1a};| | |
293 | -&color(blue){2d};|&color(blue){2a};| | |
294 | -&color(blue){3}; | |
295 | -] | |
296 | -:概要| | |
297 | -~ページを照会した利用者の参照元URL(Referer)の一覧を表示します。 | |
298 | -:引数| | |
299 | -~ページ名にはRefererを表示するページ名を指定します。ページ名はエンコードされている必要があります。省略時はRefererが記録されているページの一覧を表示します。 | |
300 | -~sortでReferer一覧のソート順を指定します。 | |
301 | ---0d − 最終更新日時(新着順) | |
302 | ---0a − 最終更新日時(日付順) | |
303 | ---1d − 初回登録日時(新着順) | |
304 | ---1a − 初回登録日時(日付順) | |
305 | ---2d − カウンタ(大きい順) | |
306 | ---2a − カウンタ(小さい順) | |
307 | ---3 − Referer | |
308 | -:プラグイン内設定|~ | |
309 | ---CONFIG_REFERER 無視するURIを指定したページ | |
310 | -:備考| | |
311 | -~pukiwiki.ini.php で、Refererを使用する設定($referer = 1を指定)が行われている必要があります。 | |
312 | - | |
313 | - | |
314 | 281 | **related [#v4da5475] |
315 | 282 | :種別| |
316 | 283 | ~コマンド |
@@ -346,7 +313,6 @@ | ||
346 | 313 | --PLUGIN_RENAME_LOGPAGE ページ名の変換結果を出力するページ名 |
347 | 314 | :備考| |
348 | 315 | ~ページ内のリンクの書き換えは行ないません。yetlistなどを駆使して対処してください。 |
349 | -~TrackBackやRefererの情報は更新されません。 | |
350 | 316 | ~リネーム対象のページが凍結されているかどうかはチェックしていません。 |
351 | 317 | ~関連ページにリネーム対象の文字列が複数含まれているとおかしくなります。 |
352 | 318 | --たとえば、hogeおよびhoge/hogeという二つのページがあったときに、hogeページをfugaに(関連ページを含んで)リネームすると、hoge/hogeページの名前がfuga/fugaになってしまいます。 |
@@ -170,33 +170,6 @@ stationary | ||
170 | 170 | ------------------------------ |
171 | 171 | * T [#u58dc027] |
172 | 172 | |
173 | -**tb [#s5056787] | |
174 | -:種別| | |
175 | -~コマンド | |
176 | -:重要度| | |
177 | -~★☆☆☆☆ | |
178 | -:書式| | |
179 | -''?plugin=tb'' | |
180 | -&color(blue){&tb_id=TrackBackID}; | |
181 | -&color(blue){&__mode=}; | |
182 | -&color(blue){view};| | |
183 | -&color(blue){rss}; | |
184 | -:概要| | |
185 | -~TrackBackの一覧を表示します。 | |
186 | -~POSTされた場合は他サイトからのTrackBackに反応します。 | |
187 | -:引数| | |
188 | -~&tb_idには表示対象ページのTrackBackIDを指定します。 | |
189 | -~&__modeには一覧表示方法を指定します。 | |
190 | ---view − 人間が見やすい形式で表示します。 | |
191 | ---rss − RSS形式で表示します。 | |
192 | -:プラグイン内設定|~ | |
193 | ---PLUGIN_TB_LANGUAGE TrackBackのRSSで出力する言語 | |
194 | ---PLUGIN_TB_ERROR エラー時の返り値 | |
195 | ---PLUGIN_TB_NOERROR エラーなし時の返り値 | |
196 | -:備考| | |
197 | -~pukiwiki.ini.php で、TrackBackを使用する設定($trackback = 1を指定)が行われている必要があります。 | |
198 | - | |
199 | - | |
200 | 173 | **template [#j2adfc3d] |
201 | 174 | :種別| |
202 | 175 | ~コマンド |