xml(); return; } $this->MultiSiteData(); echo '
'; echo '
'; echo \gp\tool::Link('Special_Site_Map','XML','xml'); echo '
'; echo '

'; echo \gp\tool\Output::ReturnText('site_map'); echo '

'; \gp\tool\Output::GetFullMenu(); echo '
'; } function MultiSiteData(){ global $config; $this->page->head .= ''; if( defined('multi_site_unique') ){ $this->page->head .= ''; } if( defined('service_provider_id') && is_numeric(service_provider_id) ){ $this->page->head .= ''; } } /* http://www.example.com/ 2005-01-01 monthly 0.8 */ function xml(){ global $gp_menu, $gp_titles; header('Content-Type: text/xml; charset=UTF-8'); echo ''; echo ''; foreach($gp_menu as $key => $info){ $title = \gp\tool::IndexToTitle($key); $gptitle = $gp_titles[$key]; if( isset($info['level']) && !isset( $gptitle['vis']) && !( isset($gptitle['rel']) && strpos($gptitle['rel'], 'noindex') !== false ) ) { echo "\n"; echo ''; echo ''; echo isset($info['url']) ? $info['url'] : \gp\tool::AbsoluteUrl($title,'',true,'',true); echo ''; echo ''; } } echo ''; die(); } }