From 959781ec659045e028abd8a5f97a8db3418cc059 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Wed, 16 Oct 2024 16:01:41 +0200 Subject: [PATCH] small fixes; fix file permissions --- docs/20_Installation.md | 2 +- php-sendmail.php | 1 - viewer.css | 3 +++ viewer.php | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) mode change 100755 => 100644 php-sendmail.php diff --git a/docs/20_Installation.md b/docs/20_Installation.md index 879d95c..b4a6091 100644 --- a/docs/20_Installation.md +++ b/docs/20_Installation.md @@ -17,7 +17,7 @@ In the php.ini in section `[PHP]` add a value for sendmail_path: ```ini [PHP] ... -sendmail_path = "[WEBROOT]/vendor/emailcatcher/php-sendmail.php" +sendmail_path = "php [WEBROOT]/vendor/emailcatcher/php-sendmail.php" ``` ### Test sending an email diff --git a/php-sendmail.php b/php-sendmail.php old mode 100755 new mode 100644 index 6215edf..b1da066 --- a/php-sendmail.php +++ b/php-sendmail.php @@ -1,4 +1,3 @@ -#!/usr/local/bin/php -q <?php /** * ======================================================================= diff --git a/viewer.css b/viewer.css index b863597..44e91c6 100644 --- a/viewer.css +++ b/viewer.css @@ -84,6 +84,9 @@ pre{ margin: 1em; padding: 0.5em; } +#messages a{ + display: block;; +} #singlemessage{ background-color: #f8f8f8; box-shadow: 0 0 3em #555; diff --git a/viewer.php b/viewer.php index 63b6da6..15ef675 100644 --- a/viewer.php +++ b/viewer.php @@ -109,7 +109,7 @@ if(!count($aEmails)){ <div id="'.$sId.'" class="email'.($sId==$sOpen ? ' open':'').'"> '.( $sId!=$sOpen - ? '✉️ <a href="?open='.$sId.'">'.$aEmail['date'].' - to '.$aEmail['to'].': '.$aEmail['subject'].'</a>' + ? '<a href="?open='.$sId.'">✉️ '.$aEmail['date'].' - to '.$aEmail['to'].': '.$aEmail['subject'].'</a>' : '🔶 '. $aEmail['date'].' - to '.$aEmail['to'].': '.$aEmail['subject'] ) .'</div>'; -- GitLab