From a5a286b1c83921c7389223023ad50560b78c3177 Mon Sep 17 00:00:00 2001 From: Tanguy Le Faucheur Date: Wed, 22 Nov 2023 18:40:56 +0100 Subject: [PATCH] Add value in conf ini example, disabled input if the variable is set to false --- app.php | 5 +++++ config/config.ini.example | 3 +++ templates/signature.html.php | 4 +++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app.php b/app.php index 43d4f70..d7a7bfc 100644 --- a/app.php +++ b/app.php @@ -81,6 +81,11 @@ $f3->route('GET /signature', if(!$f3->get('PDF_STORAGE_PATH')) { $f3->set('noSharingMode', true); } + + if (!$f3->exists('PDF_STORAGE_ENCRYPTION')) { + $f3->set('PDF_STORAGE_ENCRYPTION', ''); + } + $f3->set('activeTab', 'sign'); echo View::instance()->render('signature.html.php'); diff --git a/config/config.ini.example b/config/config.ini.example index 440b33c..8dc39be 100644 --- a/config/config.ini.example +++ b/config/config.ini.example @@ -15,3 +15,6 @@ PDF_STORAGE_PATH=/path/to/folder ;Declare your public domain here if you can't handle location rewriting through your reverse proxy. ;REVERSE_PROXY_URL=http://127.0.0.1:8080 + +; Encryption activation (default activation if GPG is installed) +;PDF_STORAGE_ENCRYPTION=true diff --git a/templates/signature.html.php b/templates/signature.html.php index d278e2f..7c651ac 100644 --- a/templates/signature.html.php +++ b/templates/signature.html.php @@ -193,7 +193,9 @@

'); ?>

'); ?>

- +
disabled="disabled"checked/> + +