if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
$iletekstu=150; //ilość wyświetlanych znaków z treści komentarza
@openside("3 ost. kom. w Artykułach");
$result = dbquery("SELECT comment_id, comment_message, comment_item_id, comment_datestamp, comment_type, ifnull(film_subject, comment_item_id)as 'film_nazwa' FROM ".$db_prefix."comments LEFT JOIN ".$db_prefix."film ON comment_item_id=film_id WHERE comment_type='W' GROUP BY comment_id, comment_message, comment_item_id, comment_datestamp, film_id ORDER BY comment_id DESC LIMIT 0,9");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['comment_message'], $iletekstu);
$typ='filmy.php?film_id' ;
$nazwa='Artykuły';
echo " Dodał: ".$data['film_nazwa']."".showdate("shortdate", $data['comment_datestamp'])." $itemsubject
\n";
}
} else {
echo "