opentable("Paskutiniai Komentarai"); $limit = 10; $result = dbquery("SELECT * FROM ".$db_prefix."comments LEFT JOIN ".$db_prefix."users ON comment_name = user_id ORDER BY comment_datestamp DESC LIMIT 0,$limit"); if (dbrows($result)) { while ($data = dbarray($result)) { if ($data['comment_type'] == "U") { $place = BASEDIR."profile.php?lookup=".$data['comment_item_id']; } elseif ($data['comment_type'] == "N") { $place = BASEDIR."news.php?readmore=".$data['comment_item_id']; } elseif ($data['comment_type'] == "A") { $place = BASEDIR."readarticle.php?article_id=".$data['comment_item_id']; } elseif ($data['comment_type'] == "P") { $place = BASEDIR."photogallery.php?photo_id=".$data['comment_item_id']; } elseif ($data['comment_type'] == "C") { $place = BASEDIR."viewpage.php?page_id=".$data['comment_item_id']; } echo "
![]() |
".($data['comment_smileys'] == "1" ? parseubb(parsesmileys(nl2br($data['comment_message']))) : parseubb(nl2br($data['comment_message'])))." |
".(iADMIN && eregi("C",$userdata['user_rights']) ? "Trinti - Keisti - " : "")."?iūrėti |