From 16c7896c8fe95cd232203555ccd5968e27aa0b07 Mon Sep 17 00:00:00 2001 From: ellite Date: Mon, 5 Feb 2024 12:51:10 +0100 Subject: [PATCH] Fingerprint scripts and styles with version tag --- about.php | 2 +- includes/header.php | 12 +++++++----- includes/version.php | 3 +++ index.php | 2 +- login.php | 6 ++++-- registration.php | 8 +++++--- settings.php | 2 +- stats.php | 2 +- 8 files changed, 23 insertions(+), 14 deletions(-) create mode 100644 includes/version.php diff --git a/about.php b/about.php index e50ee680d..7ba6c7445 100644 --- a/about.php +++ b/about.php @@ -9,7 +9,7 @@

-

Wallos v1.2.1

+

Wallos

: GPLv3 diff --git a/includes/header.php b/includes/header.php index 85a54f171..4218b42a0 100644 --- a/includes/header.php +++ b/includes/header.php @@ -8,6 +8,8 @@ require_once 'i18n/getlang.php'; require_once 'i18n/' . $lang . '.php'; + require_once 'version.php'; + if ($userCount == 0) { $db->close(); header("Location: registration.php"); @@ -29,17 +31,17 @@ - - > + + > - + - - + +

diff --git a/includes/version.php b/includes/version.php new file mode 100644 index 000000000..ff1c5ae32 --- /dev/null +++ b/includes/version.php @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/index.php b/index.php index cfc986032..860c8bbeb 100644 --- a/index.php +++ b/index.php @@ -264,7 +264,7 @@ - + - + - > + >
diff --git a/registration.php b/registration.php index 979be2c52..e426a3378 100644 --- a/registration.php +++ b/registration.php @@ -6,6 +6,8 @@ require_once 'includes/i18n/getlang.php'; require_once 'includes/i18n/' . $lang . '.php'; +require_once 'includes/version.php'; + if ($userCount > 0) { header("Location: login.php"); exit(); @@ -84,9 +86,9 @@ - - > - + + > +
diff --git a/settings.php b/settings.php index 2367e88cf..e286b1bf3 100644 --- a/settings.php +++ b/settings.php @@ -527,7 +527,7 @@ - + - + \ No newline at end of file