=$start) { $buffer=explode('<~>',$file[$end]); // komentarze if (file_exists('btools/news/komentarze/'.$buffer[0].'.php')) { $plik_komentarzy=file('btools/news/komentarze/'.$buffer[0].'.php'); $ile= count(file('btools/news/komentarze/'.$buffer[0].'.php')); } else $ile='0'; $date=date($dateFormat,$buffer[1]); $buffer[2]=stripslashes($buffer[2]); $buffer[3]=stripslashes($buffer[3]); $buffer[4]=stripslashes($buffer[4]); $buffer[5]=chop($buffer[5]); if (file_exists('btools/users/'.$buffer[5].'.php')) include ('btools/users/'.$buffer[5].'.php'); else $email = 'Użytkownik nie podał adresu e-mail !'; $temat=$buffer[2]; $autor=$buffer[5]; $tresc=$buffer[3]; $dluga_tresc=$buffer[4]; $kid=$buffer[0]; $skin=file('btools/news/theme.php'); $skin=join(' ',$skin); $skin=str_replace('{temat}',$temat,$skin); $skin=str_replace('{email}',$email,$skin); $skin=str_replace('{data}',$date,$skin); $skin=str_replace('{licznik}',"$ile",$skin); // tu musi byc "$ile" inaczej nie zadziala ! $skin=str_replace('{autor}',$autor,$skin); $skin=str_replace('{komentarze_link}','',$skin); if ($dluga_tresc&&!$full) { $skin=str_replace('{tresc}',$tresc.'

więcej »
',$skin); } else if ($dluga_tresc&&$full) { $skin=str_replace('{tresc}',$tresc.'

'.$dluga_tresc,$skin); } else $skin=str_replace('{tresc}',$tresc,$skin); if (chop($buffer[2])){ echo $skin; $pokazane++; } $end--; } if($count>$news_number) { echo "Archiwum"; // tu wstaw linka do archiwum ! } } else { $n=0; while ($n<=$count) { $temp=explode('<~>',$file[$n]); if ($temp[0]==$HTTP_GET_VARS["kid"])break; $n++; } if (file_exists('btools/news/komentarze/'.$HTTP_GET_VARS['kid'].'.php')) { $ile=count(file('btools/news/komentarze/'.$HTTP_GET_VARS['kid'].'.php')); } else $ile='0'; $buffer=explode('<~>',$file[$n]); // wyglad newsa .... $date=date($dateFormat,$buffer[1]); // format daty newsa $buffer[5]=chop($buffer[5]); if (file_exists('btools/users/'.$buffer[5].'.php')) include ('btools/users/'.$buffer[5].'.php'); else $email = 'Użytkownik nie podał adresu e-mail !'; $buffer[2]=stripslashes($buffer[2]); $buffer[3]=stripslashes($buffer[3]); $buffer[4]=stripslashes($buffer[4]); $temat=$buffer[2]; $autor=$buffer[5]; $tresc=$buffer[3]; $dluga_tresc=$buffer[4]; $kid=$buffer[0]; $skin=file('btools/news/theme.php'); $skin=join(' ',$skin); $skin=str_replace('{email}',$email,$skin); $skin=str_replace('{temat}',$temat,$skin); $skin=str_replace('{data}',$date,$skin); $skin=str_replace('{licznik}',"$ile",$skin); $skin=str_replace('{autor}',$autor,$skin); $skin=str_replace('{komentarze_link}','',$skin); if ($dluga_tresc&&!$full) { $skin=str_replace('{tresc}',$tresc.'

...
więcej ...',$skin); } else if ($dluga_tresc&&$full) { $skin=str_replace('{tresc}',$tresc.'

'.$dluga_tresc,$skin); } else $skin=str_replace('{tresc}',$tresc,$skin); echo $skin; include ('btools/news/komentarze/koment.php'); } ?>
 
::: news ::: foto ::: audio ::: video ::: sponsorzy ::: kontakt ::: o mnie :::