From ec0ea4e681136c38b17c66b40ee5dfca8ca136e4 Mon Sep 17 00:00:00 2001
From: Jonas Kohl
Date: Thu, 19 Sep 2024 14:25:29 +0200
Subject: Add version info

---
 src/application/views/template_start.php | 1 +
 src/index.php                            | 2 ++
 2 files changed, 3 insertions(+)

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;
-- 
cgit v1.2.3