core.php
in genproc.php
in index.php...
if($action=="cpanel")
else if($action=="viewuser")
sql
i want to make a code for inbox anyone can make it post it here if not ill try it and post it here
Code:
function shad0w($uid, $who) { $pm = mysql_fetch_array(mysql_query("SELECT viewpro FROM ibwf_users WHERE id='".$who."'")); if($pm[0]=='2') { if (ismod($uid)) { return true; }else{ return false; } return false; }else if($pm[0]=='1') { if($uid==$who||arebuds($uid,$who)||ismod($uid)) { return true; }else{ return false; } }else if($pm[0]=='0') { return true; } }
Code:
else if($action=="viewpro") { addonline(getuid_sid($sid),"Profil",""); $act = $_GET["act"]; $acts = ($act=="dis" ? 0 : 1); echo "<card id=\"main\" title=\"Site\">"; echo "<p align=\"center\">"; //$uid = getuid_sid($sid); $res = mysql_query("UPDATE ibwf_users SET viewpro='".$acts."' WHERE id='".$uid."'"); if($res) { echo "<img src=\"images/ok.gif\" alt=\"o\"/>Profile changed!<br/>"; }else{ echo "<img src=\"images/notok.gif\" alt=\"x\"/> It's impossible to update your profile!<br/>"; } echo "<br/><a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></card>"; }
if($action=="cpanel")
Code:
$viewpro = mysql_fetch_array(mysql_query("SELECT viewpro FROM ibwf_users WHERE id = '".$uid."'")); if($viewpro[0]=="1") { echo "<a href=\"genproc.php?action=viewpro&sid=$sid&act=dis\">Make Profile Public </a><br/>"; }else{ echo "<a href=\"genproc.php?action=viewpro&sid=$sid&act=enb\">Make Profile Private </a><br/>"; }
Code:
if (shad0w($uid,$who)) { >>>code profile<<< }else{ echo "<b>Privacy Profile !!!</ b> <br/> This profile can only see members with a list of friends and members of the Administration<br/> "; }
Code:
sql add in ibwf_users viewpro int 1 default 0
i want to make a code for inbox anyone can make it post it here if not ill try it and post it here
Comment