<td width="84%" background="' . $img . '/img/comm.jpg"></td> </tr>'; if ($user_id > 0) { $up = myquery("update blog_users set prosm=prosm+1 where user_id='" . $dd['user_id'] . "'"); } if ($dd['nocomm'] == '1') { echo ' <tr> <td colspan=2><center><br><br><font color=red><b>Добавление комментариев запрещено<br><a href="index.php?option=user&user='******'user_id'] . '">Выйти в дневник</a></b></font></center></td> </tr>'; break; } $sel = myquery("select blog_comm.*,blog_users.viewimg AS viewimg,blog_users.name AS user_name from blog_comm,blog_users where blog_comm.user_id=blog_users.user_id AND blog_comm.post_id='{$comm}' order by blog_comm.comm_id asc limit " . ($page - 1) * $line . ", {$line}"); if ($sel != false) { while ($p = mysql_fetch_array($sel)) { $p['post'] = stripslashes(nl2br(convert_in_tags($p['post']))); echo ' <tr> <td width="16%" height=24 background="' . $img . '/img/comm.jpg"><center><font color=red><b><a href="index.php?option=user&user='******'user_id'] . '">' . $p['user_name'] . '</a><br></td> <td width="84%" background="' . $img . '/img/comm.jpg"> Написал: <font color=red><b>' . date("H:i:s d-m-Y", $p['comm_time']) . '</b></font><br></td> </tr> <tr> <td width="16%" background="' . $img . '/img/story-content-bg2.gif" valign=top>'; if ($p['viewimg'] != '0') { echo '<center><br><img src="' . $img . '/photo/' . $p['user_id'] . '.gif">'; } echo '</td> <td width="84%" background="' . $img . '/img/story-content-bg2.gif" valign=top><a name="comm' . $p['comm_id'] . '"> </a><p align="left" style="margin:10px;font-size:8pt;">' . $p['post'] . '</p></td> </tr> <tr>';
} if ($file == '..') { continue; } $len = strlen($file) - 4; $filesmile = ':' . substr($file, 0, $len) . ':'; $text = str_replace($filesmile, "", $text); } } return $text; } $items = array(); $sel = myquery("SELECT forum_topics.last_user AS last_user, forum_topics.id AS id, forum_topics.top AS top, forum_topics.text AS text FROM forum_topics,forum_kat,forum_main WHERE forum_main.level='' AND forum_main.id=forum_kat.main_id AND forum_kat.id = forum_topics.kat_id AND forum_kat.clan='0' order by forum_topics.last_date DESC limit 15"); while ($w = mysql_fetch_array($sel)) { list($last_otvet) = mysql_fetch_array(myquery("SELECT text FROM forum_otv WHERE topics_id=" . $w['id'] . " ORDER BY id DESC LIMIT 1")); $last_otvet = convert_in_tags($last_otvet); $items[] = array("title" => $w['top'], "description" => $last_otvet, "link" => 'http://' . domain_name . '/forum/?act=topic&id=' . $w['id'] . '&page=n'); } $feed = new rss_generator('Средиземье :: Зал Палантиров'); $feed->__set('title', 'Средиземье :: Зал Палантиров'); $feed->__set('description', 'Последние сообщения из Зала Палантиров СРЕДИЗЕМЬЯ'); $feed->__set('link', 'http://' . domain_name . '/forum/'); header('Content-type: application/xml'); echo $feed->get($items); if (function_exists("save_debug")) { save_debug(); } exit; } else { session_start(); if ($option == 'register') {