help black list in guestbook

Started on the old forum in July 2011 · view the original in the archive · old links redirect here

4 replies · 1,023 views · started 15 years ago · 1 min read

2 participants
LadyEnigma Developer · 71 posts #1

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

....silence please....

i0nutzxp Developer · 150 posts #2
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'); ?>
LadyEnigma Developer · 71 posts #3

i0nutzxp wrote:

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?

//////////////////////////////////////////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&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&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&sid=$sid\">Indietro a Blogs</a><br/>";
  echo "<br/><br/><b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
    echo "</p>";
    echo "</body>";
}

....silence please....

i0nutzxp Developer · 150 posts #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 " "; echo "Ignored

"; echo "<a href="index.php?action=main&sid=$sid">Home</a>"; echo " "; echo "</body>"; echo "</html>"; exit(); }

and in genproc....and try to use your brain ....

<?php unlink('World/Europe/Romania.country'); ?>
LadyEnigma Developer · 71 posts #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

....silence please....

Write your reply now; next you create a free account (or sign in) and it is posted right away. 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