Файл: my.net.ru/modules/search/index.php
Строк: 40
<?php
html::title('Поиск по сайту');
acms_header();
if (post('search')){
session('search', esc(post('search')));
}
define('SEARCH', tabs(session('search')));
//Пути до поиска по определенным модулям
if (get('type') == 'blogs'){
require_once (ROOT.'/modules/search/plugins/blogs.php');
}elseif (get('type') == 'photos'){
require_once (ROOT.'/modules/search/plugins/photos.php');
}elseif (get('type') == 'videos'){
require_once (ROOT.'/modules/search/plugins/videos.php');
}elseif (get('type') == 'forum'){
require_once (ROOT.'/modules/search/plugins/forum.php');
}elseif (get('type') == 'users'){
require_once (ROOT.'/modules/search/plugins/users.php');
}elseif (get('type') == 'music'){
require_once (ROOT.'/modules/search/plugins/music.php');
}elseif (get('type') == 'communities'){
require_once (ROOT.'/modules/search/plugins/communities.php');
}elseif (get('type') == 'downloads'){
require_once (ROOT.'/modules/search/plugins/downloads.php');
}
?>
<div class='search-main-optimize'>
<form method='post' class='ajax-form2' action='/m/search/'>
<input type='text' name='search' class='search-main' placeholder='<?=lg('Что ищем?')?>' value='<?=SEARCH?>'>
<button class="search-main-button ajax-button-search"><?=icons('search', 20)?></button>
</form>
</div>
<?
if (str(SEARCH) > 0){
?>
<div class='list-body'>
<div class='list-menu'>
<b><?=lg('Результаты поиска')?>:</b>
</div>
<?=direct::components(ROOT.'/modules/search/components/', 0)?>
</div>
<?
}else{
html::empty('Нет результатов', 'search');
}
back('/', 'На главную');
acms_footer();