View file XCMS_ver_1_0/system/head.php

File size: 1.88Kb
<?php
#######################################################
#  [Автор скрипта: ]                                 #
#  [Роман Гринько aka Nominal]                        #
#  [ICQ:  405-623-516] [E-Mail: [email protected]]    #
#######################################################
// дизайн by Shell
if($dir=='' or !$dir) {$dir='';}
include_once $dir.'system/func.php'; 
include ($dir."system/config.php");
if($title=='' or !isset($title)) { $title=$ptitle; }

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <title><?php echo $title; ?></title>
  <meta name="copyright" content="Powered by XCMS. CMS by Grinko Roman aka Nominal" />
  <link rel="shortcut icon" href="<?php echo $dir; ?>favicon.png" />
  <link rel="stylesheet" type="text/css" href="<?php echo $dir; ?>theme/default/style.css">
  </head>
  <body>
  
<?php 
include_once $dir.'system/config.php'; 
echo'<div class="logo"><a href="/"><img src="theme/default/logo.png" alt=""></a></div>';
?>

<div class="subbody">
<div class="buts">
<?php
if(is_user()) {
if($_SERVER['PHP_SELF']!=='/index.php')
{
echo '<a href="/">Главная</a>';
}


if(is_moder()) {
echo ' <a href="'.$dir.'pages/menu.php">Модерка</a>';
}
echo ' <a href="'.$dir.'pages/menu.php">Кабинет</a> <a href="'.$dir.'pages/exit.php">Выход</a>';

} else {

if($_SERVER['PHP_SELF']!=='/index.php')
{
echo '<a href="/">Главная</a>';
}
echo ' <a href="'.$dir.'pages/autoriz.php">Вход</a> <a href="'.$dir.'pages/reg.php?">Регистрация</a>';
}




if(is_user())
{
echo '<center><br>Привет, <b>'.$_SESSION['login'].'</b>!<br></center>';}
else 
{
echo '<center><br>Добро пожаловать, Гость!<br></center>';
}
stat_hosts();
?>


</div>