Help

Started on the old forum in December 2007 · view the original in the archive · old links redirect here

7 replies · 646 views · started 18 years ago · 1 min read

3 participants
Guest #1

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>";

}

subzero Super moderator Fellow · 3,954 posts #2

help in what ?

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Guest #3

is not working, whend write msg, give my "databases eror"

blackhowk Senior · 411 posts #4

first: see this:

if($shoutfl<$tm) { /* eveniment script */

}else{ echo "<img src="images/notok.gif" alt="X"/>databases eror"; }

so check this if is true: if($shoutfl<$tm)

echo $shoutfl; echo $tm;

Guest #5

tot nu inteleg, ce sa i fac la ce am pus eu sus sa mearga ?

Guest #7

sory, pls how make this page to work on my site ?

Guest #8

is ok, i make alone to go, tnx aniway

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close