Revision | 26564dde72fae6a939e74c2eff3f13e3dba37994 (tree) |
---|---|
Time | 2016-11-18 01:06:57 |
Author | ![]() |
Commiter | umorigu |
BugTrack/2389 Remove DTD selecting function
@@ -1,6 +1,9 @@ | ||
1 | 1 | <?php |
2 | 2 | // PukiWiki - Yet another WikiWikiWeb clone. |
3 | -// $Id: color.inc.php,v 1.25 2011/01/25 15:01:01 henoheno Exp $ | |
3 | +// color.inc.php | |
4 | +// Copyright | |
5 | +// 2003-2016 PukiWiki Development Team | |
6 | +// License: GPL v2 or (at your option) any later version | |
4 | 7 | // |
5 | 8 | // Text color plugin |
6 | 9 |
@@ -14,8 +17,6 @@ define('PLUGIN_COLOR_REGEX', '/^(#[0-9a-f]{3}|#[0-9a-f]{6}|[a-z-]+)$/i'); | ||
14 | 17 | |
15 | 18 | function plugin_color_inline() |
16 | 19 | { |
17 | - global $pkwk_dtd; | |
18 | - | |
19 | 20 | $args = func_get_args(); |
20 | 21 | $text = strip_autolink(array_pop($args)); // Already htmlsc(text) |
21 | 22 |
@@ -34,7 +35,7 @@ function plugin_color_inline() | ||
34 | 35 | return '&color():Invalid color: ' . htmlsc($col) . ';'; |
35 | 36 | } |
36 | 37 | |
37 | - if (PLUGIN_COLOR_ALLOW_CSS === TRUE || ! isset($pkwk_dtd) || $pkwk_dtd == PKWK_DTD_XHTML_1_1) { | |
38 | + if (PLUGIN_COLOR_ALLOW_CSS) { | |
38 | 39 | $delimiter = ''; |
39 | 40 | if ($color != '' && $bgcolor != '') $delimiter = '; '; |
40 | 41 | if ($color != '') $color = 'color:' . $color; |
@@ -46,4 +47,3 @@ function plugin_color_inline() | ||
46 | 47 | return '<font color="' . $color . '">' . $text . '</font>'; |
47 | 48 | } |
48 | 49 | } |
49 | -?> |
@@ -1,7 +1,9 @@ | ||
1 | 1 | <?php |
2 | 2 | // PukiWiki - Yet another WikiWikiWeb clone |
3 | -// | |
4 | -// $Id: paint.inc.php,v 1.20 2011/01/25 15:01:01 henoheno Exp $ | |
3 | +// paint.inc.php | |
4 | +// Copyright | |
5 | +// 2002-2016 PukiWiki Development Team | |
6 | +// License: GPL v2 or (at your option) any later version | |
5 | 7 | // |
6 | 8 | // Paint plugin |
7 | 9 |
@@ -38,7 +40,7 @@ define('PAINT_FORMAT_NOMSG',"\x08NAME\x08 \x08NOW\x08"); | ||
38 | 40 | |
39 | 41 | function plugin_paint_action() |
40 | 42 | { |
41 | - global $script, $vars, $pkwk_dtd, $_paint_messages; | |
43 | + global $script, $vars, $_paint_messages; | |
42 | 44 | |
43 | 45 | if (PKWK_READONLY) die_message('PKWK_READONLY prohibits editing'); |
44 | 46 |
@@ -143,9 +145,6 @@ function plugin_paint_action() | ||
143 | 145 | </applet> |
144 | 146 | </div> |
145 | 147 | EOD; |
146 | - // XHTML 1.0 Transitional | |
147 | - if (! isset($pkwk_dtd) || $pkwk_dtd == PKWK_DTD_XHTML_1_1) | |
148 | - $pkwk_dtd = PKWK_DTD_XHTML_1_0_TRANSITIONAL; | |
149 | 148 | } |
150 | 149 | return $retval; |
151 | 150 | } |
@@ -266,4 +265,3 @@ function paint_insert_ref($filename) | ||
266 | 265 | |
267 | 266 | return $ret; |
268 | 267 | } |
269 | - |