docTitle = $title; $this -> active = $active; $this -> cidfid = $cidfid; $this -> onLoadAction = $onLoadAction; $this -> options = $options; $this -> rawTitle = $title; $this -> extraHeaders = array(); $this -> docTitle = makeTitle($title); if (getConfig("rss.output.titleunreadcnt") && is_array($cidfid) && ($uc = getUnreadCount($cidfid['cid'], $cidfid['fid']))) { $this->docTitle .= " ($uc ".__('unread').")"; } if ($active == 1 && (MINUTE * getConfig('rss.config.refreshafter')) >= (40 * MINUTE)) { $this->redirectUrl = guessTransportProto().$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']); if (substr($this->redirectUrl, -1) != "/") { $this->redirectUrl .= "/"; } $this->redirectUrl .= "update.php"; $this->redirectTimeout = MINUTE * getConfig('rss.config.refreshafter'); } $this -> links = array(); $this -> links[] = array('start','Home',getPath()); $this -> links[] = array('search','Search',getPath() ."search.php"); $this -> links[] = array('tags','Tags',getPath(). (getConfig('rss.output.usemodrewrite') ? "tag/" : "tags.php?alltags")); if ($links != NULL) { //var_dump($links); foreach ($links as $rel => $link) { $this -> links[] = array($rel,$link['title'],$link['href']); } } $this -> javascriptFiles[] = getPath()."ajax.php?js"; $this -> javascriptFiles[] = getPath()."extlib/md5.js"; if (getConfig('rss.output.channelcollapse')) { $this -> javascriptFiles[] = getPath()."extlib/fcollapse.js"; } $GLOBALS['rss'] -> sideMenu = new SideMenu(); $GLOBALS['rss'] -> sideMenu -> addMenu(__('Feeds'),'FeedList' , "_side('FeedList')"); $GLOBALS['rss'] -> sideMenu -> addMenu(__('Categories'), 'CatList', "_side('CatList')"); $GLOBALS['rss'] -> sideMenu -> addMenu(__('Tags'), 'TagList', "_side('TagList')"); } function appendHeader($hdr) { $this ->extraHeaders[] = $hdr; } function preRender() { _pf('Header preRender()'); if (!($this->options & HDR_NO_CACHECONTROL) && getConfig('rss.output.cachecontrol')) { $etag = getETag(); $hdrs = rss_getallheaders(); if (array_key_exists('If-None-Match', $hdrs) && $hdrs['If-None-Match'] == $etag) { header("HTTP/1.1 304 Not Modified"); flush(); exit (); } else { header('Last-Modified: '.gmstrftime("%a, %d %b %Y %T %Z", getLastModif())); header("ETag: $etag"); } } if (count($this -> extraHeaders)) { foreach ($this -> extraHeaders as $hdr) { header($hdr); } } rss_plugin_hook('rss.plugins.bodystart', null); } function render() { $this -> javascriptFiles = rss_plugin_hook('rss.plugins.javascript', $this -> javascriptFiles); $GLOBALS['rss'] -> header = &$this; rss_require(RSS::getTemplateFile("header.php")); if ($this->extraHTML) { echo $this -> extraHTML; } } } ?>