credits for 1 hour online

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

    credits for 1 hour online

    can any one provide credits for one hour code? i saw a related one on lava mods but it doesnt seem to be work mgigs have posted it from his mobile and some codes are missing also some one expert, good, helpful person provide me the codes and where to add them also
    Nice Effects

    #2
    PHP Code:

    //////////////////////Function add user to online list :P

    function addonline($uid,$place,$plclink)
    {
      
    $hidden=mysql_fetch_array(mysql_query("SELECT hidden FROM ibwf_users WHERE id='".$uid."'"));
      if(
    $hidden[0]==0)
      {
      
    /////delete inactive users
      
    $tm time();
      
    $timeout $tm 420//time out = 5 minutes
      
    $deloff mysql_query("DELETE FROM ibwf_online WHERE actvtime <'".$timeout."'");
      
    ///now try to add user to online list
    $lastactive2 mysql_fetch_array(mysql_query("SELECT resetime FROM ibwf_users WHERE id='".$uid."'"));
    $tolsla2 time() - $lastactive2[0];
    $totaltimeonline2 mysql_fetch_array(mysql_query("SELECT onlinetime FROM ibwf_users WHERE id='".$uid."'"));
    $totaltimeonline2 $totaltimeonline2[0] + $tolsla2;
    $onlinetime mysql_fetch_array(mysql_query("SELECT onlinetime FROM ibwf_users WHERE id='".$uid."'"));
    $num $onlinetime[0]/86400;
    $days intval($num);
    $num2 = ($num $days)*24;
    $hours intval($num2);
    $num3 = ($num2 $hours)*60;
    $mins intval($num3);
    $num4 = ($num3 $mins)*60;
    $secs intval($num4);
    if(!
    onlinetime($uid))
        {
    if(
    $hours==5)
        {
    $text "Congratulations you have reach the 5 hours online. You received 100 Plusses. [b]Note: This is an automatic pm[/b]";
    mysql_query("INSERT INTO ibwf_private SET text='".$text."', byuid='332', touid='".$uid."', timesent='".time()."'");
    $res mysql_query("UPDATE ibwf_users SET plusses=plusses+100 WHERE id='".$uid."'");
    $res mysql_query("UPDATE ibwf_users SET onlinedone='1' WHERE id='".$uid."'");
    $res mysql_query("UPDATE ibwf_users SET onlinetime='0' WHERE id='".$uid."'");
    $res mysql_query("UPDATE ibwf_users SET onlinedone='0' WHERE id='".$uid."'");
        }
        }

    $ttime time();
    $res mysql_query("UPDATE ibwf_users SET resetime='".$ttime."' WHERE id='".$uid."'");

      
    $lastactive mysql_fetch_array(mysql_query("SELECT lastact FROM ibwf_users WHERE id='".$uid."'"));
      
    $tolsla time() - $lastactive[0];
      
    $totaltimeonline mysql_fetch_array(mysql_query("SELECT onlinetime FROM ibwf_users WHERE id='".$uid."'"));
      
    $totaltimeonline $totaltimeonline[0] + $tolsla;
      
    $res mysql_query("UPDATE ibwf_users SET onlinetime='".$totaltimeonline."' WHERE id='".$uid."'");

      
    $res mysql_query("UPDATE ibwf_users SET lastact='".time()."' WHERE id='".$uid."'");
      
    $res mysql_query("UPDATE ibwf_users SET lastseen='".$place."' WHERE id='".$uid."'");
      
    $res mysql_query("INSERT INTO ibwf_online SET userid='".$uid."', actvtime='".$tm."', place='".$place."', placedet='".$plclink."'");
      if(!
    $res)
      {
        
    //most probably userid already in the online list
        //so just update the place and time
        
    $res mysql_query("UPDATE ibwf_online SET actvtime='".$tm."', place='".$place."', placedet='".$plclink."' WHERE userid='".$uid."'");


      }
      }
      
    $maxmem=mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE id='2'"));

                
    $result mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online"));

              if(
    $result[0]>=$maxmem[0])
              {
                
    $tnow date("D d M Y - H:i");
                
    mysql_query("UPDATE ibwf_settings set name='".$tnow."', value='".$result[0]."' WHERE id='2'");
              }
              
    $maxtoday mysql_fetch_array(mysql_query("SELECT ppl FROM ibwf_mpot WHERE ddt='".date("d m y")."'"));
              if(
    $maxtoday[0]==0||$maxtoday=="")
              {
                
    mysql_query("INSERT INTO ibwf_mpot SET ddt='".date("d m y")."', ppl='1', dtm='".date("H:i:s")."'");
                
    $maxtoday[0]=1;
              }
              if(
    $result[0]>=$maxtoday[0])
              {
                
    mysql_query("UPDATE ibwf_mpot SET ppl='".$result[0]."', dtm='".date("H:i:s")."' WHERE ddt='".date("d m y")."'");
              }
    }
    ///////////////////////////////////////////is shielded?

    function onlinetime($uid)
    {
      
    $not mysql_fetch_array(mysql_query("SELECT onlinedone FROM ibwf_users WHERE id='".$uid."'"));
      if(
    $not[0]=='1')
      { return 
    true;
      }else{
        return 
    false;
      }


    theres some wrong with your code this is your dreamers core addonline part and when i copy it and paste it to mine it doesnt update the online time cause you have put a dumb invisible feature, i just want only the online hour credits thing
    Last edited by pretend; 14.03.10, 20:11.
    Nice Effects

    Comment


      #3
      if($hours==1)
      com site: http://vampist.net
      download site: http://wapdloads.net
      fb: http://www.facebook.com/pmplx

      Comment


        #4
        yeah i agree with you brother ...

        atleast you help then he must to fix that if he is willing with it to work ...


        --
        author be sure that you will also add Sql or tables on it to be worked!
        Last edited by wapmetal; 15.03.10, 03:48.
        com site: http://vampist.net
        download site: http://wapdloads.net
        fb: http://www.facebook.com/pmplx

        Comment


          #5
          hehe i made it $mins==1 and was waiting for one minute passed to check it cause of his hidden feature it doesnt work and his latest dreamerz is also the same it also as hidden feature and it doesnt allow to update even a second then from where am i gonna get for my test 1 minute plusses this is a joke so one just post only the code that is related to the heading i asked other wise just wait
          Last edited by pretend; 15.03.10, 18:43.
          Nice Effects

          Comment

          Working...
          X