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

Размер файла: 14.51Kb
<?php
header("Content-type:text/html; charset=utf-8");
?>
<!DOCTYPE html>
<html data-nav-highlight-class-name="highlight-global-nav-home">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<head>
<title>%TITLE%</title>
<!--
  ###########################################
  # RipDiz by Godzilla http://basaru.net.ru #
  ###########################################
-->
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <!--- twit --->
<meta charset="utf-8"> <!--- twit --->
<link rel="shortcut icon" href="<?=$config['home']?>/favicon.ico" type="image/x-icon" />
	<link rel="image_src" href="<?=$config['home']?>/images/img/icon.png" />
	<link rel="alternate" href="<?=$config['home']?>/news/rss.php" title="RSS News" type="application/rss+xml" />
	<?if (is_user() && !empty($udata['users_javascript'])){
		include_javascript();
	}?>
	<meta name="keywords" content="%KEYWORDS%" />
	<meta name="description" content="%DESCRIPTION%" />
<link rel="stylesheet" href="<?=$config['home']?>/themes/Twit/index_files/t1_core1.css" type="text/css" media="screen"> <!--- twit --->
<meta name="viewport" content="width=device-width,initial-scale=1" />

<style id="user-style-Lexsusx" class="js-user-style"><!--- twit --->
a,
.btn-link,
.pretty-link:hover s,
.pretty-link:hover b,
/* Account Group */
.metadata a:hover,
.account-group:hover .fullname,
.stats a:hover,
.stats a:hover strong,
.profile-modal-header .fullname a:hover,
.profile-modal-header .username a:hover,
.story-article:hover .metadata,
.find-friends-sources li:hover .source,
.stream-item a:hover .fullname,
.stream-item .view-all-supplements:hover,
.tweet .time a:hover,
.tweet-actions a,
.tweet .details.with-icn b,
.stream-item:hover .original-tweet .expand-action-wrapper,
.opened-tweet.original-tweet  .expand-action-wrapper,
.stream-item:hover .original-tweet .details b,
.stream-item.open .original-tweet .details b,
.simple-tweet:hover .details b,
.simple-tweet.open .details b,
.simple-tweet:hover .details .expand-action-wrapper,
.simple-tweet.open .details .collapse-action-wrapper,
.simple-tweet:hover .details .simple-details-link,
.client-and-actions a:hover,
.dismiss-promoted:hover b,
.tweet .context .pretty-link:hover s,
.tweet .context .pretty-link:hover b,
.list .username a:hover,
.list-membership-container .create-a-list,
.list-membership-container .create-a-list:hover,
.story-header:hover .view-tweets,
.card .list-details a:hover,
.card .card-body:hover .attribution,
.new-tweets-bar,
.onebox .soccer ul.ticker a:hover,
.discover-item-actions a,
.remove-background-btn,
.stream-item-activity-me .latest-tweet .tweet-row a:hover {
 color: #094185;
}
s,
.pretty-link:hover s,
.stream-item-activity-me .latest-tweet .tweet-row a:hover s {
color: #6B8DB5;
}
.tweet .sm-reply,
.tweet .sm-rt,
.tweet .sm-fav,
.tweet .sm-image,
.tweet .sm-video,
.tweet .sm-audio,
.tweet .sm-geo,
.tweet .sm-in,
.tweet .sm-trash,
.tweet .sm-page,
.tweet .sm-embed,
.tweet .sm-summary,
.tweet .sm-chat,
.timelines-navigation .active .profile-nav-icon,
.timelines-navigation .profile-nav-icon:hover,
.sm-top-tweet,
.discover-item .js-action-card-search:hover .sm-search {
 background-color: #094185;
}
body {
            background-position: left 40px;
            background-attachment: fixed;
            background-repeat: repeat;
              background-repeat: no-repeat;
            background-color: #a8cded;
        }


 <style type="text/css">  <!--- twit --->
      /* Скрыть нижней логотип (убрать после развертывания) */
.site-footer .twitter-logo {
  display: none;
}

/* Обмен из спрайта */
i { background-image: url(<?=$config['home']?>/themes/Twit/index_files/060612-u.png) !important;   /*вывод значков в баре*/
}

</style>
  </head><body class="t1  logged-in user-style-Lexsusx   front-random-image-city-balcony  western ru">

<?
function myhtml($myhtml) {
//  $myhtml = str_replace('<img src="' . BASEDIR . 'images/img/act.png" alt="image" />', '<img src="' . BASEDIR . 'themes/Twit/images/act.png" alt="&raquo;" />', $myhtml);
//  $myhtml = str_replace('<img src="' . BASEDIR . 'images/img/homepage.gif" alt="image" />', '<img src="' . BASEDIR . 'themes/Twit/images/home.png" alt="&raquo;" />', $myhtml);
//  $myhtml = str_replace('<img src="' . BASEDIR . 'images/img/act_home.gif" alt="image" />', '<img src="' . BASEDIR . 'themes/Twit/images/home.png" alt="&raquo;" />', $myhtml);
//  $myhtml = str_replace('<img src="' . BASEDIR . 'images/avatars/noavatar.gif" alt="" />', '<img src="' . BASEDIR . 'themes/Twit/images/no_ava.png" alt="&raquo;" />', $myhtml);
  $myhtml = str_replace('#ff0000', '#C66464', $myhtml); //Заменяет красный цвет, на более приятный оттенок красного
  return $myhtml;
}
ob_start('myhtml');
?>
    <div id="doc"><div class="topbar js-topbar">
    <div class="global-nav" data-section-term="top_nav">
<!--- Если нужно лого, раскоментить    <div class="logo"><a href="<?=BASEDIR?>index.php?<?=SID?>"><img src="<?=$config['home']?>/themes/SinSkin/images/logo.png" alt="<?=$config['title']?>" /></a><br /></div><!--Закрываем див logo-->
        <div class="global-nav-inner"><div class="container">
         <ul class="nav js-global-actions" id="global-actions">
         <li class="home" data-global-action="home">
         <a class="js-hover" href="<?=$config['home']?>" data-component-term="home_nav" data-nav="home">
         <span class="new-wrapper"><i class="nav-home"></i><i class="nav-new"></i></span> Главная</a></li>
          <li class="people" data-global-action="connect">
          <a class="js-hover" href="<?=$config['home']?>/forum/" data-component-term="connect_nav" data-nav="connect">
          <span class="new-wrapper"><i class="nav-people"></i><i class="nav-new"></i></span> Форум</a></li>
          <li class="topics" data-global-action="discover">
          <a class="js-hover" href="<?=$config['home']?>/blog/" data-component-term="discover_nav" data-nav="discover">
          <span class="new-wrapper"><i class="nav-topics"></i><i class="nav-new"></i></span> Блоги</a></li></ul>
<!--- Значок твит центр--->
     <i class="larry-topbar"><? echo'<a href="'.$config['home'].'/news/rss.php?'.SID.'" class="art-rss-tag-icon" title="RSS">.</a>';?></i>
<!-- Правая сторона тулбара -->
     <div class="pull-right"><div class="well topbar-tweet-btn">
<!--- Кнопка твит --->
     <a href="<?=$config['home']?>/book/">
     <button type="button" class="btn btn-tweet js-global-new-tweet js-hover js-tooltip" data-placement="bottom" data-component-term="new_tweet_button" title="Прихожка"><i class="nav-tweet"></i></button></a></div>

<!--- Выпадающий список --->
   <i class="topbar-divider"></i>
   <ul class="nav"><li class="me dropdown session js-session">
   <a class="dropdown-toggle js-dropdown-toggle js-hover" href="#" id="user-dropdown-toggle">
   <span class="new-wrapper"><i class="nav-me"></i><i class="nav-new"></i></span> <span class="caret"></span></a>
   <ul class="dropdown-menu">
   <li class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></li>
   <li class="current-user" data-name="profile">
   <a href="http://lexxs.us" class="account-summary account-summary-small" data-nav="profile">
   <div class="content">
   <div class="account-group js-mini-current-user">
   <img class="avatar size32" src="<?=$config['home']?>/upload/photos/User.jpg" alt="user_name"><b class="fullname">Юзер</b>
    <small class="metadata">Показать мой профиль</small></div></div></a></li>
    <li class="dropdown-divider"></li>
  <li class="messages" data-name="messages">
  <a class="js-dm-dialog" href="http://basaru.net.ru" data-nav="messages"><span class="js-direct-message-count count"></span>Личные сообщения</a></li>
  <li data-name="lists"><a href="http://lolita.clan.su" data-nav="all_lists">Списки</a></li>
  <li class="dropdown-divider"></li>
  <li><a href="<?=$config['home']?>" data-nav="help_center">Помощь</a></li>
  <li><a href="http://sotel.org.ru" class="js-keyboard-shortcut-trigger" data-nav="shortcuts">Горячие клавиши</a></li>
  <li class="dropdown-divider"></li>
  <li><a href="<?=$config['home']?>/settings/account" data-nav="settings">Настройки</a></li>
  <li><a class="js-signout-button" id="signout-button" href="<?=$config['home']?>#" data-nav="logout">Выйти</a>
  <form class="dropdown-link-form signout-form" id="signout-form" action="/logout" method="POST">
  <input type="hidden" value="" name="authenticity_token" class="authenticity_token">
  <input type="hidden" name="reliability_event" class="js-reliability-event"><input type="hidden" name="scribe_log">
  </form></li></ul></li></ul>

  <i class="topbar-divider"></i>
    <form class="form-search js-search-form "  action="/search" id="global-nav-search">
    <span class="search-icon js-search-action"><i class="nav-search" tabindex="0"></i></span>
    <input class="search-input" type="text" id="search-query" placeholder="Поиск" name="q" autocomplete="off" spellcheck="false" tabindex="-1">
    <input disabled="disabled" class="search-input search-hinting-input" type="text" id="search-query-hint" autocomplete="off" spellcheck="false">
     </form></div>
     <a id="close-all-button" class="close-all-tweets js-close-all-tweets" href="#" title="Свернуть все твиты"><i class="nav-breaker"></i></a>
     </div></div></div></div>

<!--- основная страница--->
    <div id="page-outer">
        <div id="page-container" class="wrapper"><div id="page-node-home">
<!-- Левый Блок -->
        <div class="dashboard"><div class="module mini-profile">
        <div class="flex-module profile-summary js-profile-summary">
<? 	if (is_admin()){
 	echo '<div class="c">';
 	echo '<hr><img src="'.BASEDIR.'/images/img/panel.gif" alt="Панель" /> <a href="'.ADMINDIR.'index.php?'.SID.'"><span style="color:#008000">Админка</span></a>';
 	 if (stats_spam()>0){
 		echo ' &bull; <a href="'.ADMINDIR.'spam.php?'.SID.'"><span style="color:#ff0000">Спам!</span></a>';
 		}

 		if ($udata['users_newchat']<stats_newchat()){
 			echo ' &bull; <a href="'.ADMINDIR.'chat.php?'.SID.'"><span style="color:#ff0000">Чат</span></a>';}
 			echo '<hr></div>';
 			} else {echo '';}
?>
       <div class="content">
       <? include_once(BASEDIR.'includes/note.php'); ?>
       </div></div>
       <div class="js-mini-profile-stats-container">
       <ul class="stats js-mini-profile-stats"><li>
  <!---     <? if (is_user()) {echo '';} ?> --->
<?
 if (is_user()) {
 	if (!empty($udata['users_picture']) && file_exists(BASEDIR.'upload/photos/'.$udata['users_picture'])) {
		echo '<div class="imgright"><a href="'.BASEDIR.'upload/photos/'.$udata['users_picture'].'">';
		echo resize_image('upload/photos/', $udata['users_picture'], $config['previewsize'], nickname($udata['users_login'])).'</a><br />';
	echo '<a href="'.BASEDIR.'pages/pictures.php?'.SID.'">Изменить</a> <a href="'.BASEDIR.'pages/pictures.php?act=del&amp;uid='.$_SESSION['token'].'&amp;'.SID.'" onclick="return confirm(\'Действительно удалить фото профиля ??? :(((\')">Удалить</a></div>';
        echo '<a href="'.BASEDIR.'pages/user.php?'.SID.'">Моя страница</a><br />';
//        echo '<a href="'.BASEDIR.'pages/guests.php?'.SID.'">Мои гости</a><br />';
		echo '<a href="'.BASEDIR.'pages/frends.php?'.SID.'">Мои друзья</a><br />';
		echo '<a href="'.BASEDIR.'pages/profile.php?'.SID.'">Мой профиль</a><br />';
		echo '<a href="'.BASEDIR.'pages/account.php?'.SID.'">Мои данные</a><br />';
		echo '<a href="'.BASEDIR.'pages/setting.php?'.SID.'">Настройки</a><br />';

	} else {
		echo '<div class="imgright">';
				echo '<img src="'.BASEDIR.'images/img/photo.jpg" alt="Фото" />';
				echo '<br /><a href="'.BASEDIR.'pages/pictures.php?'.SID.'">Загрузить фото</a></div>';

				echo '<a href="'.BASEDIR.'pages/user.php?'.SID.'">Моя страница</a><br />';
//				echo '<a href="'.BASEDIR.'pages/guests.php?'.SID.'">Мои гости</a><br />';
				echo '<a href="'.BASEDIR.'pages/frends.php?'.SID.'">Мои друзья</a><br />';
				echo '<a href="'.BASEDIR.'pages/profile.php?'.SID.'">Мой профиль</a><br />';
				echo '<a href="'.BASEDIR.'pages/account.php?'.SID.'">Мои данные</a><br />';
				echo '<a href="'.BASEDIR.'pages/setting.php?'.SID.'">Настройки</a><br />';

				}

//  include (DATADIR.'main/menu.dat');
  } else {
  	$cooklog = (isset($_COOKIE['cooklog'])) ? check($_COOKIE['cooklog']): '';
  	echo '<div class="divb">Авторизация</div>';
  	echo'<form method="post" action="'.BASEDIR.'input.php?'.SID.'">';
  	echo 'Логин:<br /><input name="login" value="'.$cooklog.'" /><br />';
  	echo 'Пароль:<br /><input name="pass" type="password" /><br />';
  	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>';
?>
</li></ul></div>
        <div class="home-tweet-box tweet-box component tweet-user">
        <? if (is_user()) { include (DATADIR.'main/menu.dat'); } else {echo'<br />';} ?>
        <br /></div></div>
<!-- Левый Блок 2 -->
          <div class="dashboard"><div class="module mini-profile">
          <div class="flex-module profile-summary js-profile-summary">
       <? if (is_user()) { include (DATADIR.'main/recent.dat'); } else {
       	echo'<small><a href="'.$config['home'].'/pages/faq.php?'.SID.'">FAQ (Чаво)</a> |
       	<a href="'.$config['home'].'/pages/rules.php?'.SID.'">Правила</a> |
       	<a href="'.$config['home'].'/mail/index.php?'.SID.'">Поддержка</a></small>';
       } ?>
       <div class="content">
       <? include (DATADIR.'main/games.dat'); ?>
       </div></div>
       <div class="js-mini-profile-stats-container"><ul class="stats js-mini-profile-stats">
       <li><? include (BASEDIR.'includes/calendar.php'); ?></li></ul></div>
          <div class="home-tweet-box tweet-box component tweet-user">
 <? include (DATADIR.'main/partners.dat'); ?>

          </div></div></div></div>
<!--- Контент --->
<div class="content-main js-content-main breakable">
<!--- Заголовок --->
  <div class="content-header js-stream-header">
  <div class="header-inner">