= 0 ORDER BY date DESC, id DESC LIMIT $s,10"; $result = mysqli_query($link, $query); if (!$result) {echo printf("Error: %s\n", mysqli_error($link) . mysqli_connect_error());} while ($row = mysqli_fetch_array($result)) { if ($language == 'polski') { $row['topic'] = strtr($row['topic'], "ą��Ą��", "±¶Ľˇ¦¬"); $row['shortinfo'] = strtr($row['shortinfo'], "ą��Ą��", "±¶Ľˇ¦¬"); } $row['shortinfo'] = preg_replace("/\s(http:\/\/.*?)\s/i", " \\1 ", $row['shortinfo']); $row['shortinfo'] = preg_replace("/(\s?)([\w.-]+@[\w.-]+)(\s?)/i", "\\1\\2\\3", $row['shortinfo']); $inf = preg_replace("/\\n/", "
", $row['shortinfo']); // $inf = ereg_replace("\n", "
", $row['shortinfo']); for ($a = 1; $a <= 6; $a++) { if (!empty($row["foto$a"])) { $ext = strtolower(substr($row["foto$a"], -3)); // rozpoznany obrazek if ($ext == 'jpg' || $ext == 'peg' || $ext == 'gif') { $size = @GetImageSize(ROOT_DIRECTORY . "upload/" . $row["foto$a"]); $img = '

'; if ($row['ltg'] != '') { $img2 = "$img"; $img = $img2;} $inf = preg_replace("/\*\*\*zdjecie-\d\*\*\*/", $img, $inf); $inf = preg_replace("/\*\*\d\*\*/", $img, $inf); } // rozpoznany dzwięk if ($ext == 'wav' || $ext == 'mp3') { $ltm = '
dzwięk odtwórz nagranie'; $inf = preg_replace("/\*\*\d\*\*/", $ltm, $inf); } // film if ($ext == 'avi') { $ltm = '
film odtwórz film'; $inf = preg_replace("/\*\*\d\*\*/", $ltm, $inf); } // dokument html if ($ext == 'htm' || $ext == 'tml') { $ltm = '
dokument html pokaż dokument'; $inf = preg_replace("/\*\*\d\*\*/", $ltm, $inf); } // flash if ($ext == 'swf') { //**4*400x050** $patterns = "/\*\*\d?\*\d{3}x\d{3}\*\*/"; preg_match($patterns, $inf, $about); $x = substr($about[0], 4, 3); $y = substr($about[0], 8, 3); $ltm = "
"; $inf = preg_replace("/\*\*$a\*/" . $x . "x" . "$y\*\*/", $ltm, $inf); } } } ?>
 

 "; echo '' . LN_GALLERY . ''; unset($pliki);unset($sc); $pliki = array(); if ($handle = @opendir('zdjecia/' . $row['ltg'])) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && preg_match("^tn_", $file)) {$pliki[] = $file;} } closedir($handle); } $sc = count($pliki); echo ' ' . $sc . ' exp.'; } ?>
 


<?php echo LN_NEWS_C; ?>

0) { echo ' " . LN_FORWARD . "  ";}?>