Witam Was.
Wrzuciłem na mój autoindexowalny katalog shoutbox -
http://www.shoutpro.com/index.php jednak nie działają w nim polskie znaki.
Plik, do którego wrzucane są shouty to zwykły .php bez niczego poza treścią.
To fragment pliku php, który odpowiada za tworzenie wpisów:
if($action=="post"){
if (!$name) echo("<script>alert(\"".$inputname."\");</script>"); else if (!$shout || $shout=="treść") echo("<script>alert(\"".$inputshout."\");</script>"); else {
//Prepare the shout
badname($name);
if(!namelength
($name,$nameminlength,$namemaxlength)) die(); //Check length of name to min and max lengths $shout = first($shout);
$name = first($name);
if(!length
($shout,$minlength,$maxlength)) die(); //Check length of shout to min and max lengths //Find the date and time
$date = date("j.m.Y", time() + $timeoffset * 3600
); $time = date("H:i", time() + $timeoffset * 3600
); //Add the shout to the end of shouts.php
if($FilePointer = fopen("shouts.php", "a+")){ fwrite($FilePointer,"$name|^|$shout|^|$date|^|$time|^|$_SERVER[REMOTE_ADDR]|^|\n"); }
}
echo("<script>location.href='shoutbox.php';</script>"); }
Jest możliwość włączenia zapisywania treści z polskimi znakami? Zmiana kodowania tego pliku nie zostaje zapamiętana...