function wfAggregatorSetup() { // Magpie if (defined('MAGPIE_OUTPUT_ENCODING')) { if (stricmp(MAGPIE_OUTPUT_ENCODING, 'UTF-8')) { die('Must set MAGPIE_OUTPUT_ENCODING to "UTF-8".'); } } else { define('MAGPIE_OUTPUT_ENCODING', 'UTF-8'); } require_once 'rss_fetch.inc'; }
private function validate_method($class, $method) { $parameters = $this->get_call_definition($class, $method); if (ctype_lower(substr($method, 0, 1))) { return false; } if (strpos($method, '_') !== false) { return false; } if ($method == '__construct') { return false; } if ($this->METHOD == JsonServer::METHOD_ANY) { return true; } if ($this->METHOD == JsonServer::METHOD_REQUIRE) { $method = isset($this->method["{$class}/{$method}"]) ? $this->method["{$class}/{$method}"] : $this->_map("{$class}/{$method}"); return stricmp($method, $_SERVER['REQUEST_METHOD'] == 0); } return $this->METHOD == $_SERVER['REQUEST_METHOD']; }