# Perl Support File
# Variables used by ws_editor.cgi
# Variables used by all scripts: /Web_store/ws_global.setup
# File Permissions: 644 -rw-r--r--
############################################################################
# Resellers.data_editor.setup #
#==========================================================================#
# Copyright (c) 1996 - 2003, RDC Software #
# WebStore@ratite.com http://www.ratite.com/Perl/WebStore.shtml #
# Version: 4.16.00 Date: 01/01/2003 #
# #
# Full copyright notice can be found in the following files for the #
# listed license type: #
# #
# Single User License: /Docs/Copyright_SingleUser.html #
# Server License: /Docs/Copyright_Server.html #
# #
# This copyright notification can not be altered or removed from this file.#
#==========================================================================#
# Backslash all @ signs --> \@ <-- Perl 5 compatibility. #
# Variables containing @ signs must be enclosed in " (double quotes). #
# #
# All other variables are enclosed in ' (single quotes). #
# #
# If the value you store in a variable enclosed in single quotes requires #
# the use of a single quote, backslash the imbedded single quote: #
# #
# EXAMPLE: $global_page_title = 'Joe\'s Auto Parts' #
############################################################################
#--------------------------------------------------------------------------#
# General Settings
#--------------------------------------------------------------------------#
# $data_file is the pipe delimited flatfile database being edited.
$data_file = 'Resellers.data';
# $global_page_title is used in the
of all HTML pages, and in the
# Subject and Body of generated e-mail messages when a new user registers.
$global_page_title = 'Reseller Database Editor';
# $max_items is the maximum number of items returned to the web browser
# by the search engine. $max_items defaults to 30 if mis-configured.
$max_items = '25'; # 25
# If $ascending_sort = 1, sort drop down selects are intially set to
# perform ascending alpha sorts of the records in the database.
# If $ascending_sort = 0, sort drop down selects are intially set to
# perform descending alpha sorts of the records in the database.
$ascending_sort = '1';
# If $sort_buttons = 1, Print "Sort/Add" and "Sort/Remove" buttons.
# Setting $sort_buttons = '' disables printing of the "Sort/Add" and
# "Sort/Remove" buttons.
# The "Sort/Add" and "Sort/Remove" functions assign sequential database
# item id numbers after sorting database records by their category name.
# If you use item id query strings on the HTML pages of your WebStore,
# you should not use these functions to sort the records in the database.
# Removing the "Sort/Add" and "Sort/Remove" buttons from WS Editor
# will prevent accidental submission of these functions.
$sort_buttons = '1'; # 1
# If $single_spacing = 1, reduce multiple imbedded spaces to one space in
# database fields for all functions which modify the database.
# If $single_spacing = 0, ignore multiple imbedded spaces in database fields.
# WS Editor always removes leading and trailing whitespace from all fields.
$single_spacing = '1'; # 1
# $return_link_url is an absolute URL link printed at the bottom
# of all pages in WebStore whose format is:
#
# $return_link_url = 'http://www.YourDomain.xxx/AnyDirectories/Filename.html';
#
# Setting $return_link_url = '' disables printing of this URL.
#
# $script_url is internal to WS Editor, derived from the value of
# $main_script_url set in ws_global.setup.
#
# $return_link_title is the absolute URL's description.
$return_link_url = $script_url.'/ws400.cgi';
$return_link_title = 'Test WebStore';
# $email_link_url is an email link printed at the bottom of all
# pages in WebStore.
#
# Setting $email_link_url = '' disables printing of this link.
#
# $email_link_title is the email link's description.
$email_link_url = "WebStore\@ratite.com";
$email_link_title = 'Mail to: '.$email_link_url;
#--------------------------------------------------------------------------#
# Database of Items for Sale
#--------------------------------------------------------------------------#
# $category_fld_num is the array index number, or field number, of the
# sort field within a database record of $data_file (above).
# NOTE: First element of an array is '0'.
# 0 | 1 | 2 | 3 | 4 | 5
# Code | Name | E-mail | Web Page | Date | Id
$category_fld_num = '0'; # Reseller Code
# %FIELDS is a hash of arrays defining each database field and it's
# corresponding field input for the search engine forms used in WS Editor.
# The numeric KEYS permit ascending, sequential sorting of the arrays
# in %FIELDS in the order of occurrence in database records.
# For example, KEYS 00, 01, 02 correspond to database fields 0, 1, and 2.
# The field arrays in %FIELDS must be listed in the order of the field's
# occurrence in the database with the field array for 'Id' defined as the
# last array in %FIELDS.
# The 'Id' field array in %FIELDS must have 'Id' as element zero's value and
# 'id_field' as element one's value.
# Valid INPUT types are "select", "text", and "textarea".
#------------------------------------------------------------------------------#
# EXAMPLE: INPUT TYPE="text"
#
# Field 00:
#
# Elements of Field 00:
#
# 00 0 1 2
# '00' => ['Name', 'text', 'SIZE="35" MAXLENGTH="150"'],
#
# 00 = The form element's array index number
#
# 0 = Descriptive
header and
# For INPUT NAME, the script replaces spaces with _ (underscore)
# and switches all characters to lowercase.
#
# 1 =
#
# 2 = Attributes for the (size, maxlength, etc.)
#------------------------------------------------------------------------------#
# EXAMPLE: INPUT TYPE="textarea"
#
# Field 07:
#
# "textarea" input types are identical to "text" input types.
#
# 07 0 1 2
# '07' => ['Description', 'textarea', 'ROWS="4" COLS="58"'],
#
# 07 = The form element's array index number
#
# 0 = Descriptive
header and
# For INPUT NAME, the script replaces spaces with _ (underscore)
# and switches all characters to lowercase.
#
# 1 =
#
# 2 = Attributes for the (size, maxlength, etc.)
#------------------------------------------------------------------------------#
# EXAMPLE: INPUT TYPE="select"
#
# 04 0 1 2
# '04' => ['Category', 'select', 'Option1:Option2:Option3'],
#
# 04 = The form element's array index number
#
# 0 = Descriptive
header and
# For INPUT NAME, the script replaces spaces with _ (underscore)
# and switches all characters to lowercase.
#
# 1 =
#
# 2 = Colon delimited listing of options.
# Options may be listed on multiple lines.
#
# To select an option's value as