54 lines
1.4 KiB
Plaintext
54 lines
1.4 KiB
Plaintext
<?php
|
|
/******************************************************************************
|
|
* YMS - Yacht Management Software
|
|
* Copyright (C) 2024-2026 Thomas Hooge
|
|
*
|
|
* SPDX-License-Identifier: WTFPL
|
|
*****************************************************************************/
|
|
|
|
// ========== GLOBAL CONSTANTS ================================================
|
|
|
|
define('APP_TITLE', 'Yacht Management Software');
|
|
define('APP_TITLE_SHORT', 'YMS');
|
|
define('APP_SESSION', 'yms');
|
|
define('APP_ILLUSTRATION', 'sailboat.svg');
|
|
|
|
// ========== GLOBAL VARIABLES ================================================
|
|
|
|
// database connection
|
|
$g_db_host = 'localhost';
|
|
$g_db_username = 'ymsweb';
|
|
$g_db_password = 'changeme!';
|
|
$g_db_schema = 'yms';
|
|
|
|
// mail settings
|
|
$g_mail_enable = FALSE;
|
|
$g_mailto = 'captain@example.com';
|
|
$g_mailto_webmaster = 'webmaster@example.com';
|
|
|
|
// localization
|
|
$g_textdomain = 'yms';
|
|
$g_timezone = 'Europe/Berlin';
|
|
$g_locale = 'de_DE.UTF-8';
|
|
|
|
// vessel base shapes directory
|
|
$g_shapedir = '/usr/local/share/yms/shapes';
|
|
|
|
// documents and images
|
|
$g_doc_basepath = '/var/local/yms';
|
|
$g_doc_maxsize = 1024*1024*16; // 16 MB, please adjust php.ini accordingly!
|
|
$g_doc_typemap = array(
|
|
'generic' => 'doc',
|
|
'manual' => 'doc',
|
|
'invoice' => 'doc',
|
|
'picture' => 'pic',
|
|
'drawing' => 'drw'
|
|
);
|
|
|
|
$g_storage_limit = 1024; // MB
|
|
|
|
$g_thumb_size = 120;
|
|
|
|
$g_rows_pp = 10; // pagination limit
|
|
|