Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Commit

Permalink
introduced IMPRINT_TEXT and updated jQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
yahesh committed Jul 16, 2020
1 parent ecac29c commit d3aa674
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# 0.26b0 (2020-07-05)
# 0.27b0 (2020-07-16)

* introduced `IMPRINT_TEXT` to change the default text of the imprint link
* updated jQuery to version 3.5.1

# 0.26b0 (2020-05-07)

* introduced `JUMBO_SECRETS` to allow secrets of up to 16kb
* **Beware:** Jumbo secret sharing links that that exceed 2048 bytes (2k) in size will most likely be incompatible with older Internet Explorer versions.
Expand Down
3 changes: 3 additions & 0 deletions config/config.php.default
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
# this is the full path to the secret sharing service, the encrypted secret will be appended to this string
define("SECRET_SHARING_URL", "https://localhost.local/");

# this is the text of the imprint link
define("IMPRINT_TEXT", null);

# this is the URL the imprint link shall forward to
define("IMPRINT_URL", "https://localhost.local/");

Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

# Shared-Secrets v0.26b0
# Shared-Secrets v0.27b0
#
# Copyright (c) 2016-2020, SysEleven GmbH
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion template/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<!-- footer -->
</div>

<script src="/vendors/jquery/jquery.min.js?<?php print($cache_value); ?>" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" type="text/javascript"></script>
<script src="/vendors/jquery/jquery.min.js?<?php print($cache_value); ?>" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" type="text/javascript"></script>
<script src="/vendors/bootstrap/js/bootstrap.min.js?<?php print($cache_value); ?>" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" type="text/javascript"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion template/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<li<?php if (empty(SECRET_URI)) { ?> class="active"<?php } ?>><a href="/">Share a secret.</a></li>
<li<?php if (0 === strcmp(SECRET_URI, HOW_PAGE_NAME)) { ?> class="active"<?php } ?>><a href="/how">How does this service work?</a></li>
<li<?php if (0 === strcmp(SECRET_URI, PUB_PAGE_NAME)) { ?> class="active"<?php } ?>><a href="/pub">Download the public key.</a></li>
<li<?php if (0 === strcmp(SECRET_URI, IMPRINT_PAGE_NAME)) { ?> class="active"<?php } ?>><a href="/imprint">Who provides this service?</a></li>
<li<?php if (0 === strcmp(SECRET_URI, IMPRINT_PAGE_NAME)) { ?> class="active"<?php } ?>><a href="/imprint"><?= (defined("IMPRINT_TEXT") && (null !== IMPRINT_TEXT)) ? IMPRINT_TEXT : "Who provides this service?" ?></a></li>
</ul>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions vendors/jquery/jquery.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vendors/jquery/jquery.min.map

Large diffs are not rendered by default.

0 comments on commit d3aa674

Please sign in to comment.