#!/usr/bin/perl
#######################################################################
# #
# Free Perl Guestbook written 2002 by #
# #
# Tri Dung Nguyen #
# www.vitinh.de #
# #
# Version 1.23 - 06.Aug.03 #
# Copyright (C) 2002-2003 #
# #
# This guestbook is absolutely free, for private and for #
# commercial sites. #
# #
# You may not sell this script. You may offer it freely to #
# others. You may not alter the code and then call it another #
# name. You may not alter the code and then resell it under #
# another name, either. #
# #
# All copyright notices and the download links at the bottom of #
# the guestbook (when the pages are viewed on the internet) must #
# remain intact! #
# #
# This program is provided in the hope that it will be useful, #
# but without warranty. You must decide between two things: #
# using or not using it! #
# #
# For help, take a look at the support page at: #
# #
# www.vitinh.de #
# #
#######################################################################
#######################################################################
# #
# You may change the first line of this page if the path to #
# PERL on your server is not "/usr/bin/perl". Contact your admin #
# or take a look at the HELP, or FAQ page of the provider to get #
# this. #
# #
#######################################################################
$SEND_MAIL="/usr/lib/sendmail -t"; #(comment if server OS is Windows)
#use Net::SMTP; # (UNcomment if server OS is Windows)
#$smtp = Net::SMTP->new("localhost"); # (UNcomment if server OS is Windows)
#######################################################################
# #
# You may change the line above if the path to SENDMAIL on your #
# server is not "/usr/lib/sendmail -t" #
# #
#######################################################################
#######################################################################
# #
# NO CHANGES UNDER THIS LINE REQUIRED #
# Changing of program codes may cause the fatal errors! #
# #
# UNTERHALB DIESER NACHRICHT NICHTS AENDERN #
# Es koennte zur Fehlfunktion des Gaestebuches fuehren! #
# #
# KHONG THAY DOI GI DUOI DONG CHU NAY #
# Thay doi trong ma nguon co the lam hong chuong trinh! #
# #
# NE PAS CHANGER LE TEXTE APRÈS CE MESSAGE! #
# #
#######################################################################
####################### BEGIN OF PROGRAM CODE #########################
$Version = "1.23";
$online = 1;
$demo = 0;
use CGI::Carp qw(fatalsToBrowser);
use CGI qw(:standard);
use Time::Local;
$conttype = "Content-type: text/html\n\n";
$file_url = "http://www.vitinh.de/downloads/guestbook";
$update_service = "http://www.vitinh.de/cgi-bin/update_service.cgi";
$language_page = $file_url."/languages.htm";
if($online == 0){
$file_url = "file://D:/Website/Tri Dung";
$update_service = "update_service.cgi";
}
$readonly = "";
$demo_info = "";
if($demo == 1){
$readonly = "readonly";
$demo_info = "
This is a demo guestbook, you cannot change anything on this page!
";
}
################### Wichtige Variablen Definition #####################
$dir = "./tdpn_v_10_dir";
$guestbook_datei = "$dir/guestbook.datei";
$guestbook_setup = "$dir/guestbook.setup";
$guestbook_lang = "$dir/guestbook.lang";
$guestbook_lang_de = "$dir/guestbook_de.lang";
$guestbook_lang_vn = "$dir/guestbook_vn.lang";
$guestbook_lang_fr = "$dir/guestbook_fr.lang";
$guestbook_lang_own = "$dir/guestbook_own.lang";
$guestbook_style = "$dir/guestbook.style";
$guestbook_pass = "$dir/guestbook.pass";
$guestbook_private_pass = "$dir/guestbook_private.pass";
$default_pass = "tridung";
$guestbook_bad_words = "$dir/guestbook_bad.words";
$guestbook_icons = "$dir/guestbook.icons";
$tdpn_1 = "
Download Free Perl Guestbook Version $Version
";
$tdpn_2 = "FPG $Version by www.vitinh.de - © 2002-2003
";
$guestgook_title_images_online = "
";
$info_title_color = "red";
$dir =~ s/\.\///;
$info_reason = qq(
Some reasons why this error occured:
|
||
| $tdpn_2 |
|
||||
| $tdpn_2 | ||||
|
||
| $tdpn_2 |