Location: PHPKode > projects > KISGB (Keep It Simple Guest Book) > 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://your_site.com/";
$guestbook_name = "KISGB";
$guestbook_signature = "Sincerely,\n\nThe Webmaster\n$site_url";
$useGetHostByAddr = TRUE;
$encryptPassword = TRUE;
$moderateEntries = FALSE;
##################################################
# 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 = FALSE;
##################################################
# 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 = 3;
$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";
$img_quote = "quote_img.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 = FALSE;
$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";
$admin_moderate_message_color = "DDDDDD";
$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;
##################################################
# The use_footer setting MUST be set to TRUE     #
# unless authorized by Gaylen Fraley, in writing #
# to be FALSE. This is according to the licensing#
# agreement for usage of KISGB.                  #
##################################################
$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;
$defaultNation = 182;
##################################################
# Must be lowercase - Although any valid column  #
# name from col1-col16 can be used, you should   #
# stay with the more obvious, common ones, i.e.  #
# name email comments                            #
##################################################
$cursorPlacementInPost = "comments";
##################################################
# 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;
##################################################
#The quoteBoxStyle is very powerful and flexible!#
#The order of the settings does not matter.  In  #
#other words, you coud say 'thin dotted red'. Or #
#'1px white solid'.  For all the settings and    #
#syntax, consult the CSS manual for the border   #
#property.                                       #
##################################################
$allowQuotingOfMessages = TRUE;
$quoteBoxStyle = "1px dashed";
?>
Return current item: KISGB (Keep It Simple Guest Book)