vars.inc.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. error_reporting(E_ERROR);
  3. //error_reporting(E_ALL);
  4. /*
  5. PLEASE USE THE FILE "vars.local.inc.php" TO OVERWRITE SETTINGS AND MAKE THEM PERSISTENT!
  6. This file will be reset on upgrades.
  7. */
  8. // SQL database connection variables
  9. $database_type = 'mysql';
  10. $database_host = 'mysql';
  11. $database_user = getenv('DBUSER');
  12. $database_pass = getenv('DBPASS');
  13. $database_name = getenv('DBNAME');
  14. // Other variables
  15. $mailcow_hostname = getenv('MAILCOW_HOSTNAME');
  16. // Where to go after adding and editing objects
  17. // Can be "form" or "previous"
  18. // "form" will stay in the current form, "previous" will redirect to previous page
  19. $FORM_ACTION = 'previous';
  20. // Change default language, "de", "en", "es", "nl", "pt", "ru"
  21. $DEFAULT_LANG = 'en';
  22. // Available languages
  23. $AVAILABLE_LANGUAGES = array('de', 'en', 'es', 'nl', 'pt', 'ru', 'it');
  24. // Change theme (default: lumen)
  25. // Needs to be one of those: cerulean, cosmo, cyborg, darkly, flatly, journal, lumen, paper, readable, sandstone,
  26. // simplex, slate, spacelab, superhero, united, yeti
  27. // See https://bootswatch.com/
  28. // WARNING: Only lumen is loaded locally. Enabling any other theme, will download external sources.
  29. $DEFAULT_THEME = 'lumen';
  30. // Password complexity as regular expression
  31. $PASSWD_REGEP = '.{4,}';
  32. // mailcow Apps - buttons on login screen
  33. $MAILCOW_APPS = array(
  34. array(
  35. 'name' => 'SOGo',
  36. 'link' => '/SOGo/',
  37. 'description' => 'SOGo is a web-based client for email, address book and calendar.'
  38. ),
  39. // array(
  40. // 'name' => 'Roundcube',
  41. // 'link' => '/rc/',
  42. // 'description' => 'Roundcube is a web-based email client.',
  43. // ),
  44. );
  45. // Rows until pagination begins
  46. $PAGINATION_SIZE = 10;
  47. // Rows until pagination begins (log table)
  48. $LOG_PAGINATION_SIZE = 30;
  49. // Session lifetime in seconds
  50. $SESSION_LIFETIME = 3600;
  51. // Label for OTP devices
  52. $OTP_LABEL = "mailcow UI";