Revisão | 93b032680a8038aee65aa9c814566af17cee4bd2 (tree) |
---|---|
Hora | 2014-11-26 01:32:17 |
Autor | henoheno <henoheno> |
Commiter | umorigu |
BugTrack2/62: Removed trackback.js and related setting $trackback_javascript.
This JavaScript function OpenTrackback() MUST BE A COPY of MovableType's function OpenTrackback().
There must be a wrong precedure of creating, So 'written by upk' must not be true, so this code seems not GPL-licensed.
You can check this by searching 'OpenTrackback' at http://www.google.com/codesearch .
@@ -14,8 +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, $trackback_javascript, $referer, $javascript; | |
18 | - global $nofollow; | |
17 | + global $trackback, $referer, $javascript, $nofollow; | |
19 | 18 | global $_LANG, $_LINK, $_IMAGE; |
20 | 19 | |
21 | 20 | global $pkwk_dtd; // XHTML 1.1, XHTML1.0, HTML 4.01 Transitional... |
@@ -30,7 +29,6 @@ function catbody($title, $page, $body) | ||
30 | 29 | $_LINK = $_IMAGE = array(); |
31 | 30 | |
32 | 31 | // Add JavaScript header when ... |
33 | - if ($trackback && $trackback_javascript) $javascript = 1; // Set something If you want | |
34 | 32 | if (! PKWK_ALLOW_JAVASCRIPT) unset($javascript); |
35 | 33 | |
36 | 34 | $_page = isset($vars['page']) ? $vars['page'] : ''; |
@@ -1,6 +1,6 @@ | ||
1 | 1 | <?php |
2 | 2 | // PukiWiki - Yet another WikiWikiWeb clone |
3 | -// $Id: pukiwiki.ini.php,v 1.140 2006/06/11 14:35:39 henoheno Exp $ | |
3 | +// $Id: pukiwiki.ini.php,v 1.143 2006/10/08 11:27:06 henoheno Exp $ | |
4 | 4 | // Copyright (C) |
5 | 5 | // 2002-2006 PukiWiki Developers Team |
6 | 6 | // 2001-2002 Originally written by yu-ji |
@@ -160,9 +160,6 @@ define('PKWK_ALLOW_JAVASCRIPT', 0); | ||
160 | 160 | // Enable Trackback |
161 | 161 | $trackback = 0; |
162 | 162 | |
163 | -// Show trackbacks with an another window (using JavaScript) | |
164 | -$trackback_javascript = 0; | |
165 | - | |
166 | 163 | ///////////////////////////////////////////////// |
167 | 164 | // Referer list feature |
168 | 165 | $referer = 0; |
@@ -651,8 +651,7 @@ function _navigator($key, $value = '', $javascript = ''){ | ||
651 | 651 | <?php _navigator('help') ?> |
652 | 652 | |
653 | 653 | <?php if ($trackback) { ?> |
654 | - <?php _navigator('trackback', $lang['trackback'] . '(' . tb_count($_page) . ')', | |
655 | - ($trackback_javascript == 1) ? 'onclick="OpenTrackback(this.href); return false"' : '') ?> | |
654 | + <?php _navigator('trackback', $lang['trackback'] . '(' . tb_count($_page) . ')') ?> | |
656 | 655 | <?php } ?> |
657 | 656 | <?php if ($referer) { ?> |
658 | 657 | <?php _navigator('refer') ?> |
@@ -1,10 +0,0 @@ | ||
1 | -// PukiWiki - Yet another WikiWikiWeb clone. | |
2 | -// $Id: trackback.js,v 1.5 2006/10/08 10:55:00 henoheno Exp $ | |
3 | -// Copyright (C) 2003 Originally written by upk | |
4 | -// License: GPL v2 or (at your option) any later version | |
5 | -// | |
6 | -// JavaScript for TrackBack feature | |
7 | - | |
8 | -function OpenTrackback (c) { | |
9 | - window.open(c,'trackback','width=480,height=480,scrollbars=yes,status=yes'); | |
10 | -} |