Subno At Wapdesire Script

Started on the old forum in May 2008 · view the original in the archive · old links redirect here

24 replies · 2,197 views · started 18 years ago · 1 min read

5 participants
sweetangel Lead · 885 posts #1

at my core.php I have this:

function subno() { if($_SERVER["HTTP_X_UP_SUBNO"]){$subno=$_SERVER["HTTP_X_UP_SUBNO"];} else{$subno=gethostbyaddr(ip());} if($subno==""){ $exp_ip=explode(",",ip()); $subno=gethostbyaddr($exp_ip[0]); } return $subno; }

How I can view this info at members profile?? any1 say how help me???

tnks External image (may be gone)

if like my post click:

External image (may be gone)

subzero Super moderator Fellow · 3,954 posts #3

If thats how you make to a female

well well well i dont wont to know what ya like in the hallway lmao !

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... _______…

crazybrumi Super moderator Principal · 1,064 posts #4

pmpl sub, na she takes the piss av yu seen the amount of things she asks for, if she dosnt nw how to do things then theres no point of her doing it, look at me 95% of the things i learnt myslf when a started a year ago. no1 told me anything. why cant people do things for themselves

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

subzero Super moderator Fellow · 3,954 posts #5

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... _______…

sweetangel Lead · 885 posts #6

I add at index page: under the:

$uip = getip();
$subno = subno();

and at view profile this code:

$subno = mysql_fetch_array(mysql_query("SELECT subno FROM ibwf_users WHERE id='".$who."'"));
echo "[b]Ip:[/b] <a href=\"lists.php?action=byip&sid=$sid&who=$who\">$uipadd[0]</a>
";
echo "[b]SubNo:[/b]$subno[0]</br>";

and I have added at ibwf_users table this code:

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

where I wrong???External image (may be gone)

if like my post click:

External image (may be gone)

sweetangel Lead · 885 posts #9

i think this new coding work...:

mysql_query("UPDATE ibwf_users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");

if like my post click:

External image (may be gone)

sweetangel Lead · 885 posts #11

echo "SubNo: "; echo subno();

at view profile I modify this:

$subno = mysql_fetch_array(mysql_query("SELECT subno FROM ibwf_users WHERE id='".$who."'"));
echo "[b]Ip:[/b] <a href=\"lists.php?action=byip&sid=$sid&who=$who\">$uipadd[0]</a>
";
echo "[b]Subno:[/b]$subno()</br>";

:?

if like my post click:

External image (may be gone)

WhiteWarrior Principal · 1,419 posts #12

$subno = mysql_fetch_array(mysql_query("SELECT subno FROM ibwf_users WHERE id='".$who."'")); echo "Ip: <a href="lists.php?action=byip&sid=$sid&who=$who">$uipadd[0]</a> "; echo "Subno: $subno[0]</br>";

That will work

WhiteWarrior Principal · 1,419 posts #14

subno not display External image (may be gone)

Are you even storing it into a database?.. if you ain't then it wont show will it?.. Your have to store it before you can show it with a mysql command...

sweetangel Lead · 885 posts #15

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 External image (may be gone)

if like my post click:

External image (may be gone)

WhiteWarrior Principal · 1,419 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 External image (may be gone)

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

sweetangel Lead · 885 posts #18

I have add this at login page:

$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='".$who."'"));
             mysql_query("UPDATE ibwf_users SET subno='".$subno[0]."' WHERE id='".$who."'");

        $lact = mysql_fetch_array(mysql_query("SELECT lastact FROM ibwf_users WHERE id='".$idn."'"));
             mysql_query("UPDATE ibwf_users SET lastvst='".$lact[0]."' WHERE id='".$idn."'");
      }else{
        //is user already logged in?
        $logedin = mysql_fetch_array(mysql_query("SELECT (*) FROM ibwf_ses WHERE uid='".$getuid_nick($uid)."'"));
        if($logedin[0]>0)

if like my post click:

External image (may be gone)

ori Lead · 512 posts #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

ori Lead · 512 posts #20

code in profile.php

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&who=$who&sid=$sid\">[$info[ipaddress]]</a>
\n";
}

code in userinfo.inc

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='".ip()."', host='".subno()."', browser='".browser()."'");
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)

mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");

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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close