boka3/config.php.example
Erik Thuning 753f87d135 Documented loan_length_presets in config.php.example.
Also made explicit what keywords work
2025-03-13 14:59:34 +01:00

55 lines
1.5 KiB
Plaintext

<?php
# Database info
$db_host = 'dbserver';
$db_user = 'dbname';
$db_pass = 'dbpassword';
$db_name = 'dbuser';
# Authentication
# Users must have one of these entitlements in order to be able to
# access the site. Users without any of the required entitlements
# get redirected to their own loan listing page.
$required_entitlements = array(
'urn:mace:swami.se:gmai:some-entitlement',
);
# Site language
$language = 'en';
# Site name
$name = 'My product tracker';
# Default loan length
# Valid keywords are: day, days, week, weeks, month, months, year, years
$default_loan_length = '1 day';
# Quick-select buttons for loan lengths
# Valid keywords are: day, days, week, weeks, month, months, year, years
$loan_length_presets = ['2 days', '3 weeks', '10 months', '3 years'];
# Email subject prefix
# Will be prepended without change, so should probably end with a space
$email_subject_prefix = "System name: ";
# Address to use as the sender for reminder emails
$sender = 'noreply@example.com';
# Address to send cron error messages to
$error_address = 'root@example.com';
# Discard notifications
# If this is set to an email address, the system will send a notification
# there each time a product is discarded.
#$discard_notify = 'inventory-tracking@example.com';
$discard_notify = false;
# Directory to save attachments to
# Interpreted as absolute path if beginning with /,
# otherwise assumed to be relative to the application root.
# Must be writable by the web server.
# Does not need to be within the web root.
$files_dir = 'attachments';
?>