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
help black list in guestbook
Collapse
X
-
Originally posted by i0nutzxp View PostPHP Code:if (isignored($uid, $who)) // isignored(int posterid, int gbownerid);
{
echo 'Your are blacklisted<br />';
}
else
{
// post in gb 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&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>";
}
Comment
-
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&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
-
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! thanxLast edited by LadyEnigma; 01.08.11, 10:31.
Comment
Comment