XmlElement('rss', array('version' => "2.0")); // not used. no namespaces should be used. $this->_modules = array( //Standards 'content' => "http://purl.org/rss/1.0/modules/content/", 'dc' => "http://purl.org/dc/elements/1.1/", 'sy' => "http://purl.org/rss/1.0/modules/syndication/", //Proposed 'wiki' => "http://purl.org/rss/1.0/modules/wiki/", 'ag' => "http://purl.org/rss/1.0/modules/aggregation/", 'annotate' => "http://purl.org/rss/1.0/modules/annotate/", 'audio' => "http://media.tangent.org/rss/1.0/", 'cp' => "http://my.theinfo.org/changed/1.0/rss/", 'rss091' => "http://purl.org/rss/1.0/modules/rss091/", 'slash' => "http://purl.org/rss/1.0/modules/slash/", 'taxo' => "http://purl.org/rss/1.0/modules/taxonomy/", 'thr' => "http://purl.org/rss/1.0/modules/threading/" ); $this->_uris_seen = array(); $this->_items = array(); } // Required args: (applying defaults) // 'domain', 'port', 'path', 'registerProcedure', 'protocol' // Optional args: // none function cloud($properties) { // xml-rpc or soap or http-post if (!isset($properties['protocol'])) $properties['protocol'] = 'xml-rpc'; if (!isset($properties['registerProcedure'])) $properties['registerProcedure'] = 'rssPleaseNotify'; if (!isset($properties['path'])) $properties['path'] = DATA_PATH . '/RPC2.php'; if (!isset($properties['port'])) $properties['port'] = !SERVER_PORT ? '80' : (SERVER_PROTOCOL == 'https' ? '443' : '80'); if (!isset($properties['domain'])) $properties['domain'] = SERVER_NAME; $this->_cloud = $this->__node('cloud', $properties); } /** * Write output to HTTP client. */ function __spew() { header("Content-Type: application/rss+xml; charset=" . RSS_ENCODING); echo('<' . '?xml version="1.0" encoding="' . RSS_ENCODING . '"?' . ">\n"); //printf("\n", PHPWIKI_VERSION); //RSS2 really is 0.92 echo '', "\n"; echo "\n"; echo " %HTMLlat1;]>\n"; $this->printXML(); } } // Local Variables: // mode: php // tab-width: 8 // c-basic-offset: 4 // c-hanging-comment-ender-p: nil // indent-tabs-mode: nil // End: