GetRedirectMessage(); $message = addslashes($this->htmlspecialchars_ent($message)); /**#@-*/ /**#@+ * init output variables. */ $onload = ('' != $message) ? " onload=\"alert('".$message."');\" " : ''; $doctitle = sprintf(GENERIC_DOCTITLE, $this->htmlspecialchars_ent($this->GetWakkaName(), ENT_NOQUOTES), $this->htmlspecialchars_ent($this->PageTitle(), ENT_NOQUOTES)); #$site_base = $this->GetConfigValue('base_url'); #$site_base = $this->base_url; // base_url: no longer needed with StaticHref() // Init Cascading Style Sheets (CSS) $href_main_stylesheet = $this->StaticHref('css/'.$this->GetConfigValue('stylesheet')); //$href_main_stylesheet = $this->StaticHref('css/'.$this->GetSkin()); //FUCK $href_comment_stylesheet = $this->StaticHref('css/'.$this->GetConfigValue('comment_stylesheet')); $href_print_stylesheet = $this->StaticHref('css/print.css'); // Init FavIcon $href_favicon = $this->StaticHref('images/favicon.ico'); // Init Metadata: robots, keywords, description $extra_meta = ''; $extra_meta .= ' '."\n"; if ($this->GetHandler() != 'show' || $this->page['latest'] == 'N' || $this->page['tag'] == 'SandBox') { $extra_meta .= ' '."\n"; } if ('' != ($meta_keywords = $this->htmlspecialchars_ent($this->GetConfigValue('meta_keywords')))) { $extra_meta .= ' '."\n"; } if ('' != ($meta_description = $this->htmlspecialchars_ent($this->GetConfigValue('meta_description')))) { $extra_meta .= ' '."\n"; } // Init pagename $pagetag = $this->GetPageTag(); $pagetag_disp = $this->htmlspecialchars_ent($pagetag); // Init RSS autodiscovery $rss_links = ''; if ($this->GetHandler() != 'edit' && $this->GetConfigValue('enable_rss_autodiscovery') != 0) // @@@ { $wikiname = $this->htmlspecialchars_ent($this->GetWakkaName()); // default ENT_COMPAT: double quotes need to be escaped here: we use title attribute in double quotes! $rss_links .= ' '."\n"; $rss_links .= ' '."\n"; // @@@ pagetag needed for Href?? } // Init UniversalEditButton (http://universaleditbutton.org/Universal_Edit_Button) $ueb = ''; if ($this->GetHandler() != 'edit' && $this->HasAccess("write", $pagetag)) { $ueb .= "\t".''."\n"; } // Init Page title + backlinks-link $homepage_url = $this->href('', $this->GetConfigValue('root_page'), ''); $backlinks_url = $this->href('backlinks', '', ''); $backlinks_title = sprintf(WIKKA_BACKLINKS_LINK_TITLE, $pagetag_disp); $header_heading = ''.$this->GetConfigValue('wakka_name').' : '.''.$pagetag_disp.''; // Init Navigation $header_navlinks = ''; #if ($user = $this->GetUser()) if ($this->existsUser()) { $header_navlinks .= $this->GetConfigValue('logged_in_navigation_links') ? $this->Format($this->GetConfigValue('logged_in_navigation_links')).' :: ' : ''; #$header_navlinks .= sprintf(YOU_ARE, $this->FormatUser($user['name'])); $header_navlinks .= sprintf(YOU_ARE, $this->FormatUser($this->reg_username)); } else { $header_navlinks .= $this->GetConfigValue('navigation_links') ? $this->Format($this->GetConfigValue('navigation_links')) : ''; // optionally display user's IP address here } /**#@-*/ ?>