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

Commit

Permalink
Changed package script again to avoid duplicate files.
Browse files Browse the repository at this point in the history
Added check for sodium
  • Loading branch information
rvolz committed Jul 1, 2021
1 parent e14c004 commit 413f13d
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 19 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.5.3] - 2021-07-01
### Added
- installcheck: Check for Sodium when using PHP 7.4+
### Changed
- Changed packaging script to avoid duplicate files and reduce archive size

## [1.5.2] - 2021-06-28
### Changed
- Fixed packaging script, #367
Expand Down
8 changes: 4 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@

# Allowed languages, i.e. languages with translations
$allowedLangs = array('de', 'en', 'es', 'fr', 'gl' , 'hu', 'it', 'nl', 'pl');
# Fallback language if the browser prefers otherau than the allowed languages
# Fallback language if the browser prefers another than the allowed languages
$fallbackLang = 'en';
# Application Name
$appname = 'BicBucStriim';
# App version
$appversion = '1.5.2';
$appversion = '1.5.3';

# Init app and routes
$app = new \Slim\Slim(array(
'view' => new \Slim\Views\Twig(),
'mode' => 'production',
#'mode' => 'production',
#'mode' => 'debug',
#'mode' => 'development',
'mode' => 'development',
));

$app->configureMode('production', 'confprod');
Expand Down
3 changes: 2 additions & 1 deletion installcheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function check_php() {
echo $template->render(array(
'page' => array(
'rot' => '',
'version' => '1.5.22'
'version' => '1.5.3'
),
'is_a' => $is_a,
'srv' => $srv,
Expand All @@ -135,6 +135,7 @@ function check_php() {
'dwrit' => fw('./data'),
'intl' => extension_loaded('intl'),
'mcrypt' => extension_loaded('mcrypt'),
'sodium' => extension_loaded('sodium'),
'mwrit' => fw('./data/data.db'),
'opd' => ini_get('open_basedir'),
'php' => check_php(),
Expand Down
19 changes: 8 additions & 11 deletions scripts/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,16 @@ zip.addLocalFile("js/script.js", "js/script.js");
zip.addLocalFolder("style/jquery", "style/jquery");
zip.addLocalFile("style/style.css", "style/");
zip.addLocalFolder("lib/BicBucStriim", "lib/BicBucStriim");
zip.addLocalFolder("vendor", "vendor", "*.php");
zip.addLocalFile("vendor/autoload.php", "vendor");
zip.addLocalFile("vendor/DateTimeFileWriter.php", "vendor");
zip.addLocalFile("vendor/epub.php", "vendor");
zip.addLocalFile("vendor/rb.php", "vendor");
zip.addLocalFolder("vendor/aura", "vendor/aura");
zip.addLocalFolder("vendor/composer", "vendor/composer");
zip.addLocalFolder("vendor/slim/slim", "vendor/slim/slim");
zip.addLocalFolder("vendor/slim/views/", "vendor/slim/views/");
zip.addLocalFolder("vendor/slim/slim/Slim", "vendor/slim/slim/Slim");
zip.addLocalFolder("vendor/twig/twig", "vendor/twig/twig");
zip.addLocalFolder("vendor/twig/twig/ext", "vendor/twig/twig/ext");
zip.addLocalFolder("vendor/twig/twig/lib", "vendor/twig/twig/lib");
zip.addLocalFolder("vendor/swiftmailer/swiftmailer/lib", "vendor/swiftmailer/swiftmailer/lib");
zip.addLocalFolder("vendor/swiftmailer/swiftmailer", "vendor/swiftmailer/swiftmailer");
zip.addLocalFolder("vendor/ircmaxell/password-compat/lib", "vendor/ircmaxell/password-compat/lib");
zip.addLocalFolder("vendor/dflydev/markdown/src", "vendor/dflydev/markdown/src");
zip.addLocalFolder("vendor/slim", "vendor/slim");
zip.addLocalFolder("vendor/twig", "vendor/twig");
zip.addLocalFolder("vendor/swiftmailer", "vendor/swiftmailer");
zip.addLocalFolder("vendor/ircmaxell", "vendor/ircmaxell");
zip.addLocalFolder("vendor/dflydev/markdown", "vendor/dflydev/markdown");
zip.addLocalFolder("templates", "templates");
zip.addLocalFolder("data", "data");
Expand Down
40 changes: 37 additions & 3 deletions templates/installcheck.html
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ <h3>
<img src="img/bbs-light-yellow.png" />
{% endif %}
<h3>
Is Mcrypt enabled?
Is Mcrypt enabled? (PHP <7.4)
</h3>
<p>
{% if mcrypt == true %}
Expand All @@ -273,6 +273,28 @@ <h3>
info
</a>
</li>
<li>
<a href="#">
{% if sodium == true %}
<img src="img/bbs-light-green.png" />
{% else %}
<img src="img/bbs-light-yellow.png" />
{% endif %}
<h3>
Is Sodium enabled? (PHP 7.4+)
</h3>
<p>
{% if sodium == true %}
Yes.
{% else %}
No.
{% endif %}
</p>
</a>
<a href="#popupSodium" data-rel="popup">
info
</a>
</li>
<li>
<a href="#">
{% if intl == true %}
Expand Down Expand Up @@ -413,14 +435,26 @@ <h3>
</div>
<div id="popupMcrypt" data-role="popup" data-theme="a">
<p>
Mcrypt is used by the underlying framework to encrypt browser cookies. BicBucStriim works
Mcrypt is used by the underlying framework to encrypt browser cookies when using PHP <7.4. BicBucStriim works
without it, but then might transmit data unencrypted. In a secure home network
this is usually not a problem.
</p>
<p>
In case you are using BicBucStriim in a public network, you might consider
enabling mcrypt to protect your cookies. In order to enable mcrypt, install
a module like <em>php5-mcrypt</em>.
a module like <em>php-mcrypt</em>.
</p>
</div>
<div id="popupSodium" data-role="popup" data-theme="a">
<p>
Sodium is used by the underlying framework to encrypt browser cookies when using PHP 7.4+. BicBucStriim works
without it, but then might transmit data unencrypted. In a secure home network
this is usually not a problem.
</p>
<p>
In case you are using BicBucStriim in a public network, you might consider
enabling sodium to protect your cookies. In order to enable sodium, install
a module like <em>php-sodium</em>.
</p>
</div>
<div id="popupIntl" data-role="popup" data-theme="a">
Expand Down

0 comments on commit 413f13d

Please sign in to comment.