PHP Code:if (isignored($uid, $who)) // isignored(int posterid, int gbownerid);
{
echo 'Your are blacklisted<br />';
}
else
{
// post in gb code
}
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
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'); ?>
LadyEnigma (01-08-11)
in index? where? in this part of code?Originally Posted by i0nutzxp [Only registered and activated users can see links. Click Here To Register...]
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>";
}
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'); ?>
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 at 10:31.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks