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

Размер файла: 4.16Kb
<?php
#-----------------------------------------------------#
#          ********* Wap-Motor *********              #
##  Design by Blackened # http://thrashzone.ru       ##
#                 ICQ   :  291229946                  #
#-----------------------------------------------------#
header('Content-type:text/html; charset=utf-8');
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>';
echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">';
echo '<!--theme by Blackened thrashzone.ru-->';
echo '<link rel="shortcut icon" href="'.$config ['home'] . '/themes/football/site/favicon.ico">';
echo '<link rel="alternate" type="application/rss+xml" title="RSS" href="'.$config ['home'] . '/pages/rss_news.php">';
echo '<title>%TITLE%</title>';
echo '<link rel="stylesheet" href="'.$config ['home'] . '/themes/football/football.css" type="text/css"></head><body><center>';
echo'<table><tr><td>';
echo '<div class="a" id="up"><a href="' . BASEDIR . 'index.php?' . SID . '"><img src="' . $config['home'] . '/themes/football/site/logo.png" alt="' . $config['title'] . '" /></a><br /><br />' . $config['logos'] . '<br /><br /></div>';
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 '<div>';
function myhtml($myhtml) {
$myhtml = str_replace("images/img/act1.gif","themes/football/img/act.png",$myhtml);
$myhtml = str_replace("images/img/act2.gif","themes/football/img/act.png",$myhtml);
$myhtml = str_replace("images/img/act3.gif","themes/football/img/act.png",$myhtml);
$myhtml = str_replace("images/img/act.gif","themes/football/img/act.png",$myhtml);
$myhtml = str_replace("images/img/act.png","themes/football/img/act.png",$myhtml);
$myhtml = str_replace("images/img/account.gif","themes/football/img/account.png",$myhtml);
$myhtml = str_replace("images/img/user.gif","themes/football/img/chel.png",$myhtml);
$myhtml = str_replace("images/img/dir.gif","themes/football/img/dir.png",$myhtml);
$myhtml = str_replace("images/img/files.gif","themes/football/img/file.png",$myhtml);
$myhtml = str_replace("images/img/forums.gif","themes/football/img/file.png",$myhtml);
$myhtml = str_replace("images/img/site.png","themes/football/img/site.png",$myhtml);
$myhtml = str_replace("images/img/menu.png","themes/football/img/site.png",$myhtml);
$myhtml = str_replace("images/img/opml.gif","themes/football/img/run.gif",$myhtml);
$myhtml = str_replace("images/img/run.png","themes/football/img/run.gif",$myhtml);
$myhtml = str_replace("images/img/games.png","themes/football/img/games.png",$myhtml);
$myhtml = str_replace("images/img/users.gif","themes/football/img/users.png",$myhtml);
$myhtml = str_replace("images/img/rss.gif","themes/football/img/rss.png",$myhtml);
return $myhtml; }
ob_start('myhtml');

echo '<div class="menu">';

if (is_user()) {
  echo '<img src="' . BASEDIR . 'images/img/user.gif" alt="user" /> <a href="' . BASEDIR . 'pages/anketa.php?' . SID . '">' . nickname($log) . '</a> &bull; ';

  if (is_admin()) {
    echo '<a href="' . ADMINDIR . 'index.php?' . SID . '">Панель</a> &bull; ';

    if (stats_spam() > 0) {
      echo '<a href="' . ADMINDIR . 'spam.php?' . SID . '"><span style="color:#ff0000">Спам!</span></a> &bull; ';
    } 

if (function_exists('stats_newchat')){ 
if ($udata['users_newchat']<stats_newchat()){
echo ' &bull; <a href="'.ADMINDIR.'chat.php?'.SID.'"><span style="color:#ff0000">Чат</span></a>';
}}
  } 

  echo '<a href="' . BASEDIR . 'pages/index.php?act=menu&amp;' . SID . '">Меню</a> &bull; ';
  echo '<a href="' . BASEDIR . 'input.php?act=exit&amp;' . SID . '">Выход</a>';
} else {
  echo '<img src="' . BASEDIR . 'images/img/closed.gif" alt="closed" /> <a href="' . BASEDIR . 'pages/login.php?' . SID . '">Авторизация</a> &bull; ';
  echo '<a href="' . BASEDIR . 'pages/registration.php?' . SID . '">Регистрация</a>';
} 

echo '</div><div class="site">';

include_once(BASEDIR . 'includes/note.php');

?>