Revisão | 6ce06a0f0de067ad24ec7b01781ce8f15cede441 (tree) |
---|---|
Hora | 2011-01-25 22:16:35 |
Autor | henoheno <henoheno> |
Commiter | henoheno |
Functions to functions
@@ -1,11 +1,12 @@ | ||
1 | 1 | <?php |
2 | -// $Id: checker.php,v 1.8 2011/01/24 14:46:45 henoheno Exp $ | |
2 | +// $Id: checker.php,v 1.9 2011/01/25 13:16:35 henoheno Exp $ | |
3 | 3 | // Concept-work of spam-uri metrics |
4 | 4 | // Copyright (C) 2006-2007 PukiWiki Developers Team |
5 | 5 | // License: GPL v2 or (at your option) any later version |
6 | 6 | |
7 | 7 | error_reporting(E_ALL); // Debug purpose |
8 | 8 | |
9 | +if (! defined('CONTENT_CHARSET')) define('CONTENT_CHARSET', 'ISO-8859-1'); | |
9 | 10 | require('spam.php'); |
10 | 11 | |
11 | 12 | // Recursive array_map() |
@@ -1,5 +1,5 @@ | ||
1 | 1 | <?php |
2 | -// $Id: spam_util.php,v 1.4 2011/01/24 14:51:50 henoheno Exp $ | |
2 | +// $Id: spam_util.php,v 1.5 2011/01/25 13:16:35 henoheno Exp $ | |
3 | 3 | // Copyright (C) 2006-2009, 2011 PukiWiki Developers Team |
4 | 4 | // License: GPL v2 or (at your option) any later version |
5 | 5 | // |
@@ -41,7 +41,7 @@ function preg_grep_invert($pattern = '//', $input = array()) | ||
41 | 41 | |
42 | 42 | if (! function_exists('htmlsc')) { |
43 | 43 | // Interface with PukiWiki |
44 | - if (! defined('CONTENT_CHARSET')) define('CONTENT_CHARSET', 'ISO-8859-1'); | |
44 | + //if (! defined('CONTENT_CHARSET')) define('CONTENT_CHARSET', 'ISO-8859-1'); | |
45 | 45 | |
46 | 46 | // Sugar with default settings |
47 | 47 | function htmlsc($string = '', $flags = ENT_QUOTES, $charset = CONTENT_CHARSET) |