General parameters¶
Configuration files¶
The default configuration file is conf/config.inc.php
, it contains all default values.
To edit configuration, you should create conf/config.inc.local.php
and override needed parameters:
<?php
// Override config.inc.php parameters below
?>
Warning
Do not copy config.inc.php
into config.inc.local.php
, as the first one includes the second.
You would then create an infinite loop and crash your application.
Language¶
Tip
Lang is selected from browser configuration. If no matching language is found, the default language is used.
Set default language in $lang
:
$lang = "en";
Tip
You can override messages by creating lang files in conf/
, for example conf/en.inc.php
.
Dates¶
You can adapt how dates are displayed with specifiers (see strftime reference):
$date_specifiers = "%Y-%m-%d %H:%M:%S (%Z)";
Graphics¶
Logo¶
You change the default logo with your own. Set the path to your logo in $logo
:
$logo = "images/ltb-logo.png";
Background¶
You change the background image with your own. Set the path to image in $background_image
:
$background_image = "images/unsplash-space.jpeg";
Custom CSS¶
To easily customize CSS, you can use a separate CSS file:
$custom_css = "css/custom.css";
Smarty¶
You need to define where Smarty is installed:
define("SMARTY", "/usr/share/php/smarty3/Smarty.class.php");
For Smarty to be able to successfully ‘compile’ pages from the templates, the directory “template_c” must be writable by the web server.