OSDN Git Service

Functions to functions master
authorhenoheno <henoheno>
Tue, 25 Jan 2011 13:16:35 +0000 (22:16 +0900)
committerhenoheno <henoheno>
Tue, 25 Jan 2011 13:16:35 +0000 (22:16 +0900)
spam/checker.php
spam/spam_util.php

index 450276c..eb139ff 100644 (file)
@@ -1,11 +1,12 @@
 <?php
-// $Id: checker.php,v 1.8 2011/01/24 14:46:45 henoheno Exp $
+// $Id: checker.php,v 1.9 2011/01/25 13:16:35 henoheno Exp $
 // Concept-work of spam-uri metrics
 // Copyright (C) 2006-2007 PukiWiki Developers Team
 // License: GPL v2 or (at your option) any later version
 
 error_reporting(E_ALL); // Debug purpose
 
+if (! defined('CONTENT_CHARSET')) define('CONTENT_CHARSET', 'ISO-8859-1');
 require('spam.php');
 
 // Recursive array_map()
index 3360131..22ae474 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-// $Id: spam_util.php,v 1.4 2011/01/24 14:51:50 henoheno Exp $
+// $Id: spam_util.php,v 1.5 2011/01/25 13:16:35 henoheno Exp $
 // Copyright (C) 2006-2009, 2011 PukiWiki Developers Team
 // License: GPL v2 or (at your option) any later version
 //
@@ -41,7 +41,7 @@ function preg_grep_invert($pattern = '//', $input = array())
 
 if (! function_exists('htmlsc')) {
        // Interface with PukiWiki
-       if (! defined('CONTENT_CHARSET')) define('CONTENT_CHARSET', 'ISO-8859-1');
+       //if (! defined('CONTENT_CHARSET')) define('CONTENT_CHARSET', 'ISO-8859-1');
 
        // Sugar with default settings
        function htmlsc($string = '', $flags = ENT_QUOTES, $charset = CONTENT_CHARSET)