Finished base for about page, fixed height issue on mobile, Improved config and lang utils

Update index.php, config.php, and 8 more files...
This commit is contained in:
2023-11-10 03:24:30 +01:00
parent faf5837650
commit e5429e4484
10 changed files with 295 additions and 102 deletions

View File

@@ -4,9 +4,21 @@ if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
header('HTTP/1.1 403 Forbidden'); die();
}
// Only being used in 'head' for opengraph data.
$host = "nibblepoker.lu";
$host_uri = "https://nibblepoker.lu";
// Used for opengraph head tags.
switch($_SERVER['SERVER_NAME']) {
case "localhost":
case "nibblepoker.lu":
$host = "nibblepoker.lu";
$host_uri = "https://nibblepoker.lu";
break;
case "nibblepoker.com":
$host = "nibblepoker.com";
$host_uri = "https://nibblepoker.com";
break;
default:
http_response_code(400);
exit(1);
}
$dir_commons = dirname(__FILE__);
$dir_root = realpath($dir_commons . "/../");