/** * Functions of P_BLOG Access Analyzer * * $Id: functions.php, 2005/02/13 21:13:01 Exp $ */ function display_analyze_header() { global $cfg, $dtd, $page_title, $content_type, $cd, $style, $style_num, $alternate_link_rss, $subtitle; xhtml_header(); $analyzer_header = <<<EOD {$dtd} <head> <title>{$page_title}</title> {$content_type}<script type="text/javascript" src="{$cd}/include/scripts.js"></script> <link rel="stylesheet" type="text/css" href="{$cd}/styles/{$style_num}/{$style}.css" media="screen" /> <link rel="stylesheet" type="text/css" href="{$cd}/styles/_media/print.css" media="print" /> <link rel="start" href="{$cd}/index.php" title="Home" /> <link rel="search" href="{$cd}/search_plus.php" title="Search" /> <link rel="help" href="{$cd}/var/help/index.php" title="Help" /> {$alternate_link_rss}<link rev="made" href="mailto:webmaster@anti-spam.example.com" /> <script type="text/javascript" src="{$cd}/include/block_spam.php?js_email_link"></script> <meta name="robots" content="noindex,nofollow" /> </head> <body> <!-- Begin #wrapper --> <div id="wrapper"> <!-- Begin #header --> <div id="header"> <h1><a href="{$cd}/index.php" accesskey="t">{$cfg['blog_title']}</a></h1> {$subtitle}</div> <!-- End #header --> EOD; return $analyzer_header; }
public function open() { $menuHtml = ""; if ($this->_sysmenu) { $menuHtml .= $this->cabeceraMenu($this->_initialValue, $this->_dataPath, $this->_dataDomain); $menuHtml .= xhtml_notificaciones($this->_dataPath, $this->_dataDomain); } $html = xhtml_header($this->_name, $this->_dataPath, $this->_theme, $this->_javafiles, $this->_stylefiles); $html .= xhtml_body_open($this->_type, $this->_dataPath, $this->_dataDomain, $this->_bodyClass); $html .= $menuHtml; $html .= $this->buildNavigationbar(); return $html; }
function xhtml_output($mode) { global $cfg, $lang, $style_num, $style, $cd, $begin_time_str, $admin, $footer_content, $dtd, $page_title, $content_type, $alternate_link_rss, $subtitle, $contents_top, $contents, $admin_sess_menu, $content_menu, $search_form, $menu_middle, $archive_by_date, $category_menu, $file_type_menu, $recent_entries, $recent_comments, $recent_trackbacks, $css_switch, $rss_button, $rss2_button, $menu_bottom, $request_uri, $p_blog_path, $plugin; include_plugin($mode); xhtml_header(); xhtml_menu($mode); // Contents Top if ($request_uri == 'http://' . $_SERVER['HTTP_HOST'] . $cfg['root_path'] . 'index.php') { if (file_exists($cd . '/include/user_include/contents_top.inc.php')) { include_once $cd . '/include/user_include/contents_top.inc.php'; } else { $contents_top = ''; } } else { $contents_top = ''; } // Choose Footer if ($cfg['footer_type'] == 1) { $footer_content = display_footer($cd); } elseif ($cfg['footer_type'] == 2) { $footer_content = display_valid_footer($style_num, $style, $cd); } elseif ($cfg['footer_type'] == 3) { $footer_content = display_w3c_valid_footer($style_num, $style, $cd); } else { $footer_content = display_user_footer($admin = FALSE); } // Load Template require_once $cd . '/include/user_include/base_xhtml.inc.php'; /* if ($request_uri == $p_blog_path . 'var/vars-sample/index.php') { require_once $cd . '/include/user_include/vars_xhtml.inc.php'; } else { require_once $cd . '/include/user_include/base_xhtml.inc.php'; } */ }