Fingerprint scripts and styles with version tag
This commit is contained in:
+7
-5
@@ -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 @@
|
||||
<link rel="icon" type="image/png" href="images/icon/favicon.ico" sizes="16x16">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="images/icon/apple-touch-icon.png">
|
||||
<link rel="manifest" href="images/icon/site.webmanifest">
|
||||
<link rel="stylesheet" href="styles/styles.css">
|
||||
<link rel="stylesheet" href="styles/dark-theme.css" id="dark-theme" <?= $theme == "light" ? "disabled" : "" ?>>
|
||||
<link rel="stylesheet" href="styles/styles.css?<?= $version ?>">
|
||||
<link rel="stylesheet" href="styles/dark-theme.css?<?= $version ?>" id="dark-theme" <?= $theme == "light" ? "disabled" : "" ?>>
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Barlow:300,400,500,600,700">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
|
||||
<script type="text/javascript" src="scripts/common.js"></script>
|
||||
<script type="text/javascript" src="scripts/common.js?<?= $version ?>"></script>
|
||||
<script type="text/javascript">
|
||||
window.theme = "<?= $theme ?>";
|
||||
window.lang = "<?=$lang ?>";
|
||||
</script>
|
||||
<script type="text/javascript" src="scripts/i18n/<?= $lang ?>.js"></script>
|
||||
<script type="text/javascript" src="scripts/i18n/getlang.js"></script>
|
||||
<script type="text/javascript" src="scripts/i18n/<?= $lang ?>.js?<?= $version ?>"></script>
|
||||
<script type="text/javascript" src="scripts/i18n/getlang.js?<?= $version ?>"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
$version = "v1.2.2";
|
||||
?>
|
||||
Reference in New Issue
Block a user