Site Privacy

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

10 replies · 1,050 views · started 17 years ago · 1 min read

7 participants
riderz Lead · 975 posts #1

core.php

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;
}
}

in genproc.php

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>";
}

in index.php... if($action=="cpanel")

$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/>";
}

else if($action=="viewuser")

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/> ";
}

sql

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


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

Pablo Developer · 164 posts #3

wat u mean private inbox y?????

spiderwebs Developer · 193 posts #7

riderz what kind of code u want tell me i will help u out

E107 Security Team Leader Proudly Support AccountLab Plus Billing Software

Want your Apps to be Developed ??? mail us your requirement at info@csarlab.com

valentinbr Junior · 26 posts #8

but this code for private profil its work riderz???????

riderz Lead · 975 posts #9

Guys what i meant is sumthing like this u put this code in core

function shad0w2($uid, $who)
{

$pm = mysql_fetch_array(mysql_query("SELECT viewinbox 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;
}
}

genproc

else if($action=="viewinbox")
{
addonline(getuid_sid($sid),"Inbox","");
$act = $_GET["act"];
$acts = ($act=="dis" ? 0 : 1);
echo "<p align=\"center\">";
//$uid = getuid_sid($sid);
$res = mysql_query("UPDATE ibwf_users SET viewinbox='".$acts."' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"o\"/>Inbox are private Now!<br/>";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/>
U cannot make Inbox Private!<br/>";
}
echo "<br/><a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
}

index.php

$viewinbox = mysql_fetch_array(mysql_query("SELECT viewinbox FROM ibwf_users WHERE id = '".$uid."'"));

if($viewinbox[0]=="1")
{
echo "<a href=\"genproc.php?action=viewpro&sid=$sid&act=dis\">Make Inbox Public </a><br/>";
}else{
echo "<a href=\"genproc.php?action=viewinbox&sid=$sid&act=enb\">Make Inbox Private </a><br/>";
}

here u add the code where ever are a send pm option and inbxproc.php

if (shad0w2($uid,$who)) {

>>>code inbox<<<

}else{
echo "<b>Privacy Inbox !!!</ b> <br/> Only friends and staff can send inbox to this members<br/> ";
}

sql add in ibwf_users

viewinbox int 1 default 0

i have just now copied and paste this code and edit it this should make that only ur friends and staff can pm u yea ignore list are there if the user bothering u now u can make ur inbox private just for friends

ive tested the code its working fine 

next i want to make the gallery private so only friends can view ur gallery


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

riderz Lead · 975 posts #10

Here are a space u can add all the hidden content

usage control panel

echo "<a href=\"index.php?action=private&sid=$sid\">»Site Privacy</a><br/>";

index.php?action=private

/////////////////////////////////Privacy

else if($action=="private")
{
    addonline(getuid_sid($sid),"make content hidden","index.php?action=$action");
	$pstyle = gettheme($sid);
    echo xhtmlhead("Private",$pstyle);

    echo "<p align=\"left\">";
include("pops.php");
    echo "<b>Site Privacy</b><br/><br/>";
$viewgallery = mysql_fetch_array(mysql_query("SELECT viewgallery FROM ibwf_users WHERE id = '".$uid."'"));

if($viewgallery[0]=="1")
{
echo "<a href=\"genproc.php?action=viewgallery&sid=$sid&act=dis\">Make Gallery Public </a><br/>";
}else{
echo "<a href=\"genproc.php?action=viewgallery&sid=$sid&act=enb\">Make Gallery Private </a><br/>";
}
///////////////////////////////////////////////////////////	
$viewinbox = mysql_fetch_array(mysql_query("SELECT viewinbox FROM ibwf_users WHERE id = '".$uid."'"));

if($viewinbox[0]=="1")
{
echo "<a href=\"genproc.php?action=viewinbox&sid=$sid&act=dis\">Make Inbox Public </a><br/>";
}else{
echo "<a href=\"genproc.php?action=viewinbox&sid=$sid&act=enb\">Make Inbox Private </a><br/>";
}
//////////////////////////////////////////////////////////
$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/>";
}
  echo "<br/>";
    echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
    echo "</p>";
   echo xhtmlfoot();
}

Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

riderz Lead · 975 posts #11

ok next i got the gallery private core

function shad0w3($uid, $who)
{

$pm = mysql_fetch_array(mysql_query("SELECT viewgallery 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;
}
}

genproc

else if($action=="viewgallery")
{
addonline(getuid_sid($sid),"Gallery","");
$act = $_GET["act"];
$acts = ($act=="dis" ? 0 : 1);
echo "<p align=\"center\">";
//$uid = getuid_sid($sid);
$res = mysql_query("UPDATE ibwf_users SET viewgallery='".$acts."' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"o\"/>gallery are private Now!<br/>";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/>
U cannot make Gallery Private!<br/>";
}
echo "<br/><a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
}

index.php

$viewgallery = mysql_fetch_array(mysql_query("SELECT viewgallery FROM ibwf_users WHERE id = '".$uid."'"));

if($viewgallery[0]=="1")
{
echo "<a href=\"genproc.php?action=viewgallery&sid=$sid&act=dis\">Make Gallery Public </a><br/>";
}else{
echo "<a href=\"genproc.php?action=viewgallery&sid=$sid&act=enb\">Make Gallery Private </a><br/>";
}

usage in gallery viewuserphoto

if (shad0w3($uid,$who)) {

>>>code inbox<<<

}else{
echo "<b>Privacy Gallery !!!</ b> <br/> Only friends and staff can view Gallery of this members<br/> ";
}

sql

add in ibwf_users

viewgallery int 1 default 0

Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

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