Hide Phone/browser Details
Started on the old forum in August 2008 · view the original in the archive · old links redirect here
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.
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.
post us the action here and al fix it for ya
Want something coded email me at sales@webnwaphost.com for a prices.
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; }
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:
you did not use getRemoteInfo ()
do it
$res = mysql_query("UPDATE ibwf_users SET browserm='".$ubr."', ipadd='".getRemoteInfo ()."' WHERE id='".getuid_sid($sid)."'");
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
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:
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
$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]"; }
🙂
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 😍 😮