the guestbook

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
VANILLASKY
Posts: 3
Joined: Sat Jun 06, 2009 12:23 pm

the guestbook

Post 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.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
VANILLASKY
Posts: 3
Joined: Sat Jun 06, 2009 12:23 pm

Post 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 .
VANILLASKY
Posts: 3
Joined: Sat Jun 06, 2009 12:23 pm

Post by VANILLASKY »

What is the signification of 666 (rw - rw - rw)?

Thanks a lot for your answer.

Have a good day.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply