<?php
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/init.php';
$title = $index['title'];
$description = (!empty($index['m_description']) ? $index['m_description'] : '');
require H.'inc/head.php';
$query = $db->getAll("SELECT id, logo, name_translit, teg, name2, review, time_video FROM `video_file` WHERE `visible` = '1' AND (`teg` like '%,1,%' OR `teg` like '%,1' OR `teg` like '1,%' OR `teg` like '1') ORDER BY review DESC LIMIT ".$index['index_newsvideo']."");
$categories = $db->getAll("SELECT `name_translit`,`name`,`id` FROM `video_dir`  ORDER BY `id` ASC");
$tags = $db->getAll("SELECT * FROM `cats_tags` ORDER BY `name`");
require 'templates/index.tpl.php';
require H.'inc/foot.php';