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
Hide Phone/browser Details
Collapse
X
-
GuestTags: None
-
Guest -
Guest -
Guest
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
Comment
-
Guest
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;
}
Comment
-
why not add subno function???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;
}[/b]
HTTP_X_UP_SUBNO ??? ;)
Comment
-
Guest
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
Comment
-
how I can view this details at profile users???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;
}[/b]
Comment
-
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
Comment
-
Guest
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[/b]
Thank you nclemale36 that worked, thank you so much
Comment
Comment