Help

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

    Help

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>/////////////////////////////////////////////////////////////////////
    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 "<p align=\"center\">";
    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=&#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 "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&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"\"/>acasa</a>";

    echo "</p>";

    echo "</body>";
    }

    </div>

    #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...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


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

      Comment


        #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;
        http://ngeo.ro

        Comment


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

          Comment


            #6
            english plz
            Want something coded email me at sales@webnwaphost.com for a prices.




            Comment


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

              Comment


                #8
                is ok, i make alone to go, tnx aniway

                Comment

                Working...
                X