Anto Flood On Shoutbox! (lavalair)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Anto Flood On Shoutbox! (lavalair)

    Anto? hahaha

    Anto=Anti

    Plz post code here

    #2
    Be more explicit.what you need ?

    Comment


      #3
      And you can say a litle Plzz if you need some code

      Comment


        #4
        heeeeeeeeeeee
        yup, plzzzz help me..
        a wan put anti flood 4 shout box..

        Comment


          #5
          stop fighting n help d dude already lol
          Code:
          $uid = getuid_sid($sid);
          $tm = time();
          $antiflood = 10;/// 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)
            {
          
          part that allows u to shout blah blah blah
          
          }else{
          
              $rema = $shoutfl - $tm;
              echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
              echo "Flood control: $rema Seconds
          
          ";
          
          
          }

          Comment


            #6
            my main chat site has lot malaysians and when alot them ask a question it can seem more forward and sometimes bit rude but thats jus how there english is interpreted sometimes if u dnt wana help them there no point saying anything jus bcos u dnt care what ppl say 2u dnt mean u should do it to others they hav feelins u no... and making this site look beta would hav to start by all the admins n mods being nice if not whats the point in being 1 at all

            Comment


              #7
              my grandapa (a poor italian bumkin) said..the best thing everyone can do is to teach to others what someone else before has teached to you.
              we have a great lucky thing..language..we can talk and show our feelings to anybody all over the world..use it.
              people comes here need help..it don&#39;t care if sometimes questions are fool or seems like this..the only important thing is help and teach to others..
              sigpicthe italian/international COMMUNITY of friendship
              http://people2000.netne.net
              WAP/WEB
              peoplemailbox@katamail.com

              Comment


                #8
                your right just help people less arguing
                http://img235.imageshack.us/my.php?i...sc00464af9.jpg



                http://matthewdowd.bebo.com

                Comment


                  #9
                  ok topic cleaned and no more agro

                  Comment


                    #10
                    ok thank wizard..
                    but where to put this code?

                    Comment


                      #11
                      lol put it on the script mate

                      Comment


                        #12
                        lol put it on the script mate[/b]

                        where? what file? on core.php?
                        plz give me example..

                        Comment


                          #13
                          i think u must put it in genproc.php
                          Code:
                          //////////////////////////////////////////shout
                          
                          else if($action=="shout")
                          {
                            $shtxt = $_POST["shtxt"];
                              addonline(getuid_sid($sid),"Shouting","");
                          
                              echo "<card id=\"main\" title=\"Shout\">";
                              echo "<p align=\"center\">";
                              if(getplusses(getuid_sid($sid))<75)
                              {
                                  echo "<img src=\"images/notok.gif\" alt=\"X\"/>You should have at least 75 plusses to shout!";
                              }else{
                                $shtxt = $shtxt;
                              //$uid = getuid_sid($sid);
                              $shtm = time();
                                $antiflood = 10;/// anti flood time
                          
                          $lastshout = mysql_fetch_array(mysql_query("SELECT MAX(shtime) FROM ibwf_shouts WHERE shouter=&#39;".$uid."&#39;"));
                          
                          $shoutfl = $lastshout[0]+$antiflood;
                          
                          if(ismod($uid))$shoutfl=0;
                          
                            if($shoutfl<$tm)
                            {
                          
                              $res = mysql_query("INSERT INTO ibwf_shouts SET shout=&#39;".$shtxt."&#39;, shouter=&#39;".$uid."&#39;, shtime=&#39;".$shtm."&#39;");
                              if($res)
                              {
                              $shts = mysql_fetch_array(mysql_query("SELECT shouts from ibwf_users WHERE id=&#39;".$uid."&#39;"));
                              $shts = $shts[0]+1;
                              mysql_query("UPDATE ibwf_users SET shouts=&#39;".$shts."&#39; WHERE id=&#39;".$uid."&#39;");
                              echo "<img src=\"images/ok.gif\" alt=\"O\"/>Shout added successfully";
                                  }else{
                          
                              $rema = $shoutfl - $tm;
                              echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
                              echo "Flood control: $rema Seconds
                          
                          ";
                                      }
                              }else{
                                  echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error";
                              }
                                      }
                                   echo "
                          
                          <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                          echo "Home</a>";
                              echo "</p>";
                              echo "</card>";
                          }

                          Are iam write ??

                          Or i must put i in index.php ??

                          Comment


                            #14
                            still cant work..

                            Comment


                              #15
                              are u gettin a error?

                              Comment

                              Working...
                              X