View file themes/night_city/index.php

File size: 7.09Kb
<?php
#-----------------------------------------------------#
#          ********* RotorCMS *********               #
#              Made by  :  VANTUZ                     #
#               E-mail  :  [email protected]         #
#                 Site  :  http://pizdec.ru           #
#             WAP-Site  :  http://visavi.net          #
#                  ICQ  :  36-44-66                   #
#  Вы не имеете право вносить изменения в код скрипта #
#        для его дальнейшего распространения          #
#-----------------------------------------------------#
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'].'/themes/night_city/site/favicon.ico" type="image/x-icon" />';
echo '<link rel="stylesheet" href="'.$config['home'].'/themes/night_city/style.css" type="text/css" />';
echo '<link rel="alternate" href="'.$config['home'].'/news/rss.php" title="RSS News" type="application/rss+xml" />';
include_javascript();
echo '<meta name="keywords" content="%KEYWORDS%" />';
echo '<meta name="description" content="%DESCRIPTION%" />';
echo '<meta name="generator" content="RotorCMS '.$config['rotorversion'].'" />';
echo '</head><body>';
echo '<!--Themes by dekameron-->';

function amendment($myhtml) {
$myhtml = str_replace('images/img/act1.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/act2.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/act3.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/act.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/homepage.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/act_home.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/back.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/reload.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/exit.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/user.gif','themes/night_city/img/chel.png',$myhtml);
$myhtml = str_replace('images/img/rss.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/panel.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/mail.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/error.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/zip.gif','themes/night_city/img/file.png',$myhtml);
$myhtml = str_replace('images/img/download.gif','themes/night_city/img/downl.png',$myhtml);
$myhtml = str_replace('images/img/stat.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/money.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/person.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/site.png','themes/night_city/img/partn.png',$myhtml);
$myhtml = str_replace('images/img/setting.png','themes/night_city/img/partn.png',$myhtml);
$myhtml = str_replace('images/img/menu.png','themes/night_city/img/partn.png',$myhtml);
$myhtml = str_replace('images/img/search.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/online.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/faq.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/forums.gif','themes/night_city/img/file.png',$myhtml);
$myhtml = str_replace('images/img/files.gif','themes/night_city/img/files.png',$myhtml);
$myhtml = str_replace('images/img/dir.gif','themes/night_city/img/dir.png',$myhtml);
$myhtml = str_replace('images/img/open_dir.gif','themes/night_city/img/dir.png',$myhtml);
$myhtml = str_replace('images/img/top_dir.gif','themes/night_city/img/dir.png',$myhtml);
$myhtml = str_replace('images/img/new_dir.gif','themes/night_city/img/dir.png',$myhtml);
$myhtml = str_replace('images/img/new.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/new1.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/new2.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/new3.gif','themes/night_city/img/act.png',$myhtml);
$myhtml = str_replace('images/img/rating0.gif','themes/night_city/img/rating0.png',$myhtml);
$myhtml = str_replace('images/img/rating1.gif','themes/night_city/img/rating1.png',$myhtml);
$myhtml = str_replace('images/img/rating2.gif','themes/night_city/img/rating2.png',$myhtml);
$myhtml = str_replace('images/img/rating3.gif','themes/night_city/img/rating3.png',$myhtml);
$myhtml = str_replace('images/img/rating4.gif','themes/night_city/img/rating4.png',$myhtml);
$myhtml = str_replace('images/img/rating5.gif','themes/night_city/img/rating5.png',$myhtml);
$myhtml = str_replace('images/img/rating6.gif','themes/night_city/img/rating6.png',$myhtml);
$myhtml = str_replace('images/img/rating7.gif','themes/night_city/img/rating7.png',$myhtml);
$myhtml = str_replace('images/img/rating8.gif','themes/night_city/img/rating8.png',$myhtml);
$myhtml = str_replace('images/img/rating9.gif','themes/night_city/img/rating9.png',$myhtml);
$myhtml = str_replace('images/img/rating10.gif','themes/night_city/img/rating10.png',$myhtml);
return $myhtml; }
ob_start('amendment');
 
echo '<table cellpadding="0" cellspacing="0"><tr><td>';
echo '<div class="a" id="up"><br />';
echo '<a href="'.BASEDIR.'index.php?'.SID.'"><img src="'.$config['home'].'/themes/night_city/site/logo.png" alt="'.$config['title'].'" /></a><br /><br />'.$config['logos'].'<br /><br /></div>';

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

if (is_user()){
echo user_gender($log).profile($log).' &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 ($udata['users_newchat']<stats_newchat()){
echo '<a href="'.ADMINDIR.'chat.php?'.SID.'"><span style="color:#ff0000">Чат</span></a> &bull; ';
}}

echo '<a href="'.BASEDIR.'pages/index.php?act=menu&amp;'.SID.'">Меню</a> &bull; ';
echo '<a href="'.BASEDIR.'input.php?act=exit&amp;'.SID.'" onclick="return confirm(\'Вы действительно хотите выйти?\')">Выход</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>';

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

echo'</td></tr><tr><td class="main">';
echo '<div>';
?>