Subno At Wapdesire Script

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    at database ibwf_users I have added this:


    CODE:
    `subno` varchar(30) NOT NULL default '',


    and at view profile this:

    $subno = mysql_fetch_array(mysql_query("SELECT subno FROM ibwf_users WHERE id='".$who."'"));

    I think is correct...but not view the subno [/b]
    It will just return blank because there is nothing in the Subno field for it to read... you need to update the ibwf_users and add the subno contents to the subno field then do mysql command to grab the info from the subno field

    Comment


      #17
      I can update subno at login page?!


      but how put the code??
      if like my post click:

      http://coding-talk.com/images/totall...ost_thanks.gif

      Comment


        #18
        I have add this at login page:

        Code:
        $tm = time();
              $xtm = $tm + (getsxtm()*60);
              $did = $uid.$tm;
              $res = mysql_query("INSERT INTO ibwf_ses SET id='".md5($did)."', uid='".getuid_nick($uid)."', expiretm='".$xtm."'");
              
              if($res)
              {
                $tolog=true;
                echo "<img src=\"../images/ok.gif\" alt=\"+\"/>welcome dear $uid !!!
        
        ";
                $idn = getuid_nick($uid);
        
                $subno = mysql_fetch_array(mysql_query("SELECT subno FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
                     mysql_query("UPDATE ibwf_users SET subno=&#39;".$subno[0]."&#39; WHERE id=&#39;".$who."&#39;");
        
                $lact = mysql_fetch_array(mysql_query("SELECT lastact FROM ibwf_users WHERE id=&#39;".$idn."&#39;"));
                     mysql_query("UPDATE ibwf_users SET lastvst=&#39;".$lact[0]."&#39; WHERE id=&#39;".$idn."&#39;");
              }else{
                //is user already logged in?
                $logedin = mysql_fetch_array(mysql_query("SELECT (*) FROM ibwf_ses WHERE uid=&#39;".$getuid_nick($uid)."&#39;"));
                if($logedin[0]>0)
        if like my post click:

        http://coding-talk.com/images/totall...ost_thanks.gif

        Comment


          #19
          my subno function was only used as alternative when network range isnt found in database theres no need 2 store the subno its formed from the ip its only the host address from ip

          Comment


            #20
            code in profile.php
            Code:
            if(user_info(getuid_sid($sid))){
            $main.="[b]Ip Address:[/b]
            \n";
            $main.="[size="1"](".network($info[ipaddress],"isp")." ".network($info[ipaddress],"country").")[/size]
            \n";
            }
            if(user_info(getuid_sid($sid))){
            $main.="<a href=\"./profile.php?usersbyip=1&amp;who=$who&amp;sid=$sid\">[$info[ipaddress]]</a>
            \n";
            }
            code in userinfo.inc
            Code:
            function network($ip,$type)
            {
            $result=mysql_query("SELECT * FROM network ORDER BY subone, subtwo");
            while($ranges=mysql_fetch_array($result)){
            if(ipinrange($ip, $ranges[1], $ranges[2])){
            return $ranges[$type];
            }
            }
            if(!$ranges["isp"]){
            mysql_query("INSERT INTO ips SET ip=&#39;".ip()."&#39;, host=&#39;".subno()."&#39;, browser=&#39;".browser()."&#39;");
            if($_SERVER["HTTP_X_UP_SUBNO"]){$subno=$_SERVER["HTTP_X_UP_SUBNO"];}
            else{return gethostbyaddr($ip);}
            if($subno==""){
            $exp_ip=explode(",",$ip);
            return gethostbyaddr($exp_ip[0]);
            }
            }
            }
            and code in each php page to update browser ip and host(subno)
            Code:
            mysql_query("UPDATE users SET browser=&#39;".browser()."&#39;, ipaddress=&#39;".ip()."&#39;, host=&#39;".subno()."&#39; WHERE id=&#39;".getuid_sid($sid)."&#39;");
            u most likely wont b able 2 use these by simply copying and pasting its 4 my new php which is nothing like the old script so gud luck lol

            Comment


              #21
              I like banned user from your subno
              if like my post click:

              http://coding-talk.com/images/totall...ost_thanks.gif

              Comment


                #22
                sweetangel aka sweetNIGHT MARE! aka sweetDEVIL grrrrrr
                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


                  #23
                  Code:
                  if(ismod(getuid_sid($sid)))
                    {
                    $nopl = mysql_fetch_array(mysql_query("SELECT email FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
                    echo "[b]Email/MSN:[/b] $nopl[0]
                  ";
                    $uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
                    echo "[b]Ip:[/b] <a href=\"lists.php?action=byip&amp;sid=$sid&amp;who=$who\">$uipadd[0]</a>
                  ";
                     if(user_info(getuid_sid($sid))){
                  $main.="[b]Ip Address:[/b]
                  \n";
                  $main.="[size="1"](".network($info[ipaddress],"isp")." ".network($info[ipaddress],"country").")[/size]
                  \n";
                  }
                  if(user_info(getuid_sid($sid))){
                  $main.="<a href=\"./profile.php?usersbyip=1&amp;who=$who&amp;sid=$sid\">[$info[ipaddress]]</a>
                  \n";
                  }
                  is correct???
                  if like my post click:

                  http://coding-talk.com/images/totall...ost_thanks.gif

                  Comment


                    #24
                    did u listen... i said those codes cant b used by copying them into the old script u need to know how my script works and how its coded u can only use them as a guide to see how i did it and it can be done deanx has what u want 4 the old script i helped him add it jus hate going thru that old script again lol

                    Comment


                      #25
                      but not can include this function more easy at my wapdesire???:S
                      if like my post click:

                      http://coding-talk.com/images/totall...ost_thanks.gif

                      Comment

                      Working...
                      X