View file themes/web/index.php

File size: 11.79Kb
<?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 '<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/web/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>';
echo '<!--Themes by TurikUs-->';

function htmltoweb($skinweb) { 
$skinweb = str_replace('<img src="'.BASEDIR.'images/img/site.png" alt="Мое меню" /> <b>Мое меню</b><br /><br />','<div class="divb">Мое меню</div>',$skinweb);
$skinweb = str_replace('<img src="'.BASEDIR.'images/img/info.png" alt="Статистика сайта" /> <b>Статистика сайта</b><br /><br />','<div class="divb">Статистика сайта</div>',$skinweb);
$skinweb = str_replace('<img src="'.BASEDIR.'images/img/run.png" alt="Жизнь сайта" /> <b>Жизнь сайта</b><br /><br />','<div class="divb">Жизнь сайта</div>',$skinweb);
$skinweb = str_replace('<img src="'.BASEDIR.'images/img/site.png" alt="Партнеры и друзья" /> <b>Партнеры и друзья</b><br /><br />','<div class="divb">Партнеры и друзья</div>',$skinweb);
$skinweb = str_replace('<img src="'.BASEDIR.'images/img/services.png" alt="Wap-мастеру" /> <b>Wap-мастеру</b><br /><br />','<div class="divb">Wap-мастеру</div>',$skinweb);
$skinweb = str_replace('<img src="'.BASEDIR.'images/img/games.png" alt="Игры и развлечения" /> <b>Игры и развлечения</b><br /><br />','<div class="divb">Игры и развлечения</div>',$skinweb);
$skinweb = str_replace('<img src="'.BASEDIR.'images/img/info.png" alt="Активность" /> <b>Активность</b><br /><br />','<div class="divb">Активность</div>',$skinweb);
return $skinweb; 
}

ob_start('htmltoweb');


echo '<div id="art-page-background-simple-gradient">
        <div id="art-page-background-gradient"></div>
    </div>
    <div id="art-page-background-glare">
        <div id="art-page-background-glare-image"></div>
    </div>
    <div id="art-main">
        <div class="art-Sheet">
            <div class="art-Sheet-tl"></div>
            <div class="art-Sheet-tr"></div>
            <div class="art-Sheet-bl"></div>
            <div class="art-Sheet-br"></div>
            <div class="art-Sheet-tc"></div>
            <div class="art-Sheet-bc"></div>
            <div class="art-Sheet-cl"></div>
            <div class="art-Sheet-cr"></div>
            <div class="art-Sheet-cc"></div>
            <div class="art-Sheet-body">
                <div class="art-nav">
                	<div class="l"></div>
                	<div class="r"></div>
                	<ul class="art-menu">
                		<li><a href="' . $config['home'] . '/?' . SID . '"><span class="l"></span><span class="r"></span><span class="t">Главная</span></a></li>
                		<li><a href="' . $config['home'] . '/forum/?' . SID . '"><span class="l"></span><span class="r"></span><span class="t">Форум</span></a>
                           <ul>
                                 <li><a href="' . $config['home'] . '/forum/new.php?act=themes&amp;' . SID . '">Новые темы</a></li>
                                 <li><a href="' . $config['home'] . '/forum/new.php?act=posts&amp;' . SID . '">Новые сообщения</a></li>
                		   </ul></li>



                		<li><a href="' . $config['home'] . '/book/?' . SID . '"><span class="l"></span><span class="r"></span><span class="t">Гостевая</span></a></li>

                        <li><a href="' . $config['home'] . '/load/?' . SID . '"><span class="l"></span><span class="r"></span><span class="t">Файлы</span></a>
                           <ul>
                                 <li><a href="' . $config['home'] . '/load/new.php?act=files&amp;' . SID . '">Новые файлы</a></li>
                                 <li><a href="' . $config['home'] . '/load/new.php?act=comments&amp;' . SID . '">Новые комментарии</a></li>
                		   </ul></li>

                        <li><a href="' . $config['home'] . '/blog/?' . SID . '"><span class="l"></span><span class="r"></span><span class="t">Блоги</span></a>
                           <ul>
                                 <li><a href="' . $config['home'] . '/blog/new.php?act=blogs&amp;' . SID . '">Новые статьи</a></li>
                                 <li><a href="' . $config['home'] . '/blog/new.php?act=comments&amp;' . SID . '">Новые комментарии</a></li>
                		   </ul></li>


                        <li><a href="' . $config['home'] . '/gallery/?' . SID . '"><span class="l"></span><span class="r"></span><span class="t">Галерея</span></a>
                           <ul>
                                 <li><a href="' . $config['home'] . '/gallery/top.php?' . SID . '">Топ фото</a></li>
                                 <li><a href="' . $config['home'] . '/gallery/index.php?act=gallery&amp;' . SID . '">Все альбомы</a></li>
                		   </ul></li>


                		<li><a href="#"><span class="l"></span><span class="r"></span><span class="t">Актив сайта</span></a>
                           <ul>
                                 <li><a href="' . $config['home'] . '/pages/adminlist.php?' . SID . '">Администрация</a></li>
                                 <li><a href="' . $config['home'] . '/pages/userlist.php?' . SID . '">Пользователи</a></li>
                		   </ul> </li>';
if (!is_user()) {
  echo'<li><a href="' . $config['home'] . '//pages/registration.php?' . SID . '" ><span class="l"></span><span class="r"></span><span class="t">Регистрация</span></a></li>';
 } else {
  echo '<li><a href="' . $config['home'] . '/input.php?act=exit&amp;' . SID . '" ><span class="l"></span><span class="r"></span><span class="t">Выход</span></a></li>';
}

echo '</ul></div>';
echo '                <div class="art-contentLayout">
                    <div class="art-sidebar1">
                        <div class="art-Block">
                            <div class="art-Block-tl"></div>
                            <div class="art-Block-tr"></div>
                            <div class="art-Block-bl"></div>
                            <div class="art-Block-br"></div>
                            <div class="art-Block-tc"></div>
                            <div class="art-Block-bc"></div>
                            <div class="art-Block-cl"></div>
                            <div class="art-Block-cr"></div>
                            <div class="art-Block-cc"></div>
                            <div class="art-Block-body">
                                <div class="art-BlockContent">
                                    <div class="art-BlockContent-body">
                                        <div>';


if (is_user()) {

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

} else {

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

echo '<div class="divb">Авторизация</div>';

  echo'<form method="post" action="' . BASEDIR . 'input.php?' . SID . '">';
  echo 'Логин:<br /><input name="login" value="' . $cookname . '" /><br />';
  echo 'Пароль:<br /><input name="pass" type="password" /><br />';

if ($config['cookies']==1){
echo 'Запомнить меня:';
echo '<input name="cookietrue" type="checkbox" value="1" checked="checked" /><br />';
}

echo '<input value="Войти" type="submit" /></form>';

echo '<a href="'.BASEDIR.'pages/registration.php?'.SID.'">Регистрация</a><br />';
echo '<a href="'.BASEDIR.'mail/lostpassword.php?'.SID.'">Забыли пароль?</a>';
} 


echo '</div>
                                    </div>
                                </div>
                            </div>
                        </div>';



echo '<div class="art-Block">
                            <div class="art-Block-tl"></div>
                            <div class="art-Block-tr"></div>
                            <div class="art-Block-bl"></div>
                            <div class="art-Block-br"></div>
                            <div class="art-Block-tc"></div>
                            <div class="art-Block-bc"></div>
                            <div class="art-Block-cl"></div>
                            <div class="art-Block-cr"></div>
                            <div class="art-Block-cc"></div>
                            <div class="art-Block-body">
                                <div class="art-BlockContent">
                                    <div class="art-BlockContent-body">
                                        <div>';
echo '<div class="divb">Календарь</div>';
include (BASEDIR . 'includes/calendar.php');
echo '</div>
                                    </div>
                                </div>
                            </div>
                        </div>';



echo '<div class="art-Block">
                            <div class="art-Block-body">
<div class="art-BlockContent">


                                </div>
                            </div>
                        </div>
                    </div>';

echo '<div class="art-content">
                        <div class="art-Post">
                            <div class="art-Post-tl"></div>
                            <div class="art-Post-tr"></div>
                            <div class="art-Post-bl"></div>
                            <div class="art-Post-br"></div>
                            <div class="art-Post-tc"></div>
                            <div class="art-Post-bc"></div>
                            <div class="art-Post-cl"></div>
                            <div class="art-Post-cr"></div>
                            <div class="art-Post-cc"></div>
                            <div class="art-Post-body">
                        <div class="art-Post-inner">';

echo '<div class="art-PostMetadataHeader">';
include_once(BASEDIR . 'includes/note.php');
echo '</div>';

echo '
                                <h2 class="art-PostHeaderIcon-wrapper">
                                    <img src="' . $config['home'] . '/themes/web/img/PostHeaderIcon.png" width="29" height="29" alt="PostHeaderIcon" />
                                    <span class="art-PostHeader">' . $config['title'] . '</span>
                                </h2>

                            <div class="art-PostContent">';



echo '<div>';

?>