Quote by geKow: funny thing was: I get a mail about my new entry in your guestbook
geKow
Well, ever since I installed and modifyed geekbook, it has been behaving a little strange...
The first thing i noticed was that all registred users got an "Admins Only" - block, where they could edit and delete guestbook entrys. I have now idea how this is possible, I thought that only admins had access to those sort of things.
So I disabled the geekbook under my admin-->plugins menu.
I then logged out and tryed logging in as a normal user. The admin block was gone.
I then tryed to sign the guestbook, and it worked. A little strange considering it's disabled..
And now the 'email notification you pointed out. (Thanks for letting me now )
I think I have solved it by removing the following code from gkaddentry.php:
//Notify of new messages
if($notifynew = 1){
$subject = "NOTICE: You have a New Guestbook Entry";
$headers .= "MIME-Version: 1.0rn";
$headers .= "Content-type: text/html; charset=iso-8859-1rn";
$headers .= "From: ".$email."
rn";
$headers .= "To: ".$adminemail."
rn";
$headers .= "Reply-To: ".$email."
rn";
$headers .= "X-Priority: 1rn";
$headers .= "X-MSMail-Priority: Highrn";
$headers .= "X-Mailer: GeekBook server";
$comments="Entry made on $date by $namern Comments: $comment";
mail($adminemail, $subject, $comments, $headers);
}
(First I tryed setting $notifynew = 0 in gbfunctions.php, but it didn't work)
EDIT:
Back to my friend who got that "Anti-Leech" error when he tryed to sign the guestbook.
When I was looking through the code in gkaddentry.php, i found this:
// add upper case referrers
$httprefer = stripslashes($HTTP_REFERER);
if(ereg("$HTTP_HOST",$httprefer))
{
// Continue
}else{
echo COM_startBlock(
'Anti-Leech');
echo "Please enter through
$hostname to perform this operation.";
echo COM_endBlock();
echo COM_siteFooter(true);
exit;
}
Do you know what this means / does?