File: /var/www/vhosts/creativefellows.nl/training.creativefellows.nl/config/settings.php
<?php
// Error reporting for production
//error_reporting(E_ALL);
//ini_set('display_errors', '1');
setlocale(LC_TIME, 'nl_NL');
function d($str)
{
echo "<pre>";
print_r($str);
echo "</pre>";
}
// Timezone
date_default_timezone_set('Europe/Amsterdam');
// Settings
$settings = [];
$settings['root'] = dirname(__DIR__);
$settings['temp'] = $settings['root'] . '/tmp';
$settings['public'] = $settings['root'] . '/public';
$settings['template_path'] = $settings['root'] . '/views/';
$settings['cache'] = $settings['root'] . '/cache/';
$settings['email_template_path']= $settings['root'] . '/resources/';
$settings['upload_dir'] = $settings['root'] . '/content/upload/';
$settings['domain_name'] = '/';
$settings['domain_path'] = 'http://bluetraining.test:8888';
$settings['hash_key'] = 'akz2TaXRfaZ4dAqEeugt';
$settings['use_cache'] = false;
$settings['email_from'] = ["email"=> "noreply@univergeblue.com", "name" => "NEC UNIVERGE BLUE"];
$settings['default_form_id']= null;
$settings['localization'] = [
"default_language" => '',
"selected_language" => null,
"available_languages" => [0 => 'en', 1 => 'au', 2 => 'nl', 3 => 'uk',4 => 'it'],
"language_labels" => ['United Status'],//,'Australia','Nederlands','United Kingdom','Italia'],
"language_settings" => ['settings.us.php'],//,'settings.au.php','settings.nl.php','settings.uk.php','settings.it.php']
];
// Error Handling Middleware settings
$settings['error'] = [
'display_error_details' => true,
'log_errors' => true,
'log_error_details' => true,
];
// custom main navigation items
$settings["custom_navigation"] = [];
$settings['logger'] = [
'name' => 'app',
'path' => $settings['root'] . '/logs',
'filename' => 'app.log',
'level' => \Monolog\Logger::DEBUG,
'file_permission' => 0775,
];
$settings['db'] = [
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'Fellows_univergeblue_training',
'username' => 'Fellows_training_us',
'password' => 'uGa57!2w9',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'flags' => [
// Turn off persistent connections
PDO::ATTR_PERSISTENT => false,
// Enable exceptions
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
// Emulate prepared statements
PDO::ATTR_EMULATE_PREPARES => true,
// Set default fetch mode to array
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
// Set character set
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci'
],
];
// default labels
$settings["labels"] = [
"logo" => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 249 38.2"><path d="M82 19.7v-7.2h3v7c0 2.9.6 4.2 3 4.2 2.2 0 3-1.2 3-4.2v-7.1h2.9v7.3a7.79 7.79 0 01-1.1 4.7 5.74 5.74 0 01-4.9 2.2 5.94 5.94 0 01-5-2.2 10.35 10.35 0 01-.9-4.7zM102.8 20.8c-.9-1.2-1.7-2.4-2.6-3.6v9.1h-2.9V12.6h2.8l4.1 5.5c.9 1.2 1.7 2.4 2.6 3.6v-9.1h2.9v13.8h-2.8zM113.2 12.6h3v13.8h-3zM118.4 12.6h3.2l2.2 6c.5 1.2.9 2.5 1.3 3.7.4-1.3.9-2.5 1.4-3.8l2.3-6h3.1l-5.2 13.8h-3zM134.1 12.6h8.5v2.6h-5.5v2.7h4.7v2.5h-4.7v3.3h5.7v2.6h-8.7zM145.7 12.6h4.3c3.1 0 5.9.9 5.9 4.1a3.84 3.84 0 01-2.8 3.8l3.9 5.8h-3.5l-3.5-5.4h-1.3v5.4h-3V12.6zm4.5 6c1.7 0 2.7-.4 2.7-1.7s-.8-1.7-3-1.7h-1.2v3.4zM166 12.4a9.61 9.61 0 014.2 1v3A7.81 7.81 0 00166 15a4.36 4.36 0 00-4.6 4.4 4.28 4.28 0 004.5 4.4 4.67 4.67 0 001.7-.3v-2.1h-2.4v-2.5h5.3v6.4a9.89 9.89 0 01-4.7 1.1c-4.4 0-7.5-3-7.5-7s3.3-7 7.7-7zM173.9 12.6h8.5v2.6h-5.5v2.7h4.7v2.5h-4.7v3.3h5.7v2.6h-8.7zM191 12.6h4c4 0 5.7 1.2 5.7 3.5a2.69 2.69 0 01-2.1 2.7 3.2 3.2 0 012.6 3.3c0 2.6-2 4.2-6.2 4.2h-4.1V12.6zm4.6 5.7c1.3 0 2.1-.5 2.1-1.6s-.7-1.6-2.8-1.6h-.9v3.1h1.6zm-.5 5.5c2.5 0 3.1-.5 3.1-1.7s-.9-1.7-2.5-1.7h-1.8v3.4zM204.1 12.6h3v11.1h6v2.6h-9zM215.5 19.7v-7.2h3v7c0 2.9.6 4.2 3 4.2 2.2 0 3-1.2 3-4.2v-7.1h2.9v7.3a7.79 7.79 0 01-1.1 4.7 5.74 5.74 0 01-4.9 2.2 5.94 5.94 0 01-5-2.2 9.17 9.17 0 01-.9-4.7zM230.7 12.6h8.5v2.6h-5.5v2.7h4.7v2.5h-4.7v3.3h5.7v2.6h-8.7zM245.4 12.4a3.5 3.5 0 11-3.6 3.5 3.44 3.44 0 013.6-3.5zm0 6.4a2.84 2.84 0 002.9-2.9 2.78 2.78 0 00-2.9-2.9 2.84 2.84 0 00-2.9 2.9 2.78 2.78 0 002.9 2.9zm0-2.3h-.5v1.4h-.8v-3.8h1.4c.8 0 1.5.4 1.5 1.2a1.08 1.08 0 01-.8 1.1l.9 1.5h-.9zm0-.7c.4 0 .7-.2.7-.6s-.3-.6-.7-.6h-.5v1.1h.5z" fill="#102e60"/><path d="M35.8 0a3.63 3.63 0 00-2.6 1.1 3.68 3.68 0 000 5.3l12.7 12.7 2.6-2.6a3.62 3.62 0 015.2 0L38.4 1.1A3.27 3.27 0 0035.8 0" fill="#3b93c8"/><path d="M35.8 0a3.63 3.63 0 012.6 1.1 3.68 3.68 0 010 5.3L25.7 19.1l-2.6-2.6a3.81 3.81 0 00-2.6-1.1 3.63 3.63 0 00-2.6 1.1L33.3 1.1A3 3 0 0135.8 0" fill="#ed5c01"/><path d="M45.9 19.1L33.1 31.8a3.68 3.68 0 000 5.3 3.81 3.81 0 002.6 1.1 3.63 3.63 0 002.6-1.1l15.5-15.4a3.81 3.81 0 01-2.6 1.1 3.63 3.63 0 01-2.6-1.1z" fill="#97bd31"/><path d="M25.7 19.1l12.7 12.7a3.68 3.68 0 010 5.3 3.81 3.81 0 01-2.6 1.1 3.63 3.63 0 01-2.6-1.1L17.8 21.7a3.81 3.81 0 002.6 1.1 3.63 3.63 0 002.6-1.1z" fill="#f39224"/><path d="M51.2 15.4a3.63 3.63 0 00-2.6 1.1l-2.7 2.6 2.6 2.6a3.81 3.81 0 002.6 1.1 3.63 3.63 0 002.6-1.1 3.81 3.81 0 001.1-2.6 3.63 3.63 0 00-1.1-2.6 3.07 3.07 0 00-2.5-1.1" fill="#102e60"/><path d="M20.4 15.4a3.63 3.63 0 012.6 1.1l2.6 2.6-2.5 2.6a3.81 3.81 0 01-2.6 1.1 3.63 3.63 0 01-2.6-1.1 3.81 3.81 0 01-1.1-2.6 3.63 3.63 0 011.1-2.6 3 3 0 012.5-1.1" fill="#dc291a"/><path d="M39.5 3.7a3.63 3.63 0 01-1.1 2.6l-2.6 2.6-2.6-2.6a3.81 3.81 0 01-1.1-2.6 3.63 3.63 0 011.1-2.6A3.81 3.81 0 0135.8 0a3.63 3.63 0 012.6 1.1 3.41 3.41 0 011.1 2.6" fill="#0b56a5"/><path d="M32.1 34.5a3.63 3.63 0 011.1-2.6l2.6-2.6 2.6 2.6a3.7 3.7 0 01-2.6 6.3 3.63 3.63 0 01-2.6-1.1 3.41 3.41 0 01-1.1-2.6" fill="#40b312"/><path d="M57 4.8a4 4 0 00-2.7 1.1 3.68 3.68 0 000 5.3l7.8 7.8 2.7-2.7a3.86 3.86 0 012.7-1.1 4 4 0 012.7 1.1L59.6 5.9A3.81 3.81 0 0057 4.8" fill="#ed5c01"/><path d="M62.1 19.1l-7.8 7.8a3.68 3.68 0 000 5.3 3.86 3.86 0 002.7 1.1 4 4 0 002.7-1.1l10.5-10.5a3.86 3.86 0 01-2.7 1.1 4 4 0 01-2.7-1.1z" fill="#f39224"/><path d="M67.5 15.3a4 4 0 00-2.7 1.1l-2.7 2.7 2.7 2.7a3.86 3.86 0 002.7 1.1 4 4 0 002.7-1.1 3.86 3.86 0 001.1-2.7 4 4 0 00-1.1-2.7 4.25 4.25 0 00-2.7-1.1" fill="#dc291a"/><path d="M14.3 4.8A4 4 0 0117 5.9a3.68 3.68 0 010 5.3L9.2 19l-2.7-2.7a3.86 3.86 0 00-2.7-1.1 3.73 3.73 0 00-2.6 1.2L11.7 5.9a3.81 3.81 0 012.6-1.1" fill="#3b93c8"/><path d="M9.2 19.1l7.8 7.8a3.68 3.68 0 010 5.3 3.86 3.86 0 01-2.7 1.1 4 4 0 01-2.7-1.1L1.2 21.8a3.86 3.86 0 002.7 1.1 4 4 0 002.7-1.1z" fill="#97bd31"/><path d="M3.8 15.3a4 4 0 012.7 1.1l2.7 2.7-2.7 2.7a3.86 3.86 0 01-2.7 1.1 4 4 0 01-2.7-1.1A3.86 3.86 0 010 19.1a4 4 0 011.1-2.7 4.25 4.25 0 012.7-1.1" fill="#102e60"/></svg>',
];
return $settings;