Site Privacy

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Site Privacy

    core.php
    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;
    }
    }
    in genproc.php
    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&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
    echo "</p></card>";
    }
    in index.php...
    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&amp;sid=$sid&amp;act=dis\">Make Profile Public </a><br/>";
    }else{
    echo "<a href=\"genproc.php?action=viewpro&amp;sid=$sid&amp;act=enb\">Make Profile Private </a><br/>";
    }
    else if($action=="viewuser")
    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/> ";
    }
    sql
    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

    #2
    nice share..

    Comment


      #3
      wat u mean private inbox y?????

      Comment


        #4
        ridez, but you want this code to prohibit only the inbox and not the whole profile? this code for the profile I did yesterday and left it in the request in the forum topic View Your Profile ...
        sigpichttp://happy.srecnica.com/web

        Comment


          #5
          Lol there is already ignore and n0t ign0re n0 need to private inbox
          com site: http://vampist.net
          download site: http://wapdloads.net
          fb: http://www.facebook.com/pmplx

          Comment


            #6
            Yes, and I think that it is unnecessary because there is the ignore list
            sigpichttp://happy.srecnica.com/web

            Comment


              #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
              ------------------

              Comment


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

                Comment


                  #9
                  Guys what i meant is sumthing like this
                  u put this code in core
                  Code:
                  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
                  Code:
                  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&amp;sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
                  echo "Home</a>";
                  echo "</p>";
                  }
                  index.php
                  Code:
                  $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&amp;sid=$sid&amp;act=dis\">Make Inbox Public </a><br/>";
                  }else{
                  echo "<a href=\"genproc.php?action=viewinbox&amp;sid=$sid&amp;act=enb\">Make Inbox Private </a><br/>";
                  }
                  here u add the code where ever are a send pm option and inbxproc.php
                  Code:
                  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
                  Code:
                  ive tested the code its working fine
                  next i want to make the gallery private so only friends can view ur gallery
                  Last edited by riderz; 31.08.09, 18:12.

                  Comment


                    #10
                    Here are a space u can add all the hidden content

                    usage control panel
                    Code:
                    echo "<a href=\"index.php?action=private&amp;sid=$sid\">»Site Privacy</a><br/>";
                    index.php?action=private
                    Code:
                    /////////////////////////////////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&amp;sid=$sid&amp;act=dis\">Make Gallery Public </a><br/>";
                    }else{
                    echo "<a href=\"genproc.php?action=viewgallery&amp;sid=$sid&amp;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&amp;sid=$sid&amp;act=dis\">Make Inbox Public </a><br/>";
                    }else{
                    echo "<a href=\"genproc.php?action=viewinbox&amp;sid=$sid&amp;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&amp;sid=$sid&amp;act=dis\">Make Profile Public</a><br/>";
                    }else{
                    echo "<a href=\"genproc.php?action=viewpro&amp;sid=$sid&amp;act=enb\">Make Profile Private</a><br/>";
                    }
                      echo "<br/>";
                        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
                    echo "Home</a>";
                        echo "</p>";
                       echo xhtmlfoot();
                    }
                    Last edited by riderz; 31.08.09, 18:55.

                    Comment


                      #11
                      ok next i got the gallery private
                      core
                      Code:
                      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
                      Code:
                      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&amp;sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
                      echo "Home</a>";
                      echo "</p>";
                      }
                      index.php
                      Code:
                      $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&amp;sid=$sid&amp;act=dis\">Make Gallery Public </a><br/>";
                      }else{
                      echo "<a href=\"genproc.php?action=viewgallery&amp;sid=$sid&amp;act=enb\">Make Gallery Private </a><br/>";
                      }
                      usage in gallery viewuserphoto
                      Code:
                      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
                      Code:
                      add in ibwf_users
                      
                      viewgallery int 1 default 0
                      Last edited by riderz; 31.08.09, 19:02.

                      Comment

                      Working...
                      X