diff options
author | Jonas Kohl | 2024-09-19 14:25:29 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-09-19 14:25:29 +0200 |
commit | ec0ea4e681136c38b17c66b40ee5dfca8ca136e4 (patch) | |
tree | 669f6fbeda5c44a94eebd17f57fa2dab3a747ce5 /src | |
parent | 95bfdb59b6a1e04e474551c23c7caef619c79839 (diff) |
Add version info
Diffstat (limited to 'src')
-rw-r--r-- | src/application/views/template_start.php | 1 | ||||
-rw-r--r-- | src/index.php | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/application/views/template_start.php b/src/application/views/template_start.php index 51f873a..cf3daf6 100644 --- a/src/application/views/template_start.php +++ b/src/application/views/template_start.php @@ -15,6 +15,7 @@ $pageTitle .= env("MYSTIC_FORUM_TITLE") ?? "Forum"; <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width,initial-scale=1"> + <meta name="generator" content="mysticBB <?= htmlentities(MYSTICBB_VERSION) ?>"> <title><?= htmlentities($pageTitle) ?></title> <link rel="stylesheet" href="?_action=ctheme"> <script src="/ui/jquery-1.12.4.min.js"></script> diff --git a/src/index.php b/src/index.php index cc9e99d..8202365 100644 --- a/src/index.php +++ b/src/index.php @@ -23,6 +23,8 @@ use Symfony\Contracts\Service\Attribute\Required; header_remove("X-Powered-By"); +const MYSTICBB_VERSION = "0.1.0"; + if (($_SERVER["HTTP_USER_AGENT"] ?? "") === "") { http_response_code(403); exit; |