<aside class="left-aside">
    <div class="user-info grid __no-gutters __center">
        <div class="user-info_avatar grid_cell"><img src="<?=Serval::call('Auth')->Data['avatar'] ? Serval::call('Auth')->Data['avatar'] : (isset($this->config['http_dir']) ? $this->config['http_dir'] : '/').'skin/images/no-photo.png'?>" alt="Аватар"></div>
        <div class="user-info_name grid_cell">
					<?=Serval::call('Auth')->Data['fio']?><br>
					<a href="<?=(isset($this->config['http_dir']) ? $this->config['http_dir'] : '/')?>profile/" class="ic_user">Моя информация</a>
				</div>
    </div>
    <?
			switch(Serval::call('Auth')->Data['type']){
				case 'admin':
					?><div class="user-info_status __admin-status">Администратор</div><?
				break;
				case 'user':
					?><div class="user-info_status __user-status">Пользователь</div><?
				break;
			}
		?> 
    <nav>
        <ul class="menu">
            <li>
                <a href="<?=(isset($this->config['http_dir']) ? $this->config['http_dir'] : '/')?>" class="menu_i ic_main __ic-abs">Главная страница</a>
            </li>
            <li>
                <form method="get" action="<?=(isset($this->config['http_dir']) ? $this->config['http_dir'] : '/')?>projects/" name="search" id="search" class="search-form">
                    <input class="inp-base" type="text" name="q" value="<?=clearText($_GET['q'])?>" placeholder="Поиск">
                    <button type="submit" class="ic_search __ic-abs"></button>
                </form>
            </li>   
            <li>
                <a href="<?=(isset($this->config['http_dir']) ? $this->config['http_dir'] : '/')?>projects/" class="menu_i ic_list __ic-abs">Проекты</a>
            </li>
            <?if(Serval::call('Auth')->Data['type']=="admin"){?>
            <li>
                <a href="<?=(isset($this->config['http_dir']) ? $this->config['http_dir'] : '/')?>users/" class="menu_i ic_user __ic-abs">Пользователи системы</a>  
            </li>
            <li>
                <a href="<?=(isset($this->config['http_dir']) ? $this->config['http_dir'] : '/')?>settings/" class="menu_i ic_info __ic-abs">Настройка системы</a>
            </li>
            <?}?>
            <li>
                <a href="<?=(isset($this->config['http_dir']) ? $this->config['http_dir'] : '/')?>exit/" class="menu_i ic_exit __ic-abs">Выход</a>
            </li>
        </ul>
    </nav>
</aside>

<section class="main-container">

    <header class="main-header">
        <div class="logo"><a href="<?=(isset($this->config['http_dir']) ? $this->config['http_dir'] : '/')?>" title=""><img src="<?=(isset($this->config['http_dir']) ? $this->config['http_dir'] : '/')?>skin/images/logo.png" alt=""></a></div>
        <div class="header_ttl">Система мониторинга целостности файлов</div>
		    <?if( $ver = check_update() ){?>
				<a class="btn __primary new-version-load" target="_blank" href="http://www.serval.site/download/">
					Доступна новая версия Serval <?=$ver?> [cкачать]
				</a>
				<?}?>
		</header>

    <main class="main">