#Configuration File for BookEX

# This should be the correct location of sendmail (or equivalent)
# on your system.  If you don't know, try running 'which sendmail'.
$sendmail = '/usr/sbin/sendmail';

#DataBase Settings

# Name of the server where your database is located.
$dbHost     = 'localhost';

# The name of your database.
$dbName     = 'bookex';

# This string is used by the Perl DBI module and should probably
# not need to be changed, unless you are trying to use something
# other than MySQL.
$dbDSN      = "DBI:mysql:database=$dbName;host=$dbHost";

# Your database username.
$dbUser     = 'bookex';

# Database password.
$dbPassword = 'bookex';

# Maximum number of search results per page.
$dbSearchLimit = 25;

# Full path for storing database backups.  Used by daily.pl.
$dbBackupPath = './bookex.backup';


# If you want to log certain errors, provide the filename:
# Make sure that the webserver has write permission to
# this file.
# $error_log = 'error_log';

# Full URL of your bookex.cgi
$cgi_url = 'http://localhost/cgi-bin/bookex/bookex.cgi';

# Template Configuration
%template_vars = (
   cgi_name => '/cgi-bin/bookex/bookex.cgi',
   html_path => '/bookex',
   start_date => '8/23/2001',
   site_name => 'BookEx Test Site',
   site_admin => 'Site Admin',
   site_email => 'sga@yourschool.edu',
   contact_cc => 'sga-tech@yourschool.edu'
);

%template_config = (	
   INCLUDE_PATH => ['templates/custom', 'templates/'],
   VARIABLES  => { %template_vars },
   # Remove the '#' below to enable compiled templates - this will
   # improve your performance but requires that your webserver has
   # write permissions for this directory.
   #COMPILE_DIR  => 'templates/compiled',
);

# This hash is used to define how values from the database will
# be automatically formatted before being displayed.
%format = (
  price => \&format_price,
  crs_dept => sub { return uc $_[0] },
# field_name => perl function reference that returns formatted string
);