Page 1 of 1

the guestbook

Posted: Sat Jun 06, 2009 12:27 pm
by VANILLASKY
Hello to all,

I downloaded the guestbook for my website but as I'm a beginner in php , I don't understand very much about the code .
Anybody can explain me the structure of the gbook.php?
and in general the structure of the guestbook and the relations between
files?

Many thanks in advance for your help.

Posted: Sun Jun 07, 2009 10:00 am
by Klemen
To get the GBook running on your server read instructions in the readme.htm file.

As for the structure - there's not much to explain to a non-programmer. The gbook.php contains functions and code for handling most of the things that the guestbook does, language.inc.php contains all the text used, "entries.txt" is used to hold the posted messages, etc.

Posted: Wed Aug 12, 2009 9:26 am
by VANILLASKY
Hello to all,

I read many times the readme explanation about the files : settings.php and I don't understand this section below :
$settings['junkmark_limit'] Set to the score after which messages are rejected as SPAM. Messages which are given a JunkMarkTM score same or higher to this limit will not be added to the guestbook. Possible values are between 0 and 100. I don't recommend setting it below 50! The optimal value is around 60 to 70.

RECOMMENDED SETTING: $settings['junkmark_limit']=60;
What I understand is that after the amount of limit that messages are considered as a spam , the next message even if it's a spam it isn't anymore considered as a spam.

Am I clear? only 60 messages can be considered as a spam.

Many thanks for your help .

Posted: Wed Aug 12, 2009 9:28 am
by VANILLASKY
What is the signification of 666 (rw - rw - rw)?

Thanks a lot for your answer.

Have a good day.

Posted: Wed Aug 12, 2009 9:44 am
by Klemen
JunkMark is a score the program gives. If the score is 100 it means it will block only messages that receive 100% SPAM score. If it is set to 70% it means it will block messages that reach 70% SPAM score (it means it's not 100% the message is SPAM, but it most likely is). Don't worry about it, just keep it in the recommended setting and it should block most SPAM from your GBook.

rw-rw-rw- means that the script has premission to write to file.
http://www.google.com/search?hl=en&q=un ... ermissions