// *************************************************************** //
// * * //
// * SAMLOG: "Stand-Alone Module" Weblog * //
// * * //
// * * //
// * Copyleft (L) 2002 Arne Pottharst * //
// * * //
// * Homepage: http://weblog.arnep.de * //
// * E-Mail: weblog@arnep.de * //
// * * //
// *************************************************************** //
// * * //
// * based on BIGSAM Guestbook by * //
// * * //
// * Copyleft 2000 Georges Zadrozynski & Remi Lecoupe-Grainville * //
// * gezzed@atilla.org & rlg@atilla.org * //
// * * //
// * Homepage : http://www.atilla.org/bigsam/ * //
// * Mail : bigsam@atilla.org * //
// * * //
// *************************************************************** //
// * * //
// * This source is under GNU/GPL General Public License * //
// * Please read text blow! * //
// * * //
// *************************************************************** //
/*
### SAMLOG: "Stand-Alone Module" Weblog ###
Copyright (c)Arne Pottharst, weblog@arnep.de
Please read original copyright
### ORIGINAL COPYRIGHT BIGSAM-GUESTBOOK ###
BIG SAM - Built-In Guestbook / Stand-Alone Module - PHP Guestbook
Copyright (C) Georges Zadrozynski & Rémi Lecoupé-Grainville
### GNU General Public License ###
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
$version = "0.5beta";
$standardPassword = "bigsamweblog";
/**********************************
* Configuration Step 1 : OS *
**********************************/
// Please select Operation-System: 1=Windows; 2=Unix/Linux
// When Windows is set, files will not be locked (not neccessay) and no e-mail will be sent
$iswin = 0; // 1=Windows; 0=Unix/Linux
/**********************************
* Configuration Step 2 : Language *
**********************************/
// Please remove all the unwanted language blocks
$langAddEntry = "Eintrag machen";
$langAdminError = "Administrator Fehler";
$langAgent = "Browser:";
$langAllowBBCode ="BBCode erlauben";
$langCalendar = "Kalender";
$langChPassword = "Passwort ändern";
$langComments = "Kommentare";
$langCommentError = "Bitte Kommentar eingeben!";
$langDate = "Datum:";
$langEditEntry = 'Einträge $number ändern';
$langEmail = "E-Mail:";
$langEntry = "Eintrag";
$langEntries = "Einträge";
$langHideComments = "Kommentare Ausblenden";
$langID = "ID:";
$langIndex = "Übersicht";
$langIP = "IP-Adresse:";
$langLocation = "Herkunft:";
$langLocationFrom = "aus";
$langMainMenu = "Zurück zum Hauptmenu";
$langMenu = "Hauptmenu
Bitte Aktion auswählen";
$langMessage = "Neuer Eintrag:";
$langNewImage = "Bild einfügen";
$langNewLink = "Link einfügen";
$langNewComment = "Neuer Kommentar:";
$langName = "Name:";
$langNameError = "Bitte Name eingeben!";
$langHomepage = "Homepage:";
$langNewPassword = "Neues Passwort:";
$langOpenError = "Fehler beim Öffnen der Datei!
Sind Sie sicher, dass Sie die richtigen Rechte für dieses Verzeichnis besitzen?";
$langPassChanged = "Neues Passwort OK.";
$langPassError = "Das neue Password funktioniert nicht!";
$langPassword = "Ändere arnep.de Weblog Passwort";
$langPasswordWarning = "Bitte das Passwort ändern, es entspricht immer noch dem Standardpasswort!!!";
$langPreview = "Vorschau";
$langRetype = "Wiederholen Sie das neue Passwort:";
$langSearch = "Suchen";
$langShowWeblog = "Zum Weblog";
$langSubmit = "Abschicken";
$langSubmitModif = "Änderungen abschicken";
$langSystemError = "System Fehler";
$langSystemMessage = "System Nachricht";
$langTitle = "Titel:";
$langCurrent = "Aktuell";
$langWeblogAdmin = "Weblog Administration";
$langWeblogTitle = "arnep.de Weblog";
$langWrongPassword = "Falsches Administrator-Passwort";
$langDays = array ('Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag');
$langBBCodeHelp = "
BBCode für Formatierungen:
\n [b] formatiert den Text [b]fett[/b]\n"; /******************************************* * Configuration Step 3 : Carbon Copy Email * *******************************************/ // notifyMail = 1 enables mail sending to mailRecipient. // mailRecipient receives a mail each times an entry is entered (if notifyMail = 1) // mailSubject is the subject of the mail which is sent. // entryMail = 1 enables mail sending to comment-writer $notifyMail = 1; $mailRecipient = "pottharst@gmx.de"; $mailSubject = "Neuer Samlog-Weblogkommentar"; $entryMail = 0; /******************************** * Configuration Step 4 : Colors * ********************************/ // Choosing colors (Remove the unwanted color-model) // Standard (Greys, bright background) $colorWhite = "\"#000000\""; $colorBlack = "\"#FFFFFF\""; $colorHeads = "\"#DDDDDD\""; $colorBody1 = "\"#FFFFFF\""; $colorBody2 = "\"#DDDDDD\""; $colorText = "\"#000000\""; /* // Arne P. $colorWhite = "\"#FFFFFF\""; $colorBlack = "\"#000000\""; $colorHeads = "\"#666666\""; $colorBody1 = "\"ivory\""; $colorBody2 = "\"wheat\""; $colorText = "\"#666666\""; /* // The Following is the BIG SAM standard $colorWhite = "\"#FFFFFF\""; $colorBlack = "\"#000000\""; $colorHeads = "\"#42426F\""; $colorBody1 = "\"#FFF8DC\""; $colorBody2 = "\"#EFE8CC\""; */ // Data submission form colors $formHeadColor = $colorHeads; $formBodyColor = $colorBody1; $formTailColor = $colorBody2; $formHeadText = $colorWhite; $formBodyText = $colorBlack; // Guestbook entries colors $entryHeadColor = $colorHeads; $entryBodyColor1 = $colorBody2; $entryBodyColor2 = $colorBody1; $entryHeadText = $colorWhite; $entryBodyText1 = $colorBlack; $entryBodyText2 = $colorText; // Messages colors $adminHeadColor = $colorHeads; $adminHeadText = $colorWhite; $adminBodyColor1 = $colorBody2; $adminBodyText1 = $colorBlack; $adminBodyColor2 = $colorBody1; $adminBodyText2 = $colorText; /********************************* * Configuration Step 5 : Headers * *********************************/ // Normal Header for Site function displayHeader() { global $version, $type, $index, $cindex, $iswin; header ("Expires: Sat, 01 Jan 2000 00:00:00 GMT"); echo ("\n\n"); echo ("\n"); if ($type == "popup") { displayPopupHeader(); return; } // You migh use and include instead of all this : // include ("head.inc"); echo (''); echo ('
\n [i] formatiert den Text [i]kursiv[/i]
\n [email] fügt eine E-Mail-Adresse ein: [email]weblog@arnep.de[/email] oder [email=weblog@arnep.de]Schreib mir![/email]
\n [url] fügt einen Link ein: [url]http://weblog.arnep.de[/url] oder [url=http://weblog.arnep.de]Arnes Weblog[/url]
');
echo ("$langComments"); } /******************************** * Configuration Step 6 : Footer * ********************************/ function displayFooter() { echo ''; echo '(c)SAMLOG 2001-2002 Arne Pottharst '; echo ''; } /****************************************************** * Configuration Step 7 : Number of messages displayed * ******************************************************/ // Number of fields to be displayed simultaneously. // To display everything, set $displayStep to 0. $displayStep = 10; // Number of fields to be displayed simultaneously for Admin-Editing. $displayStepEdit = 10; /************************************************ * Configuration Step 8 : Allow AutoLink System * ************************************************/ // Set to 1 to allow links in Comments $allowAutoLink = 1; // Set to 1 to allow BBCode in Comments $allowBBCode = 1; /************************ * End of Configuration * ************************/ // *************************************************************** // // * Do edit below this line on your own risk, but feel free ;-) * // // *************************************************************** // // $absoluteScriptPath is the name of the current script (this file) and which is going to // be modified by itself. This means that (theoretically) this file can be // placed anywhere on the system, with any fileName. $absoluteScriptPath = $PATH_TRANSLATED; $relativeScriptPath = $PHP_SELF; // when the php preprocessor is installed as an independant binary (as CGI). if ($PATH_INFO!="") { $relativeScriptPath = $PATH_INFO; } // to be used when $PHP_SELF contains virtual directory reference // (for multi-users servers, eg : free.fr, online.fr ...) if (($SERVER_NAME=="php.proxad.net")||(($SERVER_NAME=="php3.pro.proxad.net"))) { $relativeScriptPath = substr($relativeScriptPath, strpos(substr($relativeScriptPath, 1), "/")+1); } $theName = substr($absoluteScriptPath, 0, strrpos($absoluteScriptPath, ".")); $extension = substr($absoluteScriptPath, strrpos($absoluteScriptPath, ".")+1); // The dataFile contains all the guestbook entries, and $adminpassword . // $adminpassword is the password which will be asked for any administration // actions. This password could be changed only if in admin mode (old // $adminpassword matches $admin). // Defines the name of the database file where the entries are stored. $dataFile = "${theName}.dat.${extension}"; $commentFile = "${theName}.comment.${extension}"; //****************************************************************************** // function displayForm : Display the form which enables the client to type a // message. function displayForm($guest) { //$guest: 0 = admin, 1 = guest global $admin,$type,$preview,$entry; global $relativeScriptPath; global $formHeadColor; global $formBodyColor; global $formTailColor; global $formHeadText; global $formBodyText; global $langName,$langNameError; global $langEmail, $langTitle; global $langLocation; global $langHomepage; global $langMessage, $langNewComment,$langCommentError; global $langSubmit, $langPreview, $langMainMenu; global $langNewLink, $langNewImage, $langBBCodeHelp, $allowBBCode, $langAllowBBCode; global $comment,$link; global $aname, $aemail, $alocation, $ahomepage, $amessage, $abbcode, $atitle; // Writing HTML Code if ($type=="popup") { echo (" |