From 7d2b6eb0fbd1d186f14f99fa435ce6cd90a0f914 Mon Sep 17 00:00:00 2001 From: Aravindo Wingeier Date: Sat, 16 Jun 2018 21:09:18 +0200 Subject: [PATCH] Implement closed-by-default email list. #54 (#57) * Implement closed-by-default email list. #54 * reload on empty page * simple styling --- CHANGELOG.md | 1 + README.md | 2 +- src/frontend.template.php | 68 +++++++++++++++++++++++++++++++++++++-- src/style.css | 12 +++++++ 4 files changed, 79 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 544a02f..5a14b22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). ## [Unreleased] ### Changed +- Show list of mails and show them only on click. - Removed Turbolinks to allow for simpler code in new features. Add new mail alert. - Rewrote to use mostly pure php. Uses Javascript only where it’s necessary. - fixed problem where only one domain is defined diff --git a/README.md b/README.md index 049e794..78adec9 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Disposable-mailbox can be installed by copying the src directory to a webserver. 2. download a [release](https://github.com/synox/disposable-mailbox/releases) or clone this repository 3. copy the files in the `src` directory to your web server (not the whole repo!). 4. rename `config.sample.php` to `config.php` and apply the imap settings. Move `config.php` to a safe location outside the `public_html`. -5. edit `index.php` and set the new path to `config.php`. +5. edit `index.php` and `json-api.php`: set the new path to `config.php`. 6. open it in your browser, check your php error log for messages. diff --git a/src/frontend.template.php b/src/frontend.template.php index ea52aca..f8d5711 100644 --- a/src/frontend.template.php +++ b/src/frontend.template.php @@ -38,6 +38,9 @@ $mailIdsJoinedString = filter_var(join('|', $mailIds), FILTER_SANITIZE_SPECIAL_C