Fingerprint scripts and styles with version tag
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
<h2><?= translate('about_and_credits', $i18n) ?></h2>
|
<h2><?= translate('about_and_credits', $i18n) ?></h2>
|
||||||
</header>
|
</header>
|
||||||
<div class="credits-list">
|
<div class="credits-list">
|
||||||
<p>Wallos v1.2.1</p>
|
<p>Wallos <?= $version ?></p>
|
||||||
<p><?= translate('license', $i18n) ?>:
|
<p><?= translate('license', $i18n) ?>:
|
||||||
<span>
|
<span>
|
||||||
GPLv3
|
GPLv3
|
||||||
|
|||||||
+7
-5
@@ -8,6 +8,8 @@
|
|||||||
require_once 'i18n/getlang.php';
|
require_once 'i18n/getlang.php';
|
||||||
require_once 'i18n/' . $lang . '.php';
|
require_once 'i18n/' . $lang . '.php';
|
||||||
|
|
||||||
|
require_once 'version.php';
|
||||||
|
|
||||||
if ($userCount == 0) {
|
if ($userCount == 0) {
|
||||||
$db->close();
|
$db->close();
|
||||||
header("Location: registration.php");
|
header("Location: registration.php");
|
||||||
@@ -29,17 +31,17 @@
|
|||||||
<link rel="icon" type="image/png" href="images/icon/favicon.ico" sizes="16x16">
|
<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="apple-touch-icon" sizes="180x180" href="images/icon/apple-touch-icon.png">
|
||||||
<link rel="manifest" href="images/icon/site.webmanifest">
|
<link rel="manifest" href="images/icon/site.webmanifest">
|
||||||
<link rel="stylesheet" href="styles/styles.css">
|
<link rel="stylesheet" href="styles/styles.css?<?= $version ?>">
|
||||||
<link rel="stylesheet" href="styles/dark-theme.css" id="dark-theme" <?= $theme == "light" ? "disabled" : "" ?>>
|
<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://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">
|
<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">
|
<script type="text/javascript">
|
||||||
window.theme = "<?= $theme ?>";
|
window.theme = "<?= $theme ?>";
|
||||||
window.lang = "<?=$lang ?>";
|
window.lang = "<?=$lang ?>";
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="scripts/i18n/<?= $lang ?>.js"></script>
|
<script type="text/javascript" src="scripts/i18n/<?= $lang ?>.js?<?= $version ?>"></script>
|
||||||
<script type="text/javascript" src="scripts/i18n/getlang.js"></script>
|
<script type="text/javascript" src="scripts/i18n/getlang.js?<?= $version ?>"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
$version = "v1.2.2";
|
||||||
|
?>
|
||||||
@@ -264,7 +264,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<script src="scripts/dashboard.js"></script>
|
<script src="scripts/dashboard.js?<?= $version ?>"></script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once 'includes/footer.php';
|
require_once 'includes/footer.php';
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ require_once 'includes/i18n/languages.php';
|
|||||||
require_once 'includes/i18n/getlang.php';
|
require_once 'includes/i18n/getlang.php';
|
||||||
require_once 'includes/i18n/' . $lang . '.php';
|
require_once 'includes/i18n/' . $lang . '.php';
|
||||||
|
|
||||||
|
require_once 'includes/version.php';
|
||||||
|
|
||||||
if ($userCount == 0) {
|
if ($userCount == 0) {
|
||||||
header("Location: registration.php");
|
header("Location: registration.php");
|
||||||
exit();
|
exit();
|
||||||
@@ -77,9 +79,9 @@ if (isset($_POST['username']) && isset($_POST['password'])) {
|
|||||||
<link rel="icon" type="image/png" href="images/icon/favicon.ico" sizes="16x16">
|
<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="apple-touch-icon" sizes="180x180" href="images/icon/apple-touch-icon.png">
|
||||||
<link rel="manifest" href="images/icon/site.webmanifest">
|
<link rel="manifest" href="images/icon/site.webmanifest">
|
||||||
<link rel="stylesheet" href="styles/login.css">
|
<link rel="stylesheet" href="styles/login.css?<?= $version ?>">
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Barlow:300,400,500,600,700">
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Barlow:300,400,500,600,700">
|
||||||
<link rel="stylesheet" href="styles/login-dark-theme.css" id="dark-theme" <?= $theme == "light" ? "disabled" : "" ?>>
|
<link rel="stylesheet" href="styles/login-dark-theme.css?<?= $version ?>" id="dark-theme" <?= $theme == "light" ? "disabled" : "" ?>>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|||||||
+5
-3
@@ -6,6 +6,8 @@ require_once 'includes/i18n/languages.php';
|
|||||||
require_once 'includes/i18n/getlang.php';
|
require_once 'includes/i18n/getlang.php';
|
||||||
require_once 'includes/i18n/' . $lang . '.php';
|
require_once 'includes/i18n/' . $lang . '.php';
|
||||||
|
|
||||||
|
require_once 'includes/version.php';
|
||||||
|
|
||||||
if ($userCount > 0) {
|
if ($userCount > 0) {
|
||||||
header("Location: login.php");
|
header("Location: login.php");
|
||||||
exit();
|
exit();
|
||||||
@@ -84,9 +86,9 @@ if (isset($_POST['username'])) {
|
|||||||
<link rel="icon" type="image/png" href="images/icon/favicon.ico" sizes="16x16">
|
<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="apple-touch-icon" sizes="180x180" href="images/icon/apple-touch-icon.png">
|
||||||
<link rel="manifest" href="images/icon/site.webmanifest">
|
<link rel="manifest" href="images/icon/site.webmanifest">
|
||||||
<link rel="stylesheet" href="styles/login.css">
|
<link rel="stylesheet" href="styles/login.css?<?= $version ?>">
|
||||||
<link rel="stylesheet" href="styles/login-dark-theme.css" id="dark-theme" <?= $theme == "light" ? "disabled" : "" ?>>
|
<link rel="stylesheet" href="styles/login-dark-theme.css?<?= $version ?>" id="dark-theme" <?= $theme == "light" ? "disabled" : "" ?>>
|
||||||
<script type="text/javascript" src="scripts/registration.js"></script>
|
<script type="text/javascript" src="scripts/registration.js?<?= $version ?>"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|||||||
+1
-1
@@ -527,7 +527,7 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
<script src="scripts/settings.js"></script>
|
<script src="scripts/settings.js?<?= $version ?>"></script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once 'includes/footer.php';
|
require_once 'includes/footer.php';
|
||||||
|
|||||||
Reference in New Issue
Block a user