mobilezonez script updated

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

    #31
    dint get the above said function and still the logout not working donno why

    Comment


      #32
      i just said to edit the logout link like this
      <a href=\"index.php?action=logout&amp;sid=$sid\">Log out</a><br/>
      and to change the session online code for time out
      edit in core.php this function
      PHP Code:
      function addonline($uid,$place,$plclink)
      {
      /////delete inactive users
      $tm time() ;
      $timeout $tm 2493767//time out = 5 minutes here is where u edit the time a session stays online
      $deloff mysql_query("DELETE FROM ibwf_online WHERE actvtime <'".$timeout."'");
      $cloak mysql_fetch_array(mysql_query("SELECT hidden FROM ibwf_users WHERE id = '".$uid."'"));
      if(
      $cloak[0]==1){
      mysql_query("UPDATE ibwf_online SET hidden = 1 WHERE userid = $uid"); 
      }else if(
      $cloak[0]==0){
      mysql_query("UPDATE ibwf_online SET hidden = 0 WHERE userid = $uid"); 
      }
      ///now try to add user to online list and add total time online
      $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 tottimeonl FROM ibwf_users WHERE id='".$uid."'"));
      $totaltimeonline $totaltimeonline[0] + $tolsla;
      $ttime time();
      $res mysql_query("UPDATE ibwf_users SET lastact='".$ttime."' WHERE id='".$uid."'");
      $res mysql_query("UPDATE ibwf_users SET tottimeonl='".$totaltimeonline."' WHERE id='".$uid."'");
      $res mysql_query("INSERT INTO ibwf_online SET userid='".$uid."', actvtime='".$ttime."', 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='".$ttime."', 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"time());
      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")."'");
      }
      }










      Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
      Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

      Comment


        #33
        done and its working but even some1 is outta onlist afta the specified time he can use the same session to surf

        can it b rectified ??

        Comment


          #34
          no the login page has the session stealing prevented try copying another users session nd pasting it into yr broswer bet i says yr not logged in









          Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
          Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

          Comment


            #35
            Pls anybody help with the zip, my winrar its not working, plsss
            http://myfacepals.com
            MYFACEPALS SOCIAL NETWORKsigpic

            Comment


              #36
              Pls, the forum is not working,how to add forum and cant read inbox, pls help me..
              http://myfacepals.com
              MYFACEPALS SOCIAL NETWORKsigpic

              Comment


                #37
                u want rar format?

                Comment

                Working...
                X