help black list in guestbook

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

    help black list in guestbook

    hi at all, in my lavalai if a user puts blacklist another user can continue to write in the guestbook, I would make sure that a user can not more black writing in the guestbook of the person who added to the blacklist, can anyone help me? Thanks in advance

    #2
    PHP Code:
    if (isignored($uid$who)) // isignored(int posterid, int gbownerid);
    {
       echo 
    'Your are blacklisted<br />';
    }
    else
    {
     
    // post in gb code

    <?php unlink('World/Europe/Romania.country'); ?>

    Comment


      #3
      Originally posted by i0nutzxp View Post
      PHP Code:
      if (isignored($uid$who)) // isignored(int posterid, int gbownerid);
      {
         echo 
      'Your are blacklisted<br />';
      }
      else
      {
       
      // post in gb code

      in index? where? in this part of code?
      PHP Code:
      //////////////////////////////////////////signblogcomment

      else if($action=="signblogcomment")
      {
      $who=$_GET["who"];
      addonline(getuid_sid($sid),"commenta un blog","");
      if(!
      cansigngb(getuid_sid($sid), $who))
          {
          echo 
      "<head>";
          echo 
      "<title>Firmablog</title>";
          echo 
      "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
          echo 
      "</head>";
          echo 
      "<body>";
            echo 
      "<p align=\"center\">";
            echo 
      "Puoi firmare questo blog<br/><br/>";
            echo 
      "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
            echo 
      "</p>";
            echo 
      "</body>";
            echo 
      "</html>";
            exit();
          }
          

          echo 
      "<head>";
          echo 
      "<title>Firma blog</title>";
          echo 
      "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
          echo 
      "</head>";
          echo 
      "<body>";
          echo 
      "<p align=\"center\">";
          echo 
      "<form action=\"genproc.php?action=signblogcomment&amp;sid=$sid\" method=\"post\">";
          echo 
      "<input type=\"hidden\" name=\"who\" Value=\"$who\">";
          echo 
      "Testo:<input name=\"msgtxt\" maxlength=\"500\"/><br/>";
          echo 
      "<input type=\"Submit\" name=\"Add\" Value=\"Add\"></form>";
          echo 
      "<a href=\"lists.php?action=allbl&amp;sid=$sid\">Indietro a Blogs</a><br/>";
        echo 
      "<br/><br/><b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
          echo 
      "</p>";
          echo 
      "</body>";

      Comment


        #4
        after if(!cansigngb(getuid_sid($sid), $who))

        if(isignored($uid, $who))
        {
        echo "<head>";
        echo "<title>Firmablog</title>";
        echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo "</head>";
        echo "<body>";
        echo "<p align=\"center\">";
        echo "Ignored<br/><br/>";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
        echo "</p>";
        echo "</body>";
        echo "</html>";
        exit();
        }

        and in genproc....and try to use your brain ....
        <?php unlink('World/Europe/Romania.country'); ?>

        Comment


          #5
          if I had not had any problems I would not have asked for help ... this code works and I also put after the function stops working bank, do not understand what mistake: (

          Added after 31 minutes:

          i have resolved! thanx
          Last edited by LadyEnigma; 01.08.11, 10:31.

          Comment

          Working...
          X