Просмотр файла BlueWater/index.php

Размер файла: 3.11Kb
<?php
header("Content-type:text/html; charset=utf-8");
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru"><head>';
echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
echo '<title>%TITLE%</title>';
echo '<link rel="shortcut icon" href="' . $config['home'] . '/favicon.ico" type="image/x-icon" />';
echo '<link rel="stylesheet" href="' . $config['home'] . '/themes/BlueWater/images/style.css" type="text/css" media="screen" />';
echo '<link rel="alternate" href="' . $config['home'] . '/news/rss.php" title="RSS News" type="application/rss+xml" />';
echo '<meta name="keywords" content="%KEYWORDS%" />';
echo '<meta name="description" content="%DESCRIPTION%" />';
echo '<meta name="generator" content="RotorCMS" />';
echo '</head><body>';

function htmltoweb($skinweb) { 
$skinweb = preg_replace('#\<div class="b">(.*?)\</div>#si', '<div class="post-footer align-left">\1</div>',$skinweb);
$skinweb = str_replace('<img src="'.BASEDIR.'images/img/act.png" alt="image" />','',$skinweb);
$skinweb = str_replace('<hr />','<br>',$skinweb);
return $skinweb; 
}


ob_start('htmltoweb');

echo '<div id="wrap">
		
	<!--header -->
	<div id="header">			
				
		<h1 id="logo-text"><a href="' . $config['home'] . '/?' . SID . '">KomWap.Ru</a></h1>		
		<p id="slogan">трудных вопросов не бывает...</p>		
			
		<div id="header-links">
			<p><div style="text-align:left">';
            
if (is_user()){

if (is_admin(array(101,102,103,105))){
echo '<a href="'.ADMINDIR.'index.php?'.SID.'">Админ-панель</a> | ';
}

echo '<a href="'.BASEDIR.'pages/index.php?act=menu&'.SID.'">Мое меню</a>';

} else {
echo '<a href="'.BASEDIR.'pages/login.php?'.SID.'">Авторизация</a> | ';
echo '<a href="'.BASEDIR.'pages/registration.php?'.SID.'">Регистрация</a>';
}
echo '</p>		
		</div>';
include_once(BASEDIR . 'includes/note.php');
echo '</div>		
						
	</div>
		
	<!-- navigation -->	
	<div  id="menu">
		<ul>
			<li><a href="' . $config['home'] . '/?' . SID . '">Главная</a></li>
			<li><a href="' . $config['home'] . '/forum/?'. SID . '">Форум</a></li>
			<li><a href="' . $config['home'] . '/load/?' . SID . '">Загрузки</a></li>
			<li><a href="' . $config['home'] . '/blog/?' . SID . '">Блоги</a></li>
			<li><a href="' . $config['home'] . '/pages/adminlist.php?' . SID . '">Администрация</a></li>
			<li><a href="' . $config['home'] . '/pages/rules.php?' . SID . '">Правила сайта</a></li>		
		</ul>
	</div>
			
	<!-- content-wrap starts here -->
	<div id="content-wrap">
    
    <div id="sidebar">
        <ul class="sidemenu">';
			
if (is_user()) {

  include (DATADIR . 'main/menu.dat');

} else {

if (isset($_COOKIE['cookname'])){$cookname = check($_COOKIE['cookname']);} else {$cookname = "";}

include (DATADIR . 'main/recent.dat');
} 

echo '</ul></div>
   
 		<div id="main">
        <p><div class="body_center">';
?>