';*/ $text .= ''; $text .= ''; $text .= 'hoper.su'; $text .= 'http://hoper.su/'; $text .= 'Регион Хопёр. Новости Прихопёрья'; $text .= 'ru'; $text .= 'hoper.su@gmail.com'; $text .= 'ХОПЁРЪ'; echo $text; $result = mysql_query ("SELECT a.id_msg, a.poster_time, a.subject, LEFT(a.body, 300), a.id_topic, b.id_board, bb.name FROM hop_smf_messages as a left join hop_smf_topics as b on a.id_msg = b.id_first_msg inner join hop_smf_boards as bb on b.id_board = bb.id_board where ((b.id_board = 1) or (b.id_board = 2) or (b.id_board = 3) or (b.id_board = 4) or (b.id_board = 5)) order by a.id_topic desc limit 10; "); //where b.id_board = $board //$num_rows = mysql_num_rows($result); $i = 0; while(list($id, $poster_time, $subject, $body, $topic, $board, $board_name) = mysql_fetch_row ($result)) { $i++; $dat_path = get_path_by_date($poster_time); $p = get_part_by_id($board).'/'.$dat_path.'/'; if ($board == 4) $subject = $subject.'. Фоторепортаж'; else $subject = $subject; echo ' '.$subject.' http://hoper.su/'.$p.$topic.'.html http://hoper.su/'.$p.$topic.'.html '.$poster_time.' '; } echo ''; echo ''; /* $mstr = '1234._5678910.'; echo $mstr; echo '

'; $mlen = strlen($mstr); echo $mlen; echo '

'; $pos = strpos($mstr, '._'); echo $pos; echo '

'; $res1 = substr($mstr, 0,$pos+1); echo $res1; echo '

'; $pos2 = $mlen - $pos - 2; echo $pos2; echo '

'; $res2 = substr($mstr, -$pos2); echo $res2; echo '

'; */ ?>