View file sejkmotorv1.0/razglas2.php

File size: 725B
<?php
include("gore.php");
include("conf.php");
?>
<div class="a">Shoutbox</div>
<div class="b">
<?php
$text=$_POST['razglas'];
include("text.php");
$text=eregi_replace("((https?|ftp)://[[:alnum:]_=/-]+(\\.[[:alnum:]_=/-]+)*(/[[:alnum:]+&._=/%]*(\\?[[:alnum:]?+&_=/%]*)?)?)", "[waps.iz.rs]", $text);

$a=strlen($text);
if(!$text){
echo "You must write text !!!";
}
else
{
$fajl="razglas.sejk";
fopen($fajl, "w+");


$fo=fopen($fajl, "a");
$upis="$ime@#@$text<br/><small>($datum - $vreme)</small>";
fwrite($fo, $upis);
fclose($fo);

echo "Shout is added !!!";
echo "<meta http-equiv=\"Refresh\" content=\"1; url=index.php?ime=$ime&sifra=$sifra\">";
}



echo "</div>";
include("dole.php");
?>