PDO::CASE_NATURAL,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_ORACLE_NULLS => PDO::NULL_NATURAL,
PDO::ATTR_STRINGIFY_FETCHES => false,
PDO::ATTR_EMULATE_PREPARES => false,
PDO::MYSQL_ATTR_INIT_COMMAND => "
SET SESSION
sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION',
time_zone = '+00:00';
",
]);
} catch(Exception $ex) {
http_response_code(500);
echo '
Unable to connect to database
';
die($ex->getMessage());
}
define('HEAD_FLASHWAVE', [
'accent_colour' => '#4a3650',
]);
define('HEAD_ERROR', [
'accent_colour' => '#960018',
]);
define('HEAD_BLOG', [
'accent_colour' => '#4a3650',
'transitional' => true,
]);
define('HEAD_WHOIS', [
'accent_colour' => '#555',
'transitional' => true,
]);
define('NAV_FLASHWAVE', [
['title' => 'Home', 'link' => '/'],
['title' => 'Projects', 'link' => '/projects.php'],
]);
define('NAV_ERROR', [
['title' => 'Retry', 'link' => $_SERVER['REQUEST_URI']],
['title' => 'Home', 'link' => '/'],
]);
define('NAV_WHOIS', NAV_FLASHWAVE);