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

Размер файла: 3.09Kb
<?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 '<title>%TITLE%</title>';
echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
echo '<link rel="shortcut icon" href="' . $config['home'] . '/favicon.ico" type="image/x-icon" />';
echo '<link rel="stylesheet" href="' . $config['home'] . '/themes/blusimp/style.css" type="text/css" />';
echo '<link rel="alternate" href="' . $config['home'] . '/news/rss.php" title="Rss подписка" type="application/rss+xml" />';
if (is_user() && !empty($udata['users_javascript'])) {
    include_javascript();
}
echo '<meta name="keywords" content="%KEYWORDS%" />';
echo '<meta name="description" content="%DESCRIPTION%" />';
echo '<meta name="generator" content="simpleso" />';

echo '</head><body>';
echo '<div class="a" id="up"><a href="' . BASEDIR . '?' . SID . '"><img src="' . $config['logotip'] . '" alt="' . $config['title'] . '" /></a><br />' . $config['logos'] . '</div>';
echo '<div class="table_blok"><table style="width:100%" cellspacing="0" cellpadding="0">';
if (is_user()) {
    echo '<tr><td style="width:25%;"><a class="bar_menu" href="/pages/user.php?uz=" title="Профиль"><font color="white">Профиль</font></a> </td>'; 
    if (is_admin()) {
        echo '<td style="width:25%;" ><a class="bar_menu" href="' . ADMINDIR . 'index.php?' . SID . '" title="Админ Панель"><font color="white">Панель</font></a> </td>';
        if (stats_spam() > 0) {
            echo '<td style="width:25%;" ><a class="bar_menu" href="' . ADMINDIR . 'spam.php?' . SID . '"><span style="color:#ff0000">Спам!</span></a> </td>';
        }
        if ($udata['users_newchat'] < stats_newchat()) {
            echo '<td style="width:25%;" ><a class="bar_menu"  href="' . ADMINDIR . 'chat.php?' . SID . '"><span style="color:#ff0000">Чат</span></a> </td>';
        }
    }
    echo '<td style="width:25%;" ><a class="bar_menu" href="' . BASEDIR . 'pages/index.php?act=menu&amp;' . SID . '" title="Кабинет"><font color="white">Меню</font></a> </td>';
    echo '<td style="width:25%;border-right:none; !important;"><a class="bar_menu" href="' . BASEDIR . 'input.php?act=exit&amp;' . SID . '" title="Выход" onclick="return confirm(\'Уже собрался уходить?\')"><font color="white">Выход</font></a></td></tr></table>';
} else {
    echo '<table style="width:100%" cellspacing="0" cellpadding="0"><tr><td style="width:50%;"><a class="bar_menu" href="' . BASEDIR . 'pages/login.php?' . SID . '"><img src="' . BASEDIR . 'images/img/closed.gif" alt="closed" /> Войти</a> </td>';
    echo '<td style="width:50%;border-right:none; !important;"><a class="bar_menu" href="' . BASEDIR . 'pages/registration.php?' . SID . '"><img src="' . BASEDIR . 'images/img/login-bar.png" alt="open" /> Register</a></td></tr></table>';
}
include_once(BASEDIR . 'includes/note.php');
echo '<div>';
?>