{% else-1 %}
uzbeck * [мошенник]
(14 мар 2016, 14:48) (0/0) [0]
stoper, нету этого файла
uzbeck * [мошенник]
(14 мар 2016, 00:23) (0/0) [0]
Subway, echo rez_text (htmlspecialchars
($ post [ 'msg ' ]))." < a href ='/ blog /list.php ?id = $ post [id ] '>Batafsil .. .< /a >< br / >" ;
uzbeck * [мошенник]
(14 мар 2016, 00:13) (0/0) [0]
ЙоПтИк, выше см. все есть
uzbeck * [мошенник]
(13 мар 2016, 22:04) (0/0) [0]
stoper, смотрю, и?
uzbeck * [мошенник]
(13 мар 2016, 21:30) (0/0) [0]
stoper, <?php


echo "<table style='width:100%; height:30px' cellspacing='0' cellpadding='0'><tr>";

echo "<td class='title' style='width:35%;border-right:1px solid #29447e'><a href='blog/dir.php'><center>Bo'limlar</a></center></td>";
echo '<td class="title"><a href="?sort=t"><center>Yangilari</a></center></td>';
echo '<td class="title" style="width:35%;border-left:1px solid #29447e"><a href="?sort=c"><center>Dolzarb</a></center></td>';

echo '</tr></table>';

$usearch=NULL;
if (isset($_SESSION['usearch']))$usearch=$_SESSION['usearch'];
if (isset($_POST['usearch']))$usearch=$_POST['usearch'];

if ($usearch==NULL)
unset($_SESSION['usearch']);
else
$_SESSION['usearch']=$usearch;
$usearch=preg_replace("#( ){1,}#","",$usearch);

$order='order by `time` desc';
echo "<form class='mess' method='post' action='/blog/search.php?go'><center>";
$usearch=stripcslashes(htmlspecialchars($usearch));
echo "<input type=\"text\" name=\"usearch\" maxlength=\"16\" value=\"$usearch\" style='width:70%' placeholder='Yangilik nomini kiriting'/>\n";
echo "<input type=\"submit\" value=\"Qidirish\" />";
echo "</center></form>\n";


if (isset($_GET['go'])){
$k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `notes` where `name` like '%".mysql_real_escape_string($usearch)."%'"*,0);
$k_page=k_page($k_post,$set['p_str']);
$page=page($k_page);
$start=$set['p_str']*$page-$set['p_str'];
$q=mysql_query("SELECT * FROM `notes` WHERE `name` like '%".mysql_escape_string($usearch)."%' $order LIMIT $start, $set[p_str]"*;

if ($k_post==0){
echo "<div class='mess'>\n";
echo "Нет записей\n";
echo "</div>\n";
}
$num=0;
while ($post = mysql_fetch_assoc($q)){


echo "<img src='/style/icons/dnev.png' alt='*'> ";

echo "<a href='/blog/list.php?id=$post[id]'>" . htmlspecialchars($post['name']) . "</a> \n";

echo " <span style='time'>(".vremja($post['time'])."*</span>\n";

$k_n= mysql_result(mysql_query("SELECT COUNT(*) FROM `notes` WHERE `id` = $post[id] AND `time` > '".$ftime."'",$db), 0);
if ($k_n!=0)echo " <img src='/style/icons/new.gif' alt='*'>";
}


if ($k_page>1)str('?go&amp;',$k_page,$page); // Вывод страниц

}




//////////////////////////////////////////////////////
//echo '<div class="mess">';




if (isset($_GET['sort']) && $_GET['sort'] =='t')$order='order by `time` desc';
elseif (isset($_GET['sort']) && $_GET['sort'] =='c') $order='order by `count` desc';
else $order='order by `time` desc';



$k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `notes` "*,0);
$k_page=k_page($k_post,$set['p_str']);
$page=page($k_page);
$start=$set['p_str']*$page-$set['p_str'];

$q=mysql_query("SELECT * FROM `notes` $order LIMIT $start, $set[p_str]"*;
echo "<table class='post'>\n";
if ($k_post==0)
{
echo " <div class='mess'>\n";
echo "Нет записей\n";
echo " </div>\n";
}


while ($post = mysql_fetch_assoc($q)){
echo '<div class="mess">';
echo "<div class='blog_name'><img src='/style/icons/dnev.png' alt='*'> ";
echo '<a href="/blog/list.php?id='.$post['id'].'">'.htmlspecialchars($post['name']).'</a></div>';

$k_n= mysql_result(mysql_query("SELECT COUNT(*) FROM `notes` WHERE `id` = $post[id] AND `time` > '$ftime'",$db), 0);
$likes = mysql_result(mysql_query("SELECT COUNT(*) FROM `notes_like` WHERE `like` = '1' AND `id_notes` = '".$post['id']."' LIMIT 1"*,0);
echo '<div class="blog">';
echo rez_text(htmlspecialchars($post['msg']))." <a href='/blog/list.php?id=$post[id]'>Batafsil...</a><br />";
echo "(".vremja($post['time'])."*";
echo '<span style="float:right"><img src="/style/icons/bbl5.png" alt="*"/> '.mysql_result(mysql_query("SELECT COUNT(*) FROM `notes_komm` WHERE `id_notes` = '$post[id]'"*,0).' <img src="/style/icons/eye.png"/> '.$post['count'].' <img src="/style/icons/like.gif" alt="*" /> '.$likes.'</span></div>';
echo '</div>';
}



if (isset($_GET['sort'])) $dop="sort=$_GET[sort]&amp;";
else $dop='';
if ($k_page>1)str('?'.$dop.'',$k_page,$page); // Вывод страниц
///////////////////////////////////////////////////

echo '</div>';


?>
uzbeck * [мошенник]
(13 мар 2016, 21:10) (0/0) [0]
DeadPool, <?
echo '<div class="mess">';
$q_menu=mysql_query("SELECT * FROM `menu` ORDER BY `pos` ASC"*;
while ($post_menu = mysql_fetch_assoc($q_menu))
{
if ($post_menu['type']=='link')echo "<div class='main_menu'>";
if (!isset($post_menu['icon']))mysql_query('ALTER TABLE `menu` ADD `icon` VARCHAR( 32 ) NULL DEFAULT NULL');
if (!isset($post_menu['type']))mysql_query("ALTER TABLE `menu` ADD `type` ENUM('link', 'razd') NOT NULL DEFAULT 'link' AFTER `id`"*;
if ($post_menu['type']=='link')echo "<img src='/style/icons/$post_menu[icon]' alt='*'> ";
if ($post_menu['type']=='link')echo "<a href='$post_menu[url]'>";
else echo "<div class='menu_razd'>";
echo $post_menu['name'];
if ($post_menu['type']=='link')echo "</a>\n";
if ($post_menu['counter']!=NULL && is_file(H.$post_menu['counter']))
{
Удалён H.$post_menu['counter'];
}
echo "</div>";
}
if (user_access('adm_panel_show')){
echo "<div class='main2'>\n";
echo "<img src='/style/icons/admin.png' alt='S' /> <a href='plugins/admin/'>Админ кабинет</a> ";
include_once "plugins/admin/count.php";
echo "</div>";
}
echo "</div>";
?>
uzbeck * [мошенник]
(13 мар 2016, 20:58) (0/0) [0]
Diwate, нету этого, не нашел
uzbeck * [мошенник]
(13 мар 2016, 20:56) (0/0) [0]
blog / index php


<?
/*
=======================================
Дневники для Dcms-Social
Автор: Искатель
---------------------------------------
Этот скрипт распостроняется по лицензии
движка Dcms-Social.
При использовании указывать ссылку на
оф. сайт http://dcms-social.ru
---------------------------------------
Контакты
ICQ: 587863132
http://dcms-social.ru
=======================================
*/
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';

/* Бан пользователя */
if (isset($user) && mysql_result(mysql_query("SELECT COUNT(*) FROM `ban` WHERE `razdel` = 'notes' AND `id_user` = '$user[id]' AND (`time` > '$time' OR `view` = '0' OR `navsegda` = '1')"*, 0)!=0)
{
header('Location: /ban.php?'.SID);exit;
}

$set['title']='Блоги';
include_once '../sys/inc/thead.php';
title();
aut(); // форма авторизации



if (isset($_GET['sort']) && $_GET['sort'] =='t')$order='order by `time` desc';
elseif (isset($_GET['sort']) && $_GET['sort'] =='c') $order='order by `count` desc';
else $order='order by `time` desc';

if(isset($user))
{
echo'<div class="foot">';
echo "<a href=\"user.php\">Мои блоги</a> | ";
echo "<a href=\"add.php\">Создать дневник</a>";
echo '</div>';
}

echo'<div class="foot">';
if (isset($_GET['sort']) && $_GET['sort'] =='t'){

echo"<b>Новые</b> | <a href='?sort=c'>Популярные</a>\n";

}elseif (isset($_GET['sort']) && $_GET['sort'] =='c'){

echo"<a href='?sort=t'>Новые</a> | <b>Популярные</b>\n";

}else{

echo"<b>Новые</b> | <a href='?sort=c'>Популярные</a>\n";

}
echo '</div>';$k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `notes` "*,0);
$k_page=k_page($k_post,$set['p_str']);
$page=page($k_page);
$start=$set['p_str']*$page-$set['p_str'];

$q=mysql_query("SELECT * FROM `notes` $order LIMIT $start, $set[p_str]"*;
echo "<table class='post'>\n";
if ($k_post==0)
{
echo " <div class='mess'>\n";
echo "Нет записей\n";
echo " </div>\n";
}

while ($post = mysql_fetch_assoc($q))
{

/*-----------зебра-----------*/
if ($num==0)
{echo " <div class='nav1'>\n";
$num=1;
}elseif ($num==1)
{echo " <div class='nav2'>\n";
$num=0;}
/*---------------------------*/

echo "<img src='/style/icons/dnev.png' alt='*'> ";

echo "<a href='list.php?id=$post[id]'>" . htmlspecialchars($post['name']) . "</a>";

echo " <span style='time'>(".vremja($post['time'])."*</span>\n";

$k_n= mysql_result(mysql_query("SELECT COUNT(*) FROM `notes` WHERE `id` = $post[id] AND `time` > '$ftime'",$db), 0);

if ($k_n!=0)echo " <img src='/style/icons/new.gif' alt='*'>";


echo " </div>\n";

}
echo "</table>\n";

if (isset($_GET['sort'])) $dop="sort=$_GET[sort]&amp;";
else $dop='';
if ($k_page>1)str('?'.$dop.'',$k_page,$page); // Вывод страниц
include_once '../sys/inc/tfoot.php';
?>
uzbeck * [мошенник]
(13 мар 2016, 20:55) (0/0) [0]
DeadPool, site . ru / index php
<?
include_once 'sys/inc/start.php';
include_once 'sys/inc/compress.php';
include_once 'sys/inc/sess.php';
include_once 'sys/inc/home.php';
include_once 'sys/inc/settings.php';
include_once 'sys/inc/db_connect.php';
include_once 'sys/inc/ipua.php';
include_once 'sys/inc/fnc.php';
include_once 'sys/inc/user.php';
include_once 'sys/inc/icons.php'; // Иконки главного меню

include_once 'sys/inc/thead.php';
title();
err();

if (!$set['web']){

include_once 'blog/inc.php';
include_once 'sys/inc/main_menu.php';

}else{
include_once 'style/themes/'.$set['set_them'].'/index.php'; // главная web темы
}


include_once 'sys/inc/tfoot.php';
?>
uzbeck * [мошенник]
(13 мар 2016, 20:48) (0/0) [0]
DeadPool, в каком файле менять я не знаю