<?
///Класс для вывода шапки и футера

class Body{				
///Переменные по умолчанию
	private $title="Profiwm.ru - Социальная сеть мастеров!";
	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>
        <head>
        <!-- Начало МЕТА-тегов -->
	    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	    <meta name="description" content="'.$this->description.'" />
	    <meta name="keywords" content="'.$this->keywords.'" />
        <meta name="author" content="Dario430@yandex.ru">
	    <title>'.$this->title.'</title>
	    <!-- Site: Profiwm.ru | Author: Chainsaw | ICQ: 4354440 | E-mail: Dario430@yandex.ru -->
        <!--/ Конец МЕТА-тегов -->

        <!-- Начало фавиконов -->
        <link href="/img/ico/html/apple-touch-icon-144x144-precomposed.png" rel="apple-touch-icon-precomposed" sizes="144x144">
        <link href="/img/ico/html/apple-touch-icon-114x114-precomposed.png" rel="apple-touch-icon-precomposed" sizes="114x114">
        <link href="/img/ico/html/apple-touch-icon-72x72-precomposed.png" rel="apple-touch-icon-precomposed" sizes="72x72">
        <link href="/img/ico/html/apple-touch-icon-57x57-precomposed.png" rel="apple-touch-icon-precomposed">
        <link href="/img/ico/html/apple-touch-icon.png" rel="shortcut icon">
        <!--/ Конец фавиконов -->

        <!-- Начало шрифтов -->
        <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700" rel="stylesheet">
        <link href="http://fonts.googleapis.com/css?family=Oswald:700,400" rel="stylesheet">
        <!--/ Конец шрифтов -->

        <!-- Начало глобальных стилей -->
        <link href="/assets/global/plugins/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">

        <!--/ Конец глобальных стилей -->

        <!-- Начало страничных стилей -->
        <link href="/assets/global/plugins/bower_components/fontawesome/css/font-awesome.min.css" rel="stylesheet">
        <link href="/assets/global/plugins/bower_components/animate.css/animate.min.css" rel="stylesheet">
        <link href="/assets/global/plugins/bower_components/dropzone/downloads/css/dropzone.css" rel="stylesheet">
        <link href="/assets/global/plugins/bower_components/jquery.gritter/css/jquery.gritter.css" rel="stylesheet">
        <link href="/assets/global/plugins/bower_components/bootstrap-tour/build/css/bootstrap-tour.min.css" rel="stylesheet">
        <!--/ Конец  страничных стилей -->

        <!-- Начало основных стилей -->
        <link href="/assets/admin/css/reset.css" rel="stylesheet">
        <link href="/assets/admin/css/layout.css" rel="stylesheet">
        <link href="/assets/admin/css/components.css" rel="stylesheet">
        <link href="/assets/admin/css/plugins.css" rel="stylesheet">
        <link href="/assets/admin/css/themes/default.theme.css" rel="stylesheet" id="theme">
        <link href="/assets/admin/css/custom.css" rel="stylesheet">
	<link href="/assets/css/iconic-font.css" rel="stylesheet" />

        <!--/ Конец основных стилей -->

        <!--[if lt IE 9]>
        <script src="/assets/global/plugins/bower_components/html5shiv/dist/html5shiv.min.js"></script>
        <script src="/assets/global/plugins/bower_components/respond-minmax/dest/respond.min.js"></script>
        <![endif]-->
        <script src="http://phpage.info/assets/bower_components/jquery/dist/jquery-1.9.1.min.js"></script>

    </head>
    <!--/ Конец шапки -->

    <body class="page-session page-sound page-header-fixed page-sidebar-fixed demo-dashboard-session">
        <section id="wrapper">
            <header id="header">
                <div class="header-left">
                    <div class="navbar-minimize-mobile left">
                        <i class="fa fa-bars"></i></div>
                    <div class="navbar-header">
                        <a id="tour-1" class="navbar-brand" href="/">
                            <img class="logo" src="/img/logo/html/logo-white.png" alt="Profmas.net"/>
                        </a></div>
                    <div class="navbar-minimize-mobile right">
                        <i class="fa fa-cog"></i></div>
                    <div class="clearfix"></div>
                  </div>
                <div class="header-right">
                    <div class="navbar navbar-toolbar navbar-dark">
                        <ul class="nav navbar-nav navbar-left">
                            <li id="tour-2" class="navbar-minimize">
                                <a href="javascript:void(0);" title="Minimize sidebar">
                                    <i class="fa fa-bars"></i>
                                </a>
                            </li>

                        </ul> 

                        <!-- Начало правой навигации -->
                        <ul class="nav navbar-nav navbar-right">';

		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;
}
}
if ($b['level'] > 3) {
$ar = DB::$dbs->querySingle("SELECT COUNT(id) FROM `arbitage` WHERE `status` = ?", [1]);
if (!empty($ar)) {
$vs = $vs + $ar;
}
}
if ($b['level'] > 3) {
$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->querySingle("SELECT COUNT(id) FROM `codes_code` WHERE `check` = ?", [0]);
if (!empty($codes)) {
$vs = $vs + $codes;
}
}
}
if ($b['level'] != 0) {
              echo'
             <!-- Начало админки -->
                <li class="dropdown navbar-message">
                            <a href="/panel" class="dropdown-toggle"><i class="fa fa-tag"></i>
        '.(!empty($vs) ? '<span class="count label label-danger rounded">+'.$vs.'</span>':NULL).'</a></li>
                     <!-- Конец админки -->';
}
if (isset($b)) {
                        echo'
                        <!-- Сообщения -->
                        <li id="tour-4" class="dropdown navbar-message">
             <a href="/messages" class="dropdown-toggle"><i class="fa fa-envelope-o"></i>'; if (!empty($count_letter)) { echo'<span class="count label label-danger rounded">+'.$count_letter.'</span>'; } echo'</a>

                        <!-- Уведомления -->
                        <li id="tour-5" class="dropdown navbar-notification">
                            <a href="/journal" class="dropdown-toggle"><i class="fa fa-bell-o"></i>'; if (!empty($notice)) { echo'<span class="count label label-danger rounded">+'.$notice.'</span>'; } echo'</a></li>';
}

echo'

                        <!-- Начало профилей -->
                        <li id="tour-6" class="dropdown navbar-profile">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <span class="meta">
                                    <span class="avatar">';
if (!empty($b['ava'])) {echo'<img src="/' . $b['ava'] . '" class="img-circle" alt="">';} else {echo'<img src="/img/avatar/35/1.png" class="img-circle">';}
echo'</span>';
                                    if (isset($b)) {
                                    echo'<span class="text hidden-xs hidden-sm text-muted">'.$b[ 'nick' ].'</span>';}else{
                                    echo'<span class="text text-muted">Привет, <b>Гость!</b></span>';}
                                    echo'<span class="caret"></span>
                                </span>
                            </a>';
if (isset($b)) {echo'
                            <!-- Начало меню -->
                            <ul class="dropdown-menu animated flipInX">
                                <li class="dropdown-header">Мой профиль</li>
                                <li><a href="/users/' . $b['id'] . '"><i class="fa fa-user"></i>Просмотр профиля</a></li>
                                <li><a href="/messages"><i class="fa fa-envelope-square"></i>Сообщения '; if (!empty($count_letter)) {echo' <span class="label label-info pull-right">'.$count_letter.'</span>';} echo'</a></li>
                                <li><a href="/notebook/"><i class="fa fa-sticky-note"></i>Блокнот </a></li>
                                <li><a href="/journal"><i class="fa fa-bell-o"></i>Уведомления '; if (!empty($notice)) {echo'<span class="label label-info pull-right">'.$notice.'</span>';} echo'</a></li>
                                <li><a href="/ignor"><i class="fa fa-black-tie"></i>Черный список</a></li>
                                <li class="dropdown-header">Настройки</li>
                                <li><a href="/setting"><i class="fa fa-cogs"></i>Личные настройки</a></li>
                                <li><a href="/wmid"><i class="fa fa-gg"></i>Мои реквизиты</a></li>
                                <li><a href="/logs"><i class="fa fa-history"></i>История авторизации</a></li>
                                <li><a href="/gallery/personal.html?id=' . $b['id'] . '"><i class="fa fa-object-ungroup"></i>Персональная галерея</a></li>
                                <li class="dropdown-header">Сервисы</li>
                                <li><a href="/search"><i class="fa fa-search"></i>Поиск мастеров</a></li>
                                <li><a href="/billing"><i class="fa fa-dollar"></i>Биллинг панель</a></li>
                                <li><a href="/support/"><i class="fa fa-life-bouy"></i>Служба поддержки</a></li>
                                <li><a href="/smiles"><i class="fa fa-smile-o"></i>Смайлики / BB</a></li>
                                <li class="divider"></li>
                                <li><a href="/logout"><i class="fa fa-sign-out"></i>Завершить сеанс</a></li>
                            </ul>
                            <!--/ Конец меню -->';}else{
echo'
                            <!-- Начало меню -->
                            <ul class="dropdown-menu animated flipInX">
                                <li class="dropdown-header">Меню гостя</li>
                                <li><a href="/join"><i class="fa fa-user-plus"></i>Создать профиль</a></li>
                                <li><a href="/login"><i class="fa fa-sign-in"></i>Вход на сайт</a></li>
                                <li><a href="/recovery"><i class="fa fa-share-square"></i>Забыли пароль?</a></li>
                                
                            </ul>
                            <!--/ Конец меню -->';}echo'
                        </li>
                        <!--/ Конец профилей -->

                        <!-- Начало настроек -->
                        <li id="tour-7" class="navbar-setting pull-right">
                            <a href="/support/"><i class="fa fa-cog"></i></a>
                        </li>
                        <!--/ Конец настроек -->
                        </ul>
                    </div>
                </div>
            </header>
            <!--/ Конец шапки -->

          <aside id="sidebar-left" class="sidebar-circle sidebar-dark">
                <div id="tour-8" class="sidebar-content">';
$tpc = DB :: $dbs -> querySingle ("SELECT COUNT(id) FROM `forum_topic`");
$mec = DB :: $dbs -> querySingle ("SELECT COUNT(id) FROM `forum_mess`");
$fc = $tpc + $mec;

if (isset($b)) {echo'
                    <div class="media">
                        <a class="pull-left has-notif avatar" href="/users/' . $b['id'] . '">';
if (!empty($b['ava'])) {echo'<img src="/' . $b['ava'] . '" alt="">';} else {echo'<img src="/img/avatar/50/1.png" alt="">';}
echo'
                            <i class="online"></i>
                        </a>
                        <div class="media-body">
                            <h4 class="media-heading">'.$b[ 'name' ].'<span> '.$b[ 'family' ].'</span></h4>
                            <small>'.$b[ 'nick' ].'</small>
                        </div>
                    </div>';}else{echo'
                    <div class="media">
                        <a class="pull-left has-notif avatar" href="/">
                            <img src="/img/avatar/50/1.png" alt="admin">
                            <i class="offline"></i>
                        </a>
                        <div class="media-body">
                            <h4 class="media-heading">Привет,<span> Гость!</span></h4>
                        </div>
                    </div>';}
                echo'</div>

                <!-- Начало менюшки -->
                <ul id="tour-9" class="sidebar-menu">
                    <li class="submenu">
                        <a href="/news/">
                            <span class="icon"><i class="fa fa-newspaper-o"></i></span>
                            <span class="text">Новости ресурса </span>
              <span class="label label-primary pull-right rounded">' . DB :: $dbs -> querySingle ("SELECT COUNT(id) FROM `news`") . '</span>                           
  
                        </a>
                    </li>
                    <li class="submenu">
                        <a href="/allnews/">
                            <span class="icon"><i class="fa fa-leaf"></i></span>
                            <span class="text">Свежие новости </span>
              <span class="label label-primary pull-right rounded">' . DB :: $dbs -> querySingle ("SELECT COUNT(id) FROM `gazeta_article`") . '</span>                           
  
                        </a> 
                    </li>
                    <li>
                        <a href="/codes">
                            <span class="icon"><i class="fa fa-dropbox"></i></span>
                            <span class="text">Полезные коды</span>
              <span class="label label-primary pull-right rounded">' . DB :: $dbs -> querySingle ("SELECT COUNT(id) FROM `codes_code`") . '</span>                           
  
                        </a>
                    </li>
                    <li>
                        <a href="/blacklist/">
                            <span class="icon"><i class="fa fa-users"></i></span>
                            <span class="text">База мошенников</span>
              <span class="label label-primary pull-right rounded">' . DB :: $dbs -> querySingle ("SELECT COUNT(id) FROM `ked`") . '</span>                           
  
                        </a>
                    </li>
                    <li class="sidebar-category">
                        <span>Приложения</span>
                        <span class="pull-right"><i class="fa fa-trophy"></i></span>
                    </li>
                   <li class="submenu">
                        <a href="/forum">
                            <span class="icon"><i class="fa fa-comments"></i></span>
                            <span class="text">Наш форум</span>
<span class="label label-primary pull-right rounded">'.$fc.'</span>  
                        </a> 
                    </li>
                    <li class="submenu">
                        <a href="/downs">
                            <span class="icon"><i class="fa fa-download"></i></span>
                            <span class="text">Загруз-центр</span>
<span class="label label-primary pull-right rounded">' . DB :: $dbs -> querySingle ("SELECT COUNT(id) FROM `downs`") . '  </span>  

                        </a>
                    </li>
                    <li class="submenu">
                        <a href="/market">
                            <span class="icon"><i class="fa fa-shopping-cart"></i></span>
                            <span class="text">Магазин</span>
<span class="label label-primary pull-right rounded">' . DB :: $dbs -> querySingle ("SELECT COUNT(id) FROM `magazin_file`") . '  </span>  

                        </a>
                    </li>
                    <li class="submenu">
                        <a href="/gallery">
                            <span class="icon"><i class="fa fa-camera-retro"></i></span>
                            <span class="text">Фотоальбом</span>
<span class="label label-primary pull-right rounded">' . DB :: $dbs -> querySingle ("SELECT COUNT(id) FROM `album_foto`") . '  </span>  

                        </a>
                    </li>

                    <li class="sidebar-category">
                        <span>Сервисы сайта</span>
                        <span class="pull-right"><i class="fa fa-code"></i></span>
                    </li>
                    <li class="submenu">
                        <a href="/lenta">
                            <span class="icon"><i class="fa fa-retweet"></i></span>
                            <span class="text">Лента событий</span>
                <span class="label label-primary pull-right rounded">' . DB :: $dbs -> querySingle ("SELECT COUNT(id) FROM `lenta`") . '</span>                           
                        </a>
                    </li>

                    <li class="submenu">
                        <a href="/votes">
                            <span class="icon"><i class="fa fa-cube"></i></span>
                            <span class="text">Отзывы о сайте</span>
               <span class="label label-primary pull-right rounded">' . DB :: $dbs -> querySingle ("SELECT COUNT(id) FROM `otzyvy`") . '</span>                           
 
                            
                        </a>
                    </li>
 
                     <li class="submenu">
                        <a href="/peoples">
                            <span class="icon"><i class="fa fa-cube"></i></span>
                            <span class="text">Пользователи</span>
               <span class="label label-primary pull-right rounded">' . DB :: $dbs -> querySingle ("SELECT COUNT(id) FROM `blogger`") . '</span>                           
                           
                        </a>
                    </li>';

$us = DB::$dbs->querySingle("SELECT count(id) FROM `blogger` WHERE `last` > ?", [time()-3600]);
$g = DB::$dbs->querySingle("SELECT count(*) FROM `guests` WHERE `date` > ?", [time()-3600]);
$vse = $us + $g;
$d = date("d");
$last = DB::$dbs->querySingle("SELECT COUNT(id) FROM blogger WHERE vis = ?", [$d]);

                   
                   echo' <li class="submenu">
                        <a href="/online">
                            <span class="icon"><i class="fa fa-cube"></i></span>
                            <span class="text">Кто online</span>
               <span class="label label-primary pull-right rounded">'.$vse.'</span>                           
                        </a>
                    </li>
<li class="submenu">
                        <a href="/birth">
                            <span class="icon"><i class="fa fa-cube"></i></span>
                            <span class="text">Именинники</span>
               <span class="label label-primary pull-right rounded">'.DB::$dbs->querySingle("SELECT COUNT(id) FROM blogger WHERE birthday LIKE '". date('d.m.') ."%'").'</span>                           
                        </a>
                    </li><li class="submenu">
                        <a href="/last">
                            <span class="icon"><i class="fa fa-cube"></i></span>
                            <span class="text">Нас посетили </span>
               <span class="label label-primary pull-right rounded">'.$last.'</span>                           
                        </a>
                    </li>

                   

                   
                </ul></aside>
            <!--/ Конец менюшки -->

            <!-- Начало главного контента --><section id="page-content">';

	}
///Задаем меню				
	public function GetMenu() {
      	global $b;

echo'</div></div><div class="container page_body"><div class="row"><div class="col-lg-3 col-md-4 col-sm-4 col-xs-7 page_content"><div class="container-fluid cols_table">';

echo'<div class="catSides hidden-xs"><i class="md-apps"></i> Мы рекомендуем</div>';

echo '<div class="row text_box r1 hidden-xs"><a href="/billing/usl/rekl.html"><i class="md-shuffle"></i> Купить рекламу</a></div>';
echo '<div class="row text_box hidden-xs"><a href="http://vk.com/profmasnet"><i class="md-shuffle"></i> Profmas.Net - Вконтакте!</a></div>';

if ($_SERVER['PHP_SELF'] == '/index.php') {
$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="row text_box hidden-xs">';
while($r = $random->fetch()){
	echo '<i class="md-shuffle"></i> <a href="http://'.$r['url'].'">'.$r['name'].'</a><br/>';
}
echo '<i class="md-shuffle"></i> ', printAdv('top') ,'';
echo '</div>';
}
} elseif ($_SERVER['PHP_SELF'] != '/') {
$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="row text_box hidden-xs">';
while($r = $random->fetch()){
	echo '<i class="md-shuffle"></i> <a href="http://'.$r['url'].'">'.$r['name'].'</a><br/>';
}
echo '<i class="md-shuffle"></i> ', printAdv('down') ,'';
echo '</div>';
}
}



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

   <!-- Начало ног -->
                <footer class="footer-content">
                    <span id="tour-19">
                &copy; '.homeurl.' - <span id="copyright-year"></span></span>
     <span id="tour-20" class="pull-right">Разработчик <a href="https://new.vk.com/" target="_blank">Тест</a>!</span>
                </footer>
                <!--/ Конец ног -->

            </section>';
	}

///Задаем ноги				
	public function GetFooter() {
      	global $b;

echo'    </section>
        <!--/ END WRAPPER -->

        <!-- Кнопка вверх -->
        <div id="back-top" class="animated pulse circle">
            <i class="fa fa-angle-up"></i>
        </div><!-- /#back-top -->
        <!--/ Кнопка вверх -->

        <!-- Начало путеводителя -->';

if (isset($b)) {
if ($b['pro'] == 1) {
if (isset ($_GET['pro'])) { 
DB :: $dbs -> query ("UPDATE `blogger` SET `pro`='" . ($b['pro'] == 1 ? 0 : 1) . "' WHERE (`id`='" . $b['id'] . "')"); 
header ('location: ?'); 
}
        echo'<div class="modal modal-success fade" id="modal-bootstrap-tour" tabindex="-1" role="dialog">
            <div class="modal-dialog" role="document" style="margin: 150px auto;">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title">Добро пожаловать на '.homeurl.'!</h4>
                    </div>
                    <div class="modal-body">
                        <div class="media">
                            <div class="media-left" style="padding-right: 15px;">
                                <a href="#">
                                    <img data-no-retina class="media-object" src="/img/media/mascot/1.jpg" alt="..." style="width: 100px;">
                                </a>
                            </div>
                            <div class="media-body">
                                <h4 class="media-heading">Привет, меня зовут Виктор!</h4>
                                <b>Обучение</b> - Сейчас я вам расскажу о наших функциях.
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary"><a href="?pro"style="text-decoration:none; color:white;"> ' . ($b['pro']==1?'Выключить':'Включить').'</a>  <i class="fa fa-retweet"></i></button>
<button type="button" class="btn btn-primary" onclick="BlankonDashboard.callModal2()" data-dismiss="modal">Ну что? Поехали! <i class="fa fa-arrow-circle-right"></i></button>
                    </div>
                </div>
            </div>
        </div>

        <div class="modal modal-success fade" id="modal-bootstrap-tour-new-features" tabindex="-1" role="dialog">
            <div class="modal-dialog modal-lg" role="document" style="margin: 150px auto;">
                <div class="modal-content">
                    <div class="modal-header">
                        <h4 class="modal-title">Второй шаг</h4>
                    </div>
                    <div class="modal-body">
                        <div class="table-responsive">
                         <p>Profmas.Net - Это портал разработчиков сайтов.Самые свежие скрипты,уютное общение ждет вас на нашем портале.</p>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary" onclick="BlankonDashboard.handleTour()" data-dismiss="modal">В перед</button>
                    </div>
                </div>
            </div>
        </div>

        <div class="modal modal-danger fade" id="modal-bootstrap-tour-end" tabindex="-1" role="dialog">
            <div class="modal-dialog" role="document" style="margin: 150px auto;">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title">Завершение</h4>
                    </div>
                    <div class="modal-body">
                        <div class="media">
                            <div class="media-left">
                                <a href="#">
                                    <img data-no-retina class="media-object" src="/img/media/mascot/1.jpg" alt="..." style="width: 100px;">
                                </a>
                            </div>
                            <div class="media-body">
                                <h4 class="media-heading">Спасибо за просмотр!</h4>
                                <p>Обучение закончено.</p>
                                <ul class="list-inline">
                                    <li>
                                        <a href="https://wrapbootstrap.com" class="btn btn-inverse tooltips" target="_blank" data-toggle="tooltip" data-placement="top" data-title="Wrapbootstrap">W</a>
                                    </li>
                                    <li>
                                        <a href="/" class="btn btn-lilac tooltips" target="_blank" data-toggle="tooltip" data-placement="top" data-title="Our Website"><i class="fa fa-globe"></i></a>
                                    </li>
                                    <li>
                                        <a href="https://www.facebook.com" class="btn btn-facebook tooltips" target="_blank" data-toggle="tooltip" data-placement="top" data-title="Facebook"><i class="fa fa-facebook"></i></a>
                                    </li>
                                    <li>
                                        <a href="https://twitter.com" class="btn btn-twitter tooltips" target="_blank" data-toggle="tooltip" data-placement="top" data-title="Twitter"><i class="fa fa-twitter"></i></a>
                                    </li>
                                    <li>
                                        <a href="https://plus.google.com" class="btn btn-googleplus tooltips" target="_blank" data-toggle="tooltip" data-placement="top" data-title="Google+"><i class="fa fa-google-plus"></i></a>
                                    </li>
                                    <li>
                                        <a href="https://github.com" class="btn btn-default tooltips" target="_blank" data-toggle="tooltip" data-placement="top" data-title="Github"><i class="fa fa-github"></i></a>
                                    </li>
                                    <li>
                                        <a href="https://www.youtube.com" class="btn btn-youtube tooltips" target="_blank" data-toggle="tooltip" data-placement="top" data-title="Youtube"><i class="fa fa-youtube"></i></a>
                                    </li>
                                </ul>
                                <b>С уважением Администрация!</b>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
<button type="button" class="btn btn-primary"><a href="?pro"style="text-decoration:none; color:white;"> ' . ($b['pro']==1?'Выключить':'Включить').'</a>  <i class="fa fa-retweet"></i></button>
                        <button type="button" class="btn btn-primary" onclick="BlankonDashboard.handleTour()" data-dismiss="modal">Пройти еще раз <i class="fa fa-arrow-circle-right"></i></button>
                    </div>
                </div>
            </div>
        </div>
        <!--/ Конец путеводителя -->';
}
}
?>
        <!-- Начало секции JAVASCRIPT -->
        <!-- Начало системных компонентов -->
        <script src="/assets/global/plugins/bower_components/jquery/dist/jquery.min.js"></script>
        <script src="/assets/global/plugins/bower_components/jquery-cookie/jquery.cookie.js"></script>
        <script src="/assets/global/plugins/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
        <script src="/assets/global/plugins/bower_components/typehead.js/dist/handlebars.js"></script>
        <script src="/assets/global/plugins/bower_components/typehead.js/dist/typeahead.bundle.min.js"></script>
        <script src="/assets/global/plugins/bower_components/jquery-nicescroll/jquery.nicescroll.min.js"></script>
        <script src="/assets/global/plugins/bower_components/jquery.sparkline.min/index.js"></script>
        <script src="/assets/global/plugins/bower_components/jquery-easing-original/jquery.easing.1.3.min.js"></script>
        <script src="/assets/global/plugins/bower_components/ionsound/js/ion.sound.min.js"></script>
        <script src="/assets/global/plugins/bower_components/bootbox/bootbox.js"></script>
        <script src="/assets/global/plugins/bower_components/retina.js/dist/retina.min.js"></script>
        <!--/ Конец системных компонентов -->

        <!-- Начало остальных компонентов -->
        <script src="/assets/global/plugins/bower_components/bootstrap-session-timeout/dist/bootstrap-session-timeout.min.js"></script>
        <script src="/assets/global/plugins/bower_components/flot/jquery.flot.js"></script>
        <script src="/assets/global/plugins/bower_components/flot/jquery.flot.spline.min.js"></script>
        <script src="/assets/global/plugins/bower_components/flot/jquery.flot.categories.js"></script>
        <script src="/assets/global/plugins/bower_components/flot/jquery.flot.tooltip.min.js"></script>
        <script src="/assets/global/plugins/bower_components/flot/jquery.flot.resize.js"></script>
        <script src="/assets/global/plugins/bower_components/flot/jquery.flot.pie.js"></script>
        <script src="/assets/global/plugins/bower_components/dropzone/downloads/dropzone.min.js"></script>
        <script src="/assets/global/plugins/bower_components/jquery.gritter/js/jquery.gritter.min.js"></script>
        <script src="/assets/global/plugins/bower_components/skycons-html5/skycons.js"></script>
        <script src="/assets/global/plugins/bower_components/waypoints/lib/jquery.waypoints.min.js"></script>
        <script src="/assets/global/plugins/bower_components/counter-up/jquery.counterup.min.js"></script>
        <script src="/assets/global/plugins/bower_components/bootstrap-tour/build/js/bootstrap-tour.min.js"></script>
        <!--/ Конец остальных компонентов -->

        <!-- Начало страничных скриптов -->
        <script src="/assets/admin/js/apps.js"></script>
        <script src="/assets/admin/js/pages/blankon.dashboard.js"></script>
        <script src="/assets/admin/js/demo.js"></script>
        <!--/ Конец страничных скриптов -->
        <!--/ Конец секции JAVASCRIPT -->





        <script>
            (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
                (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
                    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
            })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
            ga('create', 'UA-55892530-1', 'auto');
            ga('send', 'pageview');
        </script>
    </body>



</html><?

	}
}
?>






