CODE///////////////////////////////////////////////////////////////////// else if($action=="shout") { $shtxt = $_POST["shtxt"]; addonline(getuid_sid($sid),"scrie instant","");
echo "<head>";
echo "<title>$sitename</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"themes/$theme[0]\">";
echo "</head>";
echo "<body>";
echo "
"; if(getplusses(getuid_sid($sid))<75) { echo "<img src="images/notok.gif" alt="X"/>trebuie sa ai 75 de credute sa poti scrie mesaje insatnt. Pentru a obtine credite posteaza pe forum!"; }else{ $shtxt = $shtxt; $uid = getuid_sid($sid); $shtm = time(); $antiflood = 100;/// anti flood time
$lastshout = mysql_fetch_array(mysql_query("SELECT MAX(shtime) FROM ibwf_shouts WHERE shouter='".$uid."'"));
$shoutfl = $lastshout[0]+$antiflood;
if(ismod($uid))$shoutfl=0;
if($shoutfl<$tm) {
$res = mysql_query("INSERT INTO ibwf_shouts SET shout='".$shtxt."', shouter='".$uid."', shtime='".$shtm."'");
if($res)
{
$shts = mysql_fetch_array(mysql_query("SELECT shouts from ibwf_users WHERE id='".$uid."'"));
$shts = $shts[0]+1;
mysql_query("UPDATE ibwf_users SET shouts='".$shts."' WHERE id='".$uid."'");
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Shout added successfully";
}else{
$rema = $shoutfl - $tm;
echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
echo "Scri prea des, mai asteapta: $rema secunde
"; } }else{ echo "<img src="images/notok.gif" alt="X"/>databases eror"; } } echo "
<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt=""/>acasa</a>";
echo "
";
echo "</body>";
}