Location: PHPKode > projects > KISGB (Keep It Simple Guest Book) > kisgb/user.prefs.php
<?
##################################################
# There are settings in the config.php file that #
# are not in here.  If you need to change those  #
# settings, you need to copy them from the       #
# config.php file to here.  Then, make your      #
# changes in here.                               #
##################################################
##################################################
# LEAVE THIS SET TO INDEX.PHP UNLESS TRYING TO   #
# INSERT KISGB INTO A TABLE IN YOUR WEB PAGE OR  #
# IF THE KISGB FOLDER IS NOT IN THE ROOT WEB     #
# DIRECTORY.                                     #
#                                                #
# IF INSERTING KISGB INTO A TABLE IN ONE OF YOUR #
# WEBPAGES, THEN THIS SHOULD BE SET TO FILE THAT #
# STARTS KISGB. THIS FILE MUST RESIDE IN KISGB   #
# DIRECTORY REGARDLESS OF WHICH METHOD YOU USE!  #
##################################################
$root_document = "index.php";
##################################################
# Path and Security                              #
##################################################
$use_userprefs = true;
$path_to_user_prefs = "user.prefs.php";
$path_to_gb = "kisgb.csv.php";
$path_to_images = "images";
$path_to_languages = "languages";
$path_to_themes = "themes";
$path_to_docs = "docs";
$admin_id = "admin";
$admin_pw = "password";
$admin_from_web = true;
$secure_site = false;
$secure_site_id = "secure";
$secure_site_pw = "password";
$myIP = "*";
$lock_admin_to_myIP = false;
$site_url = "http://www.somewhere.com";
$guestbook_name = "KISGB";
$guestbook_signature = "Sincerely,\n\nThe Webmaster\n$site_url";
$useGetHostByAddr = true;
$encryptPassword = true;
##################################################
# Message Editing Settings                       #
##################################################
$allow_msg_lvl_edit_by_admin = true;
$allow_msg_lvl_edit_by_user = true;
$allow_msg_lvl_delete_by_user = true;
$admin_email_advice_on_gb_edit = false;
$admin_email_subject_on_gb_edit = "Guest Book Entry Modified";
$admin_links_to_config_when_msg_edit_on = true;
##################################################
# Confirmation Email                             #
##################################################
$admin_email_address = "hide@address.com";
$admin_email_address_addl = "";
$admin_email_advice = true;
$guest_email_advice = false;
##################################################
# E-mail for admin email advice.                 #
##################################################
$admin_email_subject = "Guest Book Entry Added";
$admin_email_msg = "The following entry has been added to $guestbook_name.\n\n$col1 : $msgid\n$col2 : $ip\n$col3 : $date\n$col4 : $time\n";
##################################################
# E-mail for guest email advice.                 #
##################################################
$guest_email_subject = "Thank you for signing our Guest Book!";
$guest_email_msg = "$name,\n\nThank you for taking the time to sign $guestbook_name.  We hope you enjoyed our site.  Come back often, if you like!\n\n$guestbook_signature";
##################################################
# Customize the ADD window with these variables  #
##################################################
$defaultName = 'Anonymous Coward';
$Awindow_border = 1;
$Awindow_border_width = "1px";
$Awindow_cellspacing = 0;
$Awindow_cellpadding = 0;
$Atable_height = "4%";
$Atable_width = "50%";
$Atable_font_size = "smaller";
$comment_rows = 5;
$comment_cols = 40;
$max_name_length = 20;
$max_email_length = 40;
$max_comment_length = 500;
$allow_html = true;
$allowed_html_tags_no_img = "<i><p><u><b><a><hr><hr />";
$allow_smileys = true;
$max_smileys_allowed = 5;
$smiley_window_width = 300;
$smiley_window_height = 600;
$allow_carriage_returns = true;
$allow_carriage_returns_max = 3;
$def_home = "http://";
$def_pic = "http://";
$img_email = "email.gif";
$img_home = "home.gif";
$img_pic = "photo.gif";
$img_icq = "icq.gif";
$img_aim = "aim.gif";
$img_yim = "yim.gif";
$img_msn = "msn.gif";
$img_ip = "ip.gif";
$img_msg_update = "edit_msg.gif";
$require_name = true;
$require_email = false;
$require_nation = false;
$show_all = false;
$hide_all = false;
$show_name = true;
$show_email = true;
$show_home = true;
$show_pic = true;
##################################################
# use_pic is for using the actual picture.       #
# pic_width sets the image display width.        #
# pic_height sets the image display height.      #
##################################################
$use_pic = true;
$pic_width = 48;
$pic_height = 64;
$picTypes = "gif,jpg,png,tif,bmp";
$show_icq = true;
$show_aim = true;
$show_yim = true;
$show_msn = true;
$show_nation = true;
$show_ip = true;
$show_private = true;
$show_password = true;
$show_date = true;
$show_time = true;
$show_search = true;
$show_preview = true;
$Pwindow_border_width = 3;
##################################################
# Customize the VIEW window with these variables #
##################################################
$Vwindow_border = 1;
$Vwindow_border_width = "1px";
$Vwindow_cellspacing = 0;
$Vwindow_cellpadding = 2;
$Vtable_height = "1%";
$Vtable_width = "90%";
$Vtable_font_size = "smaller";
$Vtable_icon_cell_size = "10%";
$Vtable_max_comment_width = 80;
##################################################
# Customize the Intro window with these variables#
##################################################
$use_intro = true;
$Intro_text = "<center>Welcome to my Guest Book!</center>";
$Intro_border = 1;
$Intro_border_width = "1px";
$Intro_height = "1%";
$Intro_width = "90%";
$Intro_font_size = "bigger";
##################################################
# Global Appearance                              #
##################################################
$language = "english.lang.php";
$use_languages = true;
$theme = "clouds.thm.php";
$use_themes = true;
$theme_by_language = true;
$use_themes_languages_header = true;
$use_themes_languages_footer = false;
$body_background_image = "";
$body_background_color = "";
$body_font_family = "";
$rows_per_page = 10;
$button_font_size = "smaller";
$button_font_family = "";
$button_border_width = "thin";
$button_border_style = "outset";
$show_private_entries_total = false;
$show_admin_menu = true;
$show_home_menu = true;
$next_prev_position = "left";
$admin_private_message_color = "#FFB1C5";
$icons_in_separate_column = true;
$icon_separator = "<br /><br />";
$message_separator = "";
$underline_hyperlinks = true;
$use_links_instead_of_images = TRUE;
$label_home_site_img = "<img src='$path_to_images/home.gif' border=0 width=20 height=20 />";
$label_admin_menu_img = "<img src='$path_to_images/lock.gif' border=0 width=15 height=15 />";
$label_sign_gb_img = "<img src='$path_to_images/edit_msg.gif' border=0 width=15 height=15 />";
$label_search_gb_img = "<img src='$path_to_images/magnify.gif' border=0 width=15 height=15 />";
$label_viewall_gb_img = "<img src='$path_to_images/showall.gif' border=0 width=15 height=15 />";
$page_alignment_center = true;
$use_footer = true;
$use_header_view = true;
$use_header_sign = false;
$use_filter_file = TRUE;
##################################################
# Miscellaneous                                  #
##################################################
$words_not_allowed_in_anchor_tag = "javascript,onmouseover,onmouseout,style";
$date_format = "Y-m-d";
$time_format = "H:i:s";
$hours_to_offset = 0;
$csv_buffer_size = 9192;
$realm_name = "Secured Area";
$flood_control_timer = 30;
##################################################
# These control the comment box when editing     #
# messages.                                      #
##################################################
$commentBoxColumns = 80;
$commentBoxRows = 4;
##################################################
# Enter time in seconds.  -1=Unlimited           #
# 1 minute=60, 1 hour=60*60, 1 day=60*60*24,     #
# 1 week=7*60*60*24, etc.                        #
# Admins can always update regardless of setting.#
##################################################
$cutoff_date_for_updates = -1;
?>
Return current item: KISGB (Keep It Simple Guest Book)