Kod cały wygląda tak:
<?php
$fp = fopen("data/shouts.txt","a"); fwrite($fp,"<b><font style=font-family:Verdana;font-size:10px;>[".$today."] ".$_POST['user'].":</font></b><br>".$_POST['shout']."<br>n");
$file = 'data/shouts.txt';
$newfile = 'data/shouts_temp.txt';
$wpisy = file("data/shouts_temp.txt");
$fp = fopen("data/shouts.txt","w"); for($i=49;$i<=0;$i--)
?>
<?php
function callback0($buffer)
{
return (str_replace(":)", "<img src=gfx/emots/smile.gif alt=:)>", $buffer)); }
function callback1($buffer)
{
return (str_replace(":(", "<img src=gfx/emots/sad.gif alt=:(>", $buffer)); }
function callback2($buffer)
{
return (str_replace(";)", "<img src=gfx/emots/blink.gif alt=;)>", $buffer)); }
function callback3($buffer)
{
return (str_replace(":x", "<img src=gfx/emots/cant.gif alt=:x>", $buffer)); }
function callback4($buffer)
{
return (str_replace(":X", "<img src=gfx/emots/cant.gif alt=:X>", $buffer)); }
function callback5($buffer)
{
return (str_replace(":/", "<img src=gfx/emots/egh.gif alt=:/>", $buffer)); }
function callback6($buffer)
{
return (str_replace(":|", "<img src=gfx/emots/dis.gif alt=:|>", $buffer)); }
function callback7($buffer)
{
return (str_replace(":O", "<img src=gfx/emots/woot.gif alt=
>", $buffer)); }
function callback8($buffer)
{
return (str_replace(":o", "<img src=gfx/emots/woot.gif alt=
>", $buffer)); }
function callback9($buffer)
{
return (str_replace(":P", "<img src=gfx/emots/ton.gif alt=
>", $buffer)); }
function callback10($buffer)
{
return (str_replace(":p", "<img src=gfx/emots/ton.gif alt=
>", $buffer)); }
function callback11($buffer)
{
return (str_replace(":D", "<img src=gfx/emots/happy.gif alt=
>", $buffer)); }
function callback12($buffer)
{
return (str_replace(":d", "<img src=gfx/emots/happy.gif alt=
>", $buffer)); }
function callback13($buffer)
{
return (str_replace(":'(", "<img src=gfx/emots/vsad.gif alt=:'(>", $buffer)); }
function callback14($buffer)
{
return (str_replace(":]", "<img src=gfx/emots/square.gif alt=:]>", $buffer)); }
function callback15($buffer)
{
return (str_replace(":egh:", "<img src=gfx/emots/egh2.gif alt=:egh:>", $buffer)); }
function callback16($buffer)
{
return (str_replace(":mrgreen:", "<img src=gfx/emots/eek.gif alt=:mrgreen:>", $buffer)); }
function callback17($buffer)
{
return (str_replace(":mad:", "<img src=gfx/emots/mad.gif alt=:mad:>", $buffer)); }
function callback18($buffer)
{
return (str_replace(":oops:", "<img src=gfx/emots/oops.gif alt=:oops:>", $buffer)); }
function litera1($buffer)
{
}
function litera2($buffer)
{
}
function litera3($buffer)
{
}
?>
<html>
<head>
<style>
a {
text-decoration: none;
color: #000; }
a:hover {
text-decoration: underline;
color: #004887; }
</style>
<meta http-equiv="refresh" content="60; url=show.php">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2" />
</head>
<body style="background-color: #F1F5F8; font-family:Verdana; font-size:11px;" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginwidth="0" marginheight="0" onload="parent.document.shoutForm.shout.value=''">
<?php
$wpisy = file("data/shouts.txt");
for($i=49;$i<=0;$i--)
?>
</body>
</html>
Tu jest jeszcze z emotami ale tego jak narazie nie poprawiam