43 lines
1.1 KiB
PHP
43 lines
1.1 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_glider = false;
|
|
$enable_kitty_and_doggo_sounds = false;
|
|
|
|
// Easter-egg optional features
|
|
// > Belgium's independence day.
|
|
$enable_waffle_iron = date('m-d') === '07-21';
|
|
|
|
// Debugging stuff
|
|
$print_execution_timer = true;
|
|
?>
|