File size: 515B
<?php
include("conf.php");
include("gore.php");
?>
<div class="a">Chat</div>
<div class="b">
<?php
$text=$_POST['poruka'];
include("text.php");
if(!$text){
echo "You must write message !!!";
}
else
{
$fajl="girls.sejk";
$a=fopen($fajl, "a");
fwrite($a, "<b>@#@&p=$ime\">$ime</a>:</b> $text <br/> ($datum - $vreme) \r\n");
fclose($a);
echo "Writen !!!";
echo "<meta http-equiv=\"Refresh\" content=\"1; url=/chat.php?ime=$ime&sifra=$sifra&c=girls\">";
}
echo "</div>";
include("dole.php");
?>