Всем привет! может кто подсказать где тут указать путь до форума? [cite]< ?php
if (!defined('BLOCK_FILE')) {
Header(\"Location: ../index.php\");
exit;
}
global $prefix, Patrik_prefix, $db, $anonymous;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Show last new topics
$Last_New_Topics = 10;
// Last X new topics
$Count_Topics = 0;
$result = $db->sql_query("SELECT t.topic_attachment, t.topic_vote, t.topic_status, t.topic_id, t.topic_first_post_id, t.forum_id, t.topic_last_post_id, t.topic_title, t.topic_poster, t.topic_views, t.topic_replies, t.topic_moved_id, p.poster_id, p.post_time, u.username, l.username, u.user_id, tx.post_text, p.post_username, f.post_username FROM ".$prefix."_bbtopics AS t LEFT JOIN ".$prefix."_bbposts AS p ON (p.post_id = t.topic_last_post_id) LEFT JOIN ".$prefix."_bbposts AS f ON (f.post_id = t.topic_first_post_id) LEFT JOIN ".$prefix."_bbposts_text AS tx ON (p.post_id = tx.post_id) LEFT JOIN ".Patrik_prefix."_users AS u ON (u.user_id=p.poster_id) LEFT JOIN ".Patrik_prefix."_users AS l ON (l.user_id=t.topic_poster) ORDER BY t.topic_last_post_id DESC LIMIT 0, $Last_New_Topics");
while(list($topic_attachment, $topic_vote, $topic_status, $topic_id, $postf_id, $forum_id, $topic_last_post_id, $topic_title, $topic_poster, $topic_views, $topic_replies, $topic_moved_id, $poster_id, $post_time, $post1, $post2, Patrik_id, $post_text, $guest_name, $guest_name2) = $db->sql_fetchrow( $result1)) {
$post_text = preg_replace("!(\[(.*?)\])!ise","", $post_text);
$post_text = substr($post_text,0,150);
$last_date = date('d.m H:i',$post_time);
$skip_display = 0;
if ($topic_moved_id != 0) {
$skip_display = 1;
}
if ($skip_display == 0) {
$Count_Topics += 1;
if (Patrik_id!=1) {
$LastPoster = "
$post1";
} else {
if ($guest_name == "") {
$guest_name = $anonymous;
}
$LastPoster = "
$guest_name";
}
if ($topic_poster != 1) {
$OrigPoster = "
$post2";
} else {
if ($guest_name2 == "") {
$guest_name2 = $anonymous;
}
$OrigPoster = "
$guest_name2 ";
}
$TopicTitleShow = "
$topic_title";
$closed = ($topic_status == "1") ? "