<?
class Body{				
	private $title="PHPage.Info - Социальная сеть мастеров!";
	private $description="Скрипты для создания сайтов, интернет-магазинов, хаки, модули, шаблоны для CMS. Помощь в создание и раскрутке сайтов, интернет-магазинов. Помощь в выборе хостинга, регистрация доменных имён. Бесплатный хостинг, дешевый хостинг, отзывы";
	private $keywords="Форум вебмастеров, скрипты, шаблоны, бесплатно, SEO оптимизация, услуги, хостинг, домены, помощь в раскрутке, бесплатная раскрутка, платный хостинг, бесплатный хостинг, IPB, хуки, компоненты, русификация, платные модули opencart бесплатно, модули prestashop";
	public function SetTitle($param) {
	return $this->title=$param;	
	}
	public function SetDescription($param) {
	return $this->description=$param;	
	}	
	public function SetKeywords($param) {
	return $this->keywords=$param;	
	}
	public function GetHeader() {
	ob_start();
	global $b;
	echo'<!DOCTYPE html>
	<html><head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>'.$this->title.'</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="description" content="'.$this->description.'" />
	<link rel="author" href="Delveys@yandex.ru" />
	<meta name="keywords" content="'.$this->keywords.'" />
	<link rel="shortcut icon" href="http://'.$_SERVER['HTTP_HOST'].'/images/favicon.ico" type="image/x-icon" />
        <link href="http://'.$_SERVER['HTTP_HOST'].'/assets/network/css/phpage.css" rel="stylesheet">
        <script src="http://'.$_SERVER['HTTP_HOST'].'/assets/network/js/phpage.js"></script>';
		if (isset($b)) {
$count_letter = DB::$dbs->querySingle("SELECT COUNT(id) FROM `letters` WHERE `idwho` = ? AND `read` = ?", [$b['id'],0]);
$notice = DB::$dbs->querySingle("SELECT COUNT(id) FROM jurnal WHERE user_id = ? AND type = ?", [$b['id'],1]);
if ($b['level'] >= 1) {
$count_compl = DB::$dbs->querySingle("SELECT COUNT(id) FROM `complaint` WHERE `read` = ?", [1]);
if (!empty($count_compl)) {
$vs = $vs + $count_compl;
}
}
if ($b['level'] > 4) {
$count_pay = DB::$dbs->querySingle("SELECT COUNT(id) FROM `pay` WHERE `type` = ?", [3]);
if (!empty($count_pay)) {
$vs = $vs + $count_pay;
}
}
if ($b['level'] > 4) {
$count_out = DB::$dbs->querySingle("SELECT COUNT(id) FROM `billing_out` WHERE `type` = ?", [0]);
if (!empty($count_out)) {
$vs = $vs + $count_out;
}
$ar = DB::$dbs->querySingle("SELECT COUNT(id) FROM `arbitage` WHERE `status` = ?", [1]);
if (!empty($ar)) {
$vs = $vs + $ar;
}
$supp = DB::$dbs->querySingle("SELECT COUNT(id) FROM `support` WHERE `type` = ?", [1]);
if (!empty($supp)) {
$vs = $vs + $supp;
}
}
if ($b['level']>2) {
$otzyv = DB::$dbs->querySingle("SELECT COUNT(id) FROM otzyvy WHERE activ = ?", [0]);
if (!empty($otzyv)) {
$vs = $vs + $otzyv;
}
}
if ($b['level']>3) {
$ked = DB::$dbs->querySingle("SELECT COUNT(id) FROM ked WHERE type = ?", [0]);
if (!empty($ked)) {
$vs = $vs + $ked;
}
$garant = DB::$dbs->querySingle("SELECT COUNT(id) FROM garant WHERE type = ?", [0]);
if (!empty($garant)) {
$vs = $vs + $garant;
}
}
if ($b['level'] >4) {
$rekl = DB ::$dbs->querySingle("SELECT COUNT(id) FROM billing_rekl WHERE type = ?",[0]);
if (!empty($rekl)) {
$vs = $vs + $rekl;
}
}
if ($b['level'] >= 3) {
$u = DB::$dbs->querySingle("SELECT COUNT(id) FROM blogger WHERE activ = ?", [1]);
if (!empty($u)) {
$vs = $vs + $u;
}
$count_files = DB::$dbs->querySingle("SELECT COUNT(id) FROM `downs` WHERE `mod` = ?", [1]);
if (!empty($count_files)) {
$vs = $vs + $count_files;
}
$codes = DB::$dbs -> query('SELECT `id` FROM `codes_code` WHERE `check` = "0"')  -> rowCount();
if (!empty($codes)) {
$vs = $vs + $codes;
}
}
        echo'
         </head><body>';
echo'<div id="wrapper"><style>
.quicklinks.linktonews {
    -webkit-animation: change-bg 1s infinite alternate;
    -moz-animation: change-bg 1s infinite alternate;
    -ms-animation: change-bg 1s infinite alternate;
    -o-animation: change-bg 1s infinite alternate;
    animation: change-bg 1s infinite alternate;
}
@-webkit-keyframes change-bg {
    from {background: #4d76a3;}
    to {background: #375e88;}
}
@keyframes change-bg {
    from {background: #4d76a3;}
    to {background: #375e88;}
}
</style>

<div id="user-messages-wrap"></div>
<div class="header navbar navbar-inverse ">
    <div class="navbar-inner">
        <div class="header-seperation">
            <ul class="nav pull-left notifcation-center" id="main-menu-toggle-wrapper" style="display:none">
                <li class="dropdown"> <a id="main-menu-toggle" href="#main-menu"  class="" >
                        <div class="iconset top-menu-toggle-white"></div>
                    </a> </li>
            </ul>
            <a href="/"><span style="color:#fff;font-size:24px;display:inline-block;margin-top: 13px;margin-left: 10px;">PHPaGe</span></a>
            <ul class="nav pull-right notifcation-center">
                <li class="dropdown" id="header_task_bar"> <a href="/" class="dropdown-toggle active" data-toggle="">
                        <div class="iconset top-home"></div>
                    </a> </li>
                <li class="dropdown" id="header_inbox_bar" > <a class="dropdown-toggle" id="show-user-messages" >
                        <div class="iconset top-messages"></div>
                                            </a>
                </li>

            </ul>
        </div>
        <div class="header-quick-nav" >
            <div class="pull-left">
                <ul class="nav quick-section">
                    <!--  <li class="quicklinks"> <a href="#" class="" id="layout-condensed-toggle" >
                            <div class="iconset top-menu-toggle-dark"></div> </a> 
                    </li>-->

                    <li class="quicklinks"> 
                        <a href="/" class="">Ссылка</a> 
                    </li>
                    <li class="quicklinks"> 
                        <a href="/" class="">Форум</a> 
                    </li>
					<li class="quicklinks"> 
                        <a href="/" class="">Правила</a> 
                    </li>
					
					 <li class="quicklinks"> 
                        <a href="/" class="">Конкурс</a> 
                    </li>
					
					<li class="quicklinks linktonews"> 
                        <a href="/" class="">Лента событий</a> 
                    </li> 
					
					
                </ul>

            </div>
            <!-- END TOP NAVIGATION MENU -->
            <!-- BEGIN CHAT TOGGLER -->
            <div class="pull-right">
                <div class="chat-toggler"> <a href="#" class="dropdown-toggle" data-placement="bottom"  data-toggle="dropdown">
                        <div class="user-details">
                            <div class="username"> 
                                Сергей </div>
                        </div>
                        <div class="iconset top-down-arrow"></div>
                    </a>
                    <ul class="dropdown-menu  pull-right" role="menu" aria-labelledby="user-options">
                        <li><a href="/profile"><i class="fa fa-user"></i>&nbsp;&nbsp;Профиль</a> </li>
                        <li><a href="/profile/balance"><i class="fa fa-rub"></i>&nbsp;&nbsp;Баланс</a> </li>
                        <li><a href="/profile/keychain"><i class="fa fa-key"></i>&nbsp;&nbsp;Ключница</a> </li>
						<li><a href="/profile/statistics"><i class="fa fa-bar-chart"></i>&nbsp;&nbsp;Статистика</a> </li>
                        <li class="divider"></li>
                        <!--<li style="clear: both;overflow: hidden;">
                            <a href="?lang=ru" style="display: block;float: left;float: left;box-sizing: border-box;width: 45%;clear: none;"><img src="/themes/cp/img/flags/ru.gif"> Рус</a>
                            <a href="?lang=en" style="display: block;width: 24%;float: left;clear: none;width: 45%;box-sizing: border-box;padding-left: 10px"><img src="/themes/cp/img/flags/us.gif"> Англ</a>
                        </li>
                        <li class="divider"></li>-->
                        <li><a href="/dashboard/logout"><i class="fa fa-sign-out"></i>&nbsp;&nbsp;Выход</a></li>
                    </ul>
                    <div class="profile-pic"> <img src="https://scontent.cdninstagram.com/t51.2885-19/s100x100/12383165_1691733857760706_890031077_a.jpg"  alt="" width="35" height="35" /> </div>
                </div>
            </div>
        </div>
    </div>
</div>            <div class="page-container row-fluid">
                <!-- BEGIN SIDEBAR -->
<div class="page-sidebar" id="main-menu">
    <!-- BEGIN MINI-PROFILE -->
    <div class="page-sidebar-wrapper" id="main-menu-wrapper">
        <div class="user-info-wrapper">
            <div class="profile-wrapper"> <img src="https://scontent.cdninstagram.com/t51.2885-19/s100x100/12383165_1691733857760706_890031077_a.jpg"  alt="" width="69" height="69" /> </div>
            <div class="user-info">
                <div class="greeting">Привет</div>
                <div class="username"><span class="semi-bold"><a href="/profile" >Сергей</a></span></div>
            </div>
            <div class="balance">Баланс: <a href="/profile/balance"><span>0 баллов</span></a></div>
            <div class="user-social-link">
                                
                                <a href="http://instagram.com/mikhalkovsergei" target="_blank" title="Instagram"><i class="fa fa-instagram"></i></a>&nbsp;
                
                                            </div>
        </div>
        <!-- END MINI-PROFILE -->
        <!-- BEGIN SIDEBAR MENU -->
        <!--
    <p class="menu-title">BROWSE <span class="pull-right"><a href="javascript:;"><i class="fa fa-refresh"></i></a></span></p>
        -->
        <ul>
            <li class="open active  first"><a href="http://ad-social.org/dashboard" title=""> <i  class="icon-custom-home"></i> <span><span class="title">Главная</span></span></a></li> <li class="group group-num-1" ><a href="javascript:;"><i  class="fa fa-plus"></i> <span><span class="title">Добавить задание</span></span> <span class="arrow"></span></a> <ul class="sub-menu"> <li class="group-first"><a href="http://ad-social.org/vk/tasks" title=""> <i  class="fa fa-vk"></i> <span>Вконтакте</span></a></li> <li><a href="http://ad-social.org/in/tasks" title=""> <i  class="fa fa-instagram"></i> <span>Instagram</span></a></li> <li class="group-last"><a href="http://ad-social.org/tw/tasks" title=""> <i  class="fa fa-twitter"></i> <span>Twitter</span></a></li> </ul> </li> <li class="divider"><span></span></li> <li class="group group-num-2" ><a href="javascript:;"><i  class="fa fa-book"></i> <span><span class="title">Заработать</span></span> <span class="arrow"></span></a> <ul class="sub-menu"> <li class="group-first"><a href="http://ad-social.org/vk/earn?type=like" title=""> <i  class="fa fa-vk"></i> <span>Вконтакте</span></a></li> <li><a href="http://ad-social.org/in/earn?type=like" title=""> <i  class="fa fa-instagram"></i> <span>Instagram</span></a></li> <li class="group-last"><a href="http://ad-social.org/tw/earn" title=""> <i  class="fa fa-twitter"></i> <span>Twitter</span></a></li> </ul> </li> <li class="group group-num-3" ><a href="javascript:;"><i  class="fa fa-gamepad"></i> <span><span class="title">Игры</span></span> <span class="arrow"></span></a> <ul class="sub-menu"> <li class="group-first"><a href="http://ad-social.org/games/random">  <span>Случайный выбор</span></a></li> <li><a href="http://ad-social.org/games/chests">  <span>Сундучки</span></a></li> <li class="group-last"><a href="http://ad-social.org/games/tugOfWar">  <span>Перетягивание каната</span></a></li> </ul> </li> <li><a href="http://ad-social.org/tasks/my" title=""> <i  class="fa fa-tasks"></i> <span><span class="title">Мои заказы</span></span></a></li> <li><a href="http://ad-social.org/fines/me" title=""> <i  class="fa fa-gavel"></i> <span><span class="title">Штрафы</span></span></a></li> <li class="group group-num-4" ><a href="javascript:;"><i  class="fa fa-support"></i> <span><span class="title">Поддержка</span></span> <span class="arrow"></span></a> <ul class="sub-menu"> <li class="group-first"><a href="http://ad-social.org/support/faq">  <span>Вопросы</span></a></li> <li class="group-last"><a href="http://ad-social.org/support/claim">  <span>Жалобы</span></a></li> </ul> </li> <li><a href="http://ad-social.org/money" title=""> <i  class="fa fa-ruble"></i> <span><span class="title">Вывод баллов</span></span></a></li> <li><a href="http://ad-social.org/addfunds" title=""> <i  class="fa fa-shopping-cart"></i> <span><span class="title">Купить баллы</span></span></a></li> <li><a href="http://ad-social.org/dashboard/logout" title=""> <i  class="fa fa-sign-out"></i> <span><span class="title">Выход</span></span></a></li>         </ul>

        <div class="clearfix"></div>
		
    </div>
</div>                <!--Конец шапки-->';








//////////////////////////
                
                echo'<!-- Сообщения -->
                <li class="dropdown"><a href="/messages"><i class="zmdi zmdi-email"></i>
                        '; if (!empty($count_letter)) { echo'<i class="hi-count">'.$count_letter.'</i>'; } echo'</a></li>
                    
                <!-- Уведомления -->
                <li class="dropdown"><a href="/journal">
              <i class="zmdi zmdi-notifications"></i>'; if (!empty($notice)) { echo'<i class="hi-count">'.$notice.'</i>'; } echo'</a></li>';
                
                }
                if ($b == false) {  
                echo'<!-- Меню гостя-->
                <li class="pull-right dropdown"><a href="" data-toggle="dropdown">
                        <i class="zmdi zmdi-view-dashboard zmdi-hc-fw"></i></a>
                    <ul class="dropdown-menu">
                        <li><a href="/join">Создать аккаунт</a></li>
                        <li><a href="/login">Вход в аккаунт</a></li>
                        <li><a href="/recovery">Забыли пароль?</a></li>
                    </ul>
                </li>';} else {
                echo'<!-- Вывод приложений -->
                <li class="hidden-xs pull-right dropdown">
                    <a href="" data-toggle="dropdown">
                        <i class="zmdi zmdi-apps"></i>    
                    </a>
                    
                    <div class="dropdown-menu pull-right" id="launch-apps">
                        <div class="dropdown-header bg-teal">Наши приложения</div>
                        <div class="la-body">
                            <div class="lab-item"><a href="/birth" class="bg-red"><i class="zmdi zmdi-calendar"></i>
                                </a><small>Именники</small></div>
                            
                            <div class="lab-item"><a href="/downs" class="bg-green"><i class="zmdi zmdi-file-text"></i>
                                </a><small>Обменник</small></div>
                            
                            <div class="lab-item"><a href="/messages" class="bg-blue"><i class="zmdi zmdi-email"></i>
                                </a><small>Почта</small></div>
                            
                            <div class="lab-item"><a href="/support/" class="bg-orange"><i class="zmdi zmdi-trending-up"></i>
                                </a><small>Тикеты</small></div>
                            
                            <div class="lab-item"><a href="/news/" class="bg-cyan"><i class="zmdi zmdi-view-headline"></i>
                                </a><small>Новости</small></div>

                            <div class="lab-item"><a href="/gallery/" class="bg-teal"><i class="zmdi zmdi-image"></i>
                                </a><small>Галерея</small></div>
                        </div>
                    </div>
                </li>';}echo'
                <!-- Вывод времени -->
                <li class="pull-right">
                    <div id="time">
                        <span id="t-hours"></span>
                        <span id="t-min"></span>
                        <span id="t-sec"></span>
                    </div>
                </li>
            </ul>
        </header>
    
        <aside id="sidebar">
            
            <!--| Главное меню |-->
            <ul class="side-menu">';
if ($b == true) {echo'<li class="sm-sub sms-profile"><a class="clearfix" href="#">';
if (!empty($b['ava'])) {echo'<img src="/' . $b['ava'] . '" alt="">';} else {echo'<img src="/assets/img/4.jpg" alt="">';}
                        echo'<span class="f-11">
                            <span class="d-block">'.$b[ 'name' ].' '.$b[ 'family' ].'</span>
                            <small class="text-lowercase">'.$b[ 'nick' ].'</small>
                        </span></a>
                    <ul>
                        <li><a href="/users/' . $b['id'] . '">Моя страница</a></li>
                        <li><a href="/edit">Редактировать</a></li>
                        <li><a href="/setting">Настройки</a></li>
                        <li><a href="/logout">Выход</a></li>
                    </ul>
                </li>';
} else{
                echo'<li class="sm-sub sms-profile">
                    <a class="clearfix" href="#">
                        <img src="/assets/img/4.jpg" alt="">
                        <span class="f-11"><span class="d-block">Привет, Гость!</span>Пожалуйста, Войдите!</span></a><ul>
                        <li><a href="/join">Регистрация</a></li>
                        <li><a href="/login">Авторизация</a></li>
                        <li><a href="/recovery">Забыли пароль?</a></li>
                    </ul>
                </li>';
}

                echo'<li class="active"><a href="/"><i class="zmdi zmdi-home"></i><span>Главная</span></a></li>';

if ($b['level'] != 0) {echo'<li><a href="/administration"><i class="zmdi zmdi-widgets zmdi-hc-fw"></i><span> Панель управления '.(!empty($vs) ? '<span class="label label-primary">+'.$vs.'</span>':NULL).'</span></a></li>'; }
$d = date("d");
$last = DB::$dbs->querySingle("SELECT COUNT(id) FROM blogger WHERE vis = ?", [$d]);
$ft = DB :: $dbs -> querySingle ("SELECT COUNT(id) FROM `forum_topic`");
$fm = DB :: $dbs -> querySingle ("SELECT COUNT(id) FROM `forum_mess`");
$fff = $ft + $fm;

                     echo'<li><a href="/news/"><i class="zmdi zmdi-widgets"></i>
       <span>Новости ресурса <span class="label label-primary">'.DB :: $dbs -> querySingle ("SELECT COUNT(id) FROM `news`").'</span></span>
                    </a></li>
                <li class="sm-sub"><a href="#">
                        <i class="zmdi zmdi zmdi-view-list"></i>
                        <span>Свежие новости <span class="label label-primary">' . DB :: $dbs -> querySingle ("SELECT COUNT(id) FROM `gazeta_article`") . '</span></span>
                    </a><ul>
                        <li><a href="/allnews/search">Поиск статей</a></li>
                        <li><a href="/allnews/">Новые статьи</a></li>
                    </ul></li>
                <li><a href="/forum"><i class="zmdi zmdi-collection-text"></i><span>Наш форум <span class="label label-primary">' . $fff . '</span></span></a></li>';

                     echo'
                <li class="sm-sub"><a href="">
                        <i class="zmdi zmdi-swap-alt"></i>
                        <span>Наши модули <span class="label label-primary">4</span></span>
                    </a><ul>';
                        echo'<li><a href="/peoples">Пользователи ('.DB::$dbs -> querySingle ("SELECT COUNT(*) FROM `blogger`").')</a></li>
                        <li><a href="/birth">Именинники ('.DB::$dbs->querySingle("SELECT COUNT(id) FROM blogger WHERE birthday LIKE '". date('d.m.') ."%'").')</a></li>
                        <li><a href="/last">Нас посетили ('.$last.')</a></li>
                    </ul></li><li><a href="/downs">
                        <i class="zmdi zmdi-download"></i>
                        <span>Загруз-центр <span class="label label-primary">' . DB::$dbs -> querySingle ("SELECT COUNT(*) FROM `downs` WHERE `mod` = ?",[0]) . '</span></span></a></li>
                <li class="sm-sub">
                    <a href="#">
                        <i class="zmdi zmdi-image"></i>
                        <span>Фотогалерея <span class="label label-primary">' . DB :: $dbs -> querySingle ("SELECT COUNT(id) FROM `album_foto`") . '</span></span>
                    </a>
                    <ul>';
$sql = DB::$dbs->query("SELECT * FROM album_cat ORDER BY id ASC");
if ($sql->rowCount() == 0) {
err('Альбомов нет');
} else {
while($a = $sql -> fetch()) {
echo '<li><a href="/gallery/action.html?id='.$a['id'].'"> '.$a['name'].'</a></li>';
}
}

                    echo'</ul>
                </li>
                <li>
                    <a href="/lenta"><i class="zmdi zmdi-layers"></i>
                        <span>Лента новостей <span class="label label-primary">'. DB::$dbs -> querySingle("SELECT COUNT(id) FROM `lenta`").(empty($new_lenta) ? NULL : '/<b style="COLOR:red">'.$new_lenta.'</b>').'</span></span>
                    </a>
                </li>
                <li class="sm-sub sms-bottom">
                    <a href=""><i class="zmdi zmdi-collection-item"></i>
                        <span>Сервисы сайта <span class="label label-primary">2</span></span>
                    </a><ul>
                        <li><a href="/codes">Полезные коды</a></li>
                        <li><a href="/garants">Список гарантов</a></li>
                    </ul></li>
                <li>
                    <a href="/market">
                        <i class="zmdi zmdi-shopping-cart"></i>
    <span>Онлайн маркет <span class="label label-primary">' . DB::$dbs -> querySingle ("SELECT COUNT(*) FROM `magazin_file`") . '</span></span>
                    </a>
                </li>
<li class="active"><a href="/"><i class="zmdi zmdi-home"></i><span>Мы рекомендуем</span></a></li>';
echo'<li><a href="http://new.vk.com/phpage_info"><i class="zmdi zmdi-home"></i><span>Мы Вконтакте</span></a></li>';
/*
if ($_SERVER['PHP_SELF'] == '/index.php') {
echo '<li><span> ', printAdv('top') ,'</span></li>';
$random = DB ::$dbs->query("SELECT * FROM billing_rekl WHERE gde = ? AND type = ? ORDER BY RAND() DESC",['index',1]); #Рандомный вывод
if($random->rowCount() >0){
	echo '<div class="list-group-item media">';
while($r = $random->fetch()){
	echo '<li><a href="http://'.$r['url'].'"><i class="zmdi zmdi-home"></i> '.$r['name'].'</a></li>';
}
}
} elseif ($_SERVER['PHP_SELF'] != '/') {
echo '<li><span> ', printAdv('down') ,'</span></li>';
$random = DB ::$dbs->query("SELECT * FROM billing_rekl WHERE gde = ? AND type = ? ORDER BY RAND() DESC",['all',1]);
if($random->rowCount() >0){
	echo '<div class="list-group-item media">';
while($r = $random->fetch()){
	echo '<li><a href="http://'.$r['url'].'"><i class="zmdi zmdi-home"></i> '.$r['name'].'</a></li>';
}
}
}
*/
            echo'</ul></aside>';
          echo'<section id="content"><div class="container">';

if (isset($b)) {
if ($b['activ'] == 1) {
$title= new Body;
echo'<div class="tile"><div class="t-header th-alt bg-teal"><div class="th-title"><i class="zmdi zmdi-widgets"></i><a href="/"style="text-decoration:none; color:white;"> Главная</a> :: Активация аккаунта</div></div></div>';
echo '<div class="t-header bg-ace"><div class="th-title"><p>Пожалуйста, подождите... Ваш запрос на регистрацию в очереди обрабатывается... </br>
Ваши регистрационные данные были отправлены на указанный адрес электронной почты.</p></div></div>';
$title->GetMenu();
$title->GetFooter();
die();
} elseif ($b['activ'] == 2) {
$title= new Body;
echo'<div class="tile"><div class="t-header th-alt bg-teal"><div class="th-title"><i class="zmdi zmdi-widgets"></i><a href="/"style="text-decoration:none; color:white;"> Главная</a> :: Активация аккаунта</div></div></div><div class="t-header bg-ace"><div class="th-title"><p>К сожалению, Ваша регистрация была отклонена.</p></div></div>';
$title->GetMenu();
$title->GetFooter();
die();
}
}
	}
///Задаем меню				
	public function GetMenu() { 
if ($_SERVER['PHP_SELF']!='/index.php')echo'<div class="tile"><div class="t-header th-alt bg-teal"><div class="th-title"><i class="zmdi zmdi-home"></i><a href="/"style="text-decoration:none; color:white;"> На главную</a> :: <a href="№"onclick="history.back();return false;"style="text-decoration:none; color:white;">Вернуться назад</a></div></div></div>';
echo'</div></section>';
	 }

///Задаем ноги				
	public function GetFooter() {
        	global $b;
	echo'
        <footer id="footer">
            Все права защищены © 2016 '.homeurl.'
            <ul class="f-menu">
                <li><a href="/">Главная</a></li>
                <li><a href="/forum">Форум</a></li>
                <li><a href="/downs">Загрузки</a></li>
                <li><a href="/peoples">Пользователи</a></li>
                <li><a href="/support">Служба поддержки</a></li>
            </ul>
<!-- Rating@Mail.ru counter -->
<script type="text/javascript">
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({id: "2786217", type: "pageView", start: (new Date()).getTime()});
(function (d, w, id) {
  if (d.getElementById(id)) return;
  var ts = d.createElement("script"); ts.type = "text/javascript"; ts.async = true; ts.id = id;
  ts.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//top-fwz1.mail.ru/js/code.js";
  var f = function () {var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ts, s);};
  if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); }
})(document, window, "topmailru-code");
</script><noscript><div style="position:absolute;left:-10000px;">
<img src="//top-fwz1.mail.ru/counter?id=2786217;js=na" style="border:0;" height="1" width="1" alt="Рейтинг@Mail.ru" />
</div></noscript>
<!-- //Rating@Mail.ru counter -->
<a href="http://statok.net/go/12924"><img src="http://statok.net/imageOther/12924" alt="Statok.net" /></a>
<a href="http://monstop.ru/go/821"><img src="http://monstop.ru/imageOther/821" alt="Monstop.ru"/></a>
        </footer>
        
        <!-- Javascript Libraries -->
        <script src="/assets/bower_components/jquery/dist/jquery.min.js"></script>
        <script src="/assets/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
        <script src="/assets/bower_components/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat.min.js"></script>
        <script src="/assets/sparklines/jquery.sparkline.min.js"></script>
        <script src="/assets/bootstrap-growl/bootstrap-growl.min.js"></script>
        <script src="/assets/bower_components/moment/min/moment.min.js"></script>
                        
        <script src="/assets/js/functions.js"></script>';
        if ($b == false) {   
        echo'
        <script src="/assets/js/demo.js"></script>'; 
        }
        echo'
        <script src="/assets/js/interface.js"></script>
    </body>
</html>'; 
	}
}
?>