OSDN Git Service

Correct header comments only
[pukiwiki/pukiwiki_sandbox.git] / spam / spam.php
index eaf5952..c8a77ed 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-// $Id: spam.php,v 1.216 2009/01/02 10:44:53 henoheno Exp $
+// $Id: spam.php,v 1.218 2009/01/04 03:31:09 henoheno Exp $
 // Copyright (C) 2006-2007 PukiWiki Developers Team
 // License: GPL v2 or (at your option) any later version
 //
@@ -7,11 +7,16 @@
 //
 // (PHP 4 >= 4.3.0): preg_match_all(PREG_OFFSET_CAPTURE): $method['uri_XXX'] related feature
 
+
+if (! defined('LIB_DIR'))   define('LIB_DIR', './');
+require(LIB_DIR . 'spam_pickup.php');
+require(LIB_DIR . 'spam_util.php');
+
 if (! defined('SPAM_INI_FILE'))   define('SPAM_INI_FILE',   'spam.ini.php');
 
 
 // ---------------------
-// Part One : Checker
+// Regex
 
 // Rough implementation of globbing
 //
@@ -82,6 +87,10 @@ function generate_host_regex($string = '', $divider = '/')
        return implode('', $part);
 }
 
+
+// ---------------------
+// Load
+
 // Load SPAM_INI_FILE and return parsed one
 function get_blocklist($list = '')
 {