$show_all=true; 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(); // форма авторизации echo "
"; 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' '; } echo' ';$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 "