Hide Phone/browser Details

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

14 replies · 1,323 views · started 18 years ago · 1 min read

5 participants
Guest #1

HI Can anyone help please, I want to hide the phone/brower details of owners and admin on lava lair , ive been trying to get it to work, but cant seem to just do it so it works for owners and admin , Many thanks Tz

Guest #2

just use php admin and change the browser details

Guest #3

They update everytime someone logs in, so that wont work , but thank you 🙂

crazybrumi Super moderator Principal · 1,064 posts #4

why dont u just put an if statement "ismod" around the things yu dont wnt the normal member to see ie

if(ismod(getuid_sid($sid))) {

browser detauks }

that will only show the admin and owners mods the details within

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

http://flagcounter.com/more/W80q

crazybrumi Super moderator Principal · 1,064 posts #5

just use php admin and change the browser details

you could on the old sp but not on lavalair as it looks for the device you log in with everytime you log into the site and updates it

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

http://flagcounter.com/more/W80q

Guest #6

I had tried that but kept getting a t string error on the line i'd placed it on.. Parse error: syntax error, unexpected T_STRING in /home/*****/public_html/index.php on line 111

Guest #8

I put it at the bottom of this, if that help's, everything i do is trail and error havn't got a clue....

$res = mysql_query("UPDATE ibwf_users SET browserm='".$ubr."', ipadd='".$uip."' WHERE id='".getuid_sid($sid)."'"); function getRemoteInfo () { $proxy=""; $IP = ""; if (isSet($_SERVER)) { if (isSet($_SERVER["HTTP_X_FORWARDED_FOR"])) { $IP = $_SERVER["HTTP_X_FORWARDED_FOR"]; $proxy = $_SERVER["REMOTE_ADDR"]; } elseif (isSet($_SERVER["HTTP_CLIENT_IP"])) { $IP = $_SERVER["HTTP_CLIENT_IP"]; } else { $IP = $_SERVER["REMOTE_ADDR"]; } } else { if ( getenv( 'HTTP_X_FORWARDED_FOR' ) ) { $IP = getenv( 'HTTP_X_FORWARDED_FOR' ); $proxy = getenv( 'REMOTE_ADDR' ); } elseif ( getenv( 'HTTP_CLIENT_IP' ) ) { $IP = getenv( 'HTTP_CLIENT_IP' ); } else { $IP = getenv( 'REMOTE_ADDR' ); } } if (strstr($IP, ',')) { $ips = explode(',', $IP); $IP = $ips[0]; } $RemoteInfo[0]=$IP; $RemoteInfo[1]=@GetHostByAddr($IP); $RemoteInfo[2]=$proxy; return $RemoteInfo; }

sweetangel Lead · 885 posts #9

I put it at the bottom of this, if that help's, everything i do is trail and error havn't got a clue....

$res = mysql_query("UPDATE ibwf_users SET browserm='".$ubr."', ipadd='".$uip."' WHERE id='".getuid_sid($sid)."'"); function getRemoteInfo () { $proxy=""; $IP = ""; if (isSet($_SERVER)) { if (isSet($_SERVER["HTTP_X_FORWARDED_FOR"])) { $IP = $_SERVER["HTTP_X_FORWARDED_FOR"]; $proxy = $_SERVER["REMOTE_ADDR"]; } elseif (isSet($_SERVER["HTTP_CLIENT_IP"])) { $IP = $_SERVER["HTTP_CLIENT_IP"]; } else { $IP = $_SERVER["REMOTE_ADDR"]; } } else { if ( getenv( 'HTTP_X_FORWARDED_FOR' ) ) { $IP = getenv( 'HTTP_X_FORWARDED_FOR' ); $proxy = getenv( 'REMOTE_ADDR' ); } elseif ( getenv( 'HTTP_CLIENT_IP' ) ) { $IP = getenv( 'HTTP_CLIENT_IP' ); } else { $IP = getenv( 'REMOTE_ADDR' ); } } if (strstr($IP, ',')) { $ips = explode(',', $IP); $IP = $ips[0]; } $RemoteInfo[0]=$IP; $RemoteInfo[1]=@GetHostByAddr($IP); $RemoteInfo[2]=$proxy; return $RemoteInfo; }

why not add subno function??? HTTP_X_UP_SUBNO ??? 😉

if like my post click:

External image (may be gone)

Guest #11

This is the area that i want to change so it doesnt show owner and admin details

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

if($nopl[0]=="Mozilla/4.0")

{

$nopl[0]="Internet Explorer 6/7";

}

if($nopl[0]=="Mozilla/5.0")

{

$nopl[0]="Firefox II";

}

echo "Browser: $nopl[0] ";

I've tried this $items = mysql_query($sql);

echo mysql_error();

while ($item = mysql_fetch_array($items))

{

$sqlthing = (mysql_query("SELECT * FROM ibwf_users where name = '".$item[0]."'"));

   

    $perm = mysql_result($sqlthing,0,"perm");

if($perm==1)

  {

    

  }

  else if($perm==2)

  {

   

    $item[1] = "Wouldnt you like to know";

  }

  else if($perm==0)

  {

    $perm = "";

  }

but with no luck

sweetangel Lead · 885 posts #12

I put it at the bottom of this, if that help's, everything i do is trail and error havn't got a clue....

$res = mysql_query("UPDATE ibwf_users SET browserm='".$ubr."', ipadd='".$uip."' WHERE id='".getuid_sid($sid)."'"); function getRemoteInfo () { $proxy=""; $IP = ""; if (isSet($_SERVER)) { if (isSet($_SERVER["HTTP_X_FORWARDED_FOR"])) { $IP = $_SERVER["HTTP_X_FORWARDED_FOR"]; $proxy = $_SERVER["REMOTE_ADDR"]; } elseif (isSet($_SERVER["HTTP_CLIENT_IP"])) { $IP = $_SERVER["HTTP_CLIENT_IP"]; } else { $IP = $_SERVER["REMOTE_ADDR"]; } } else { if ( getenv( 'HTTP_X_FORWARDED_FOR' ) ) { $IP = getenv( 'HTTP_X_FORWARDED_FOR' ); $proxy = getenv( 'REMOTE_ADDR' ); } elseif ( getenv( 'HTTP_CLIENT_IP' ) ) { $IP = getenv( 'HTTP_CLIENT_IP' ); } else { $IP = getenv( 'REMOTE_ADDR' ); } } if (strstr($IP, ',')) { $ips = explode(',', $IP); $IP = $ips[0]; } $RemoteInfo[0]=$IP; $RemoteInfo[1]=@GetHostByAddr($IP); $RemoteInfo[2]=$proxy; return $RemoteInfo; }

how I can view this details at profile users???

if like my post click:

External image (may be gone)

nclemale36 Lead · 537 posts #13

if your using a lava type script u need to do it like this.

this code is from index.php .and the action is the view users profile . and wot i am hiding from members is the email .

if(ismod(getuid_sid($sid))) { $nopl = mysql_fetch_array(mysql_query("SELECT email FROM ibwf_users WHERE id='".$who."'")); echo "E-mail: $nopl[0] "; }

just add if(ismod(getuid_sid($sid))) { the stuff u want hidden goes here then dont forget the last closed bracket on next line } <<<<<< that there lol

hope that helps

something else Fellow · 2,296 posts #14

$inca = mysql_fetch_array(mysql_query("SELECT perm, browserm FROM ibwf_users WHERE id='".$who."'")); if($inca[0]>1){ echo "Browser: no browser details"; }else{ echo "Browser: $inca[1]"; }

🙂

Guest #15

if your using a lava type script u need to do it like this.

this code is from index.php .and the action is the view users profile . and wot i am hiding from members is the email .

if(ismod(getuid_sid($sid))) { $nopl = mysql_fetch_array(mysql_query("SELECT email FROM ibwf_users WHERE id='".$who."'")); echo "E-mail: $nopl[0] "; }

just add if(ismod(getuid_sid($sid))) { the stuff u want hidden goes here then dont forget the last closed bracket on next line } <<<<<< that there lol

hope that helps

Thank you nclemale36 that worked, thank you so much 😍 😮

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