what is the code if YOU, STAFFS AND YOUR BUDDIES only can view your PROFILE??
THANKS!
THANKS!
// for profile
$uid = getuid_sid($sid);
$who = $_GET["who"];
if (shad0w($uid,$who))
{
// profile
}else{
echo "You can't view this profile ! ";
}
/////////////////////////////////////////////
// for core.php
function shad0w($uid, $who)
{
if($uid==$who||ismod($uid))
{
return true;
}
return false;
}
$sml = mysql_fetch_array(mysql_query("SELECT hvia FROM ibwf_users WHERE id='".getuid_sid($sid)."'"));
if($sml[0]=="1")
{
echo "<a href=\"genproc.php?action=shsml&sid=$sid&act=dis\">Disable Smilies</a>";
}else{
echo "<a href=\"genproc.php?action=shsml&sid=$sid&act=enb\">Enable Smilies</a>";
}
// for profile
$uid = getuid_sid($sid);
$who = $_GET["who"];
if (shad0w($uid,$who))
{
// profile
}else{
echo "You can't view this profile ! ";
}
/////////////////////////////////////////////
// for core.php
function shad0w($uid, $who)
{
if($uid==$who||arebuds($uid,$who)||ismod($uid))
{
return true;
}
return false;
}
Comment