Просмотр файла blogs/search_key.php

Размер файла: 1.72Kb
<?php
require_once"../template/start.php";
require_once"../template/regglobals.php";
require_once"../template/config.php";
require_once"../template/functions.php";
require_once"../template/antidos.php";
require_once"../template/cookies.php";
require_once"../template/gzip.php";
require_once"../template/header.php";
require_once"../template/referer.php";
include_once"../themes/$config_themes/index.php";
include_once"../template/isset.php";
include_once"distribution/db.php";
include_once"distribution/fnc.php";
$key = check(rawurldecode(base64_decode(base64_decode($_GET['key_teg']))));
$search_ht = mysql_query("SELECT * FROM `directly_blogs` WHERE `key_blog_categories` LIKE '%".$key."%' ORDER BY `id` DESC");
if (mysql_num_rows($search_ht)){
while ($search = mysql_fetch_array($search_ht)){
echo '<div class="b"><img src="images/blg.gif" alt=""> ';
echo '<a href="index.php?do=blog&amp;id_blog_category='.$search['id'].'&amp;"><b>'.$search['name_blog_categories'].'</b></a></div><div>Просмотров: '.$search['read_blog_categories'].'<br>';
echo 'Комментариев: '.mysql_result(mysql_query("SELECT COUNT(*) FROM `blog_comments` WHERE `id_bloge_comment` = '".$search['id']."'"),0).'<br>';
echo 'Добавил: <b>'.nickname($search['author_blog_categories']).'</b> ('.date_fixed($search['time_blog_categories']).')<br>';
echo '</div>';}}else{ echo '<br><div><b>Блогов с таким ключем не найдено!</b></div><br>';}
echo '<hr><div><img src="../images/img/back.gif" alt=""> <a href="index.php?'.SID.'">В блоги</a><br>';
echo '<img src="../images/img/homepage.gif" alt=""> <a href="../index.php?'.SID.'">На главную</a></div>';
include_once"../themes/$config_themes/foot.php";
?>