"Fossies" - the Fresh Open Source Software Archive

Member "php3guest-1.8.0/php3guestrc.php.sample" (16 May 2006, 2457 Bytes) of package /linux/www/old/php3guest-1.8.0.tgz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <script language="php">
    2 ////////////////////////////////////////////////////////////////////////
    3 // php3guest v1.8.0 - distributed under the GPL
    4 // This is a sample configuration file for Bastian Friedrich's guestbook.
    5 
    6 // Most text variables may be multi-lined.
    7 
    8 // scriptname is the name of the guestbook php script, such as "index.php3", "php3guest.php3" or just "" if your
    9 // apache is set up for using "index.php3" as a DirectoryIndex (as in my case)
   10 // If your guestbook is not just named index.php(3) and automatically found by apache as it's directory's 
   11 // DirectoryIndex, you may just set
   12 // $scriptname = $PHP_SELF;
   13 $scriptname = "";
   14 
   15 // default behaviour for masking html in entries. note that such entries can contain <meta refresh...> or <javascript>
   16 // tags and thus may render your guestbook useless.
   17 $viewHTMLentries = 0;
   18 
   19 // generate button for language selection, so it also works without javascript?
   20 $usableWithoutJavascript=1;
   21 
   22 // Number of entries to show on one page. If your entries are usually short and small, you might take 20, if each entry
   23 // uses pages, you might want to use 5...
   24 $entriesPerPage = 10;
   25 
   26 // Open links in new Window?
   27 $linkNewWindow = 1;
   28 
   29 // where is your mySQL located?
   30 $db_host  = "localhost";
   31 $db_user  = "nobody";
   32 $db_pass  = "";
   33 
   34 // names of the database and it's table
   35 $db_db    = "guestbook";
   36 $db_table = "guestbook";
   37 
   38 // your password
   39 // note that this is NOT AT ALL secure!!! Your password is transmitted in clear text and will eventually
   40 // appear on your screen! So better choose something other ppl do not know...
   41 $ownerPass="xxxxx";
   42 
   43 // Email new Entries to owner's address
   44 $mailEntries=0;
   45 $mailEntriesSubject="New entry in guestbook";
   46 $mailEntriesTo="place@your-email.adress.here";
   47 $mailEntriesFrom="Guestbook <place@your-email.adress.here>";
   48 
   49 // Use the following language if not otherwise set via "$language" (e.g. cookie or URL parameter)
   50 $defaultLanguage="english";
   51 
   52 $possibleLanguages="deutsch english danish big5 hungarian spanish italian portuguese finnish swedish french srpski turkish";
   53 
   54 // Maximum entry length (e.g. 8k)
   55 $maxEntryLength=8192;
   56 
   57 // Publish email addresses?
   58 $publishMail=0;
   59 
   60 // Anti Spam image active?
   61 $antiSpamImage=1;
   62 
   63 $forbiddenWords[0]["word"] = "earn-money.com";
   64 $forbiddenWords[0]["rejectText"] = "I already DO earn money.";
   65 $forbiddenWords[1]["word"] = "forbiddenword";
   66 $forbiddenWords[1]["rejectText"] = "forbiddenword is not allowed in this guestbook!";
   67 
   68 </script>