--- orig/pukiwiki-1.4.6plus-u2-eucjp/lib/plugin.php 2005-07-04 11:06:09.000000000 +0900 +++ test/lib/plugin.php 2007-05-31 16:05:47.000000000 +0900 @@ -9,6 +9,8 @@ // // Plugin related functions +require_once(LIB_DIR . 'recaptchalib.php'); + define('PKWK_PLUGIN_CALL_TIME_LIMIT', 768); // Set global variables for plugins @@ -103,6 +105,10 @@ if(do_plugin_init($name) === FALSE) die_message('Plugin init failed: ' . $name); + // Spam Filter + require_once(LIB_DIR . 'spam_filter.php'); + spam_filter($name); + $retvar = call_user_func('plugin_' . $name . '_action'); // Insert a hidden field, supports idenrtifying text enconding --- pukiwiki-1.4.6plus-u2-eucjp/lib/init.php 2006-06-06 13:56:29.000000000 +0900 +++ test/lib/init.php 2007-05-15 11:46:06.000000000 +0900 @@ -156,7 +156,7 @@ $user_agent = $matches = array(); $user_agent['agent'] = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; -unset(${$ua}, $_SERVER[$ua], $HTTP_SERVER_VARS[$ua], $ua); // safety +//unset(${$ua}, $_SERVER[$ua], $HTTP_SERVER_VARS[$ua], $ua); // safety foreach ($agents as $agent) { if (preg_match($agent['pattern'], $user_agent['agent'], $matches)) { @@ -166,7 +166,7 @@ break; } } -unset($agents, $matches); +//unset($agents, $matches); // Profile-related init and setting define('UA_PROFILE', isset($user_agent['profile']) ? $user_agent['profile'] : '');