From f57612c00f89b5b4afff66c2cc0cb815edc35984 Mon Sep 17 00:00:00 2001 From: bernd Date: Tue, 2 Mar 2021 23:52:10 +0100 Subject: [PATCH] =?UTF-8?q?kleine=20=C3=A4nderungen=20an=20den=20logmeldun?= =?UTF-8?q?gen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 1 - lib/base.php | 3 ++- lib/db.php | 2 +- lib/request.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 9cc7cae..50181e4 100644 --- a/index.php +++ b/index.php @@ -16,7 +16,6 @@ $saved = false; if ($_SERVER['REQUEST_METHOD'] === 'POST') { - // echo '
' . htmlspecialchars(var_export($_POST, true)) . '
'; $inputLogin = $_POST['login'] ?? ''; $inputEmail = $_POST['email'] ?? ''; $inputCaptcha = $_POST['captcha'] ?? ''; diff --git a/lib/base.php b/lib/base.php index 8a87319..2c944cc 100644 --- a/lib/base.php +++ b/lib/base.php @@ -44,13 +44,14 @@ class BaseClass { } catch (Exception $e) { throw new Exception("Can't create logger instance"); } - $this->log->d("Create a instance of BaseClass"); + $this->log->d("Base class instance successfull created"); /** * Instanz der Klasse Config erstellen und Konfigurationsdatei * einlesen lassen. */ try { $this->config = new Config(); + $this->log->d("Configuration object successfull created"); $this->config->loadConfig($this->config_path); $this->log->d("Configuration file parsed"); } catch (Exception $e) { diff --git a/lib/db.php b/lib/db.php index e9e449d..86badeb 100644 --- a/lib/db.php +++ b/lib/db.php @@ -102,7 +102,7 @@ class Database { { $this->pdo = $pdo; $this->log = $log; - $this->log->d("Databaseobject created"); + $this->log->d("Databaseobject successfull created"); // hier vielleicht TableCreate hin } diff --git a/lib/request.php b/lib/request.php index 82c9ca4..2fd02d6 100644 --- a/lib/request.php +++ b/lib/request.php @@ -97,7 +97,7 @@ class Request extends BaseClass { $this->log->d("Try to send verification mail"); $link = $baseurl . $validator . $this->token . "\r\n\r\n"; - $mailbody = MAILTEXT1 . $mxdomain . MAILTEXT2 . "\r\n\r\n" . $link . $mailClosure; + $mailbody = MAILTEXT1 . " {$mxdomain} " . MAILTEXT2 . "\r\n\r\n" . $link . $mailClosure; if (mail($mailTo, $mailSubject, $mailbody, $mailFrom)) { $this->log->i("Validationmail successfull send");