????? ????? ????? ?? ???? ????
'; ## CUSTOMIZE SETTINGS FOR YOUR SITE ## $db_host = "localhost"; // Change this if your MySQL database host is different. $db_name = ""; // ??? ??????? ????? ?? ???? ??? ?? ?? $db_user = ""; // ??? ?????? ????? ?? ??????? ???? ??? ?? ?? $db_pw = ""; // ????? ??????? ???? ??? ?? ?? $db_pre = "mybb_"; // Tables prefix $forum_url = "http://"; // ???? ???? ??? ?? ?? $limit = "30"; // ????? ?????? ????? ???? ??? $txtlimit = "100"; // This is the character limit. ####################################### // Connecting to your database mysql_connect($db_host, $db_user, $db_pw ); mysql_select_db($db_name); mysql_query("SET NAMES utf8"); $thread_sql = mysql_query("SELECT tid,subject,lastposter,replies,views FROM ".$db_pre."threads order by lastpost DESC LIMIT $limit"); while($thread_get=mysql_fetch_array($thread_sql)) { $replycount = $thread_get['replies']; $views = $thread_get['views']; $threadid = $thread_get['tid']; $poster = $thread_get['lastposter']; $title = $thread_get['subject']; if(strlen($title) > ($txtlimit-4)){ $title = substr($title,0,$txtlimit).'...'; } echo " "; } echo "
????? ???? ?????? ????
$title $replycount $views $poster
"; ?>