Files
Web-NibblePoker/commons/config.php
Herwin 3891ec5859 Added data classes bases, Trivial modifications to many files
Update .gitignore, .htaccess, and 19 more files...
2024-01-07 07:34:50 +01:00

46 lines
1.2 KiB
PHP

<?php
// Making sure the file is included and not accessed directly.
if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
header('HTTP/1.1 403 Forbidden'); die();
}
// Used for opengraph head tags.
switch($_SERVER['SERVER_NAME']) {
case "192.168.1.85":
case "localhost":
case "nibblepoker.lu":
$host = "nibblepoker.lu";
$host_uri = "https://nibblepoker.lu";
$host_tld = "lu";
break;
case "nibblepoker.com":
$host = "nibblepoker.com";
$host_uri = "https://nibblepoker.com";
$host_tld = "com";
break;
default:
http_response_code(400);
exit(1);
}
$dir_commons = dirname(__FILE__);
$dir_root = realpath($dir_commons . "/../");
$config_dir_content = realpath($dir_commons . "/../" . "content/");
$config_dir_tools = realpath($dir_commons . "/../" . "tools/");
// Optional features
$enable_grids = false;
$enable_code_highlight = false;
$enable_gallery = false;
$enable_kitty_and_doggo_sounds = false;
// Easter-egg optional features
// > Belgium's independence day.
$enable_waffle_iron = date('m-d') === '07-21';
// > Luxembourg's national day.
$enable_bouneschlupp_mode = date('m-d') === '06-23';
// Debugging stuff
$print_execution_timer = true;
?>