kleine änderungen an den logmeldungen
This commit is contained in:
parent
493827cb67
commit
f57612c00f
|
@ -16,7 +16,6 @@ $saved = false;
|
||||||
|
|
||||||
|
|
||||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||||
// echo '<pre>' . htmlspecialchars(var_export($_POST, true)) . '</pre>';
|
|
||||||
$inputLogin = $_POST['login'] ?? '';
|
$inputLogin = $_POST['login'] ?? '';
|
||||||
$inputEmail = $_POST['email'] ?? '';
|
$inputEmail = $_POST['email'] ?? '';
|
||||||
$inputCaptcha = $_POST['captcha'] ?? '';
|
$inputCaptcha = $_POST['captcha'] ?? '';
|
||||||
|
|
|
@ -44,13 +44,14 @@ class BaseClass {
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
throw new Exception("Can't create logger instance");
|
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
|
* Instanz der Klasse Config erstellen und Konfigurationsdatei
|
||||||
* einlesen lassen.
|
* einlesen lassen.
|
||||||
*/
|
*/
|
||||||
try {
|
try {
|
||||||
$this->config = new Config();
|
$this->config = new Config();
|
||||||
|
$this->log->d("Configuration object successfull created");
|
||||||
$this->config->loadConfig($this->config_path);
|
$this->config->loadConfig($this->config_path);
|
||||||
$this->log->d("Configuration file parsed");
|
$this->log->d("Configuration file parsed");
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
|
|
@ -102,7 +102,7 @@ class Database {
|
||||||
{
|
{
|
||||||
$this->pdo = $pdo;
|
$this->pdo = $pdo;
|
||||||
$this->log = $log;
|
$this->log = $log;
|
||||||
$this->log->d("Databaseobject created");
|
$this->log->d("Databaseobject successfull created");
|
||||||
// hier vielleicht TableCreate hin
|
// hier vielleicht TableCreate hin
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,7 +97,7 @@ class Request extends BaseClass {
|
||||||
$this->log->d("Try to send verification mail");
|
$this->log->d("Try to send verification mail");
|
||||||
|
|
||||||
$link = $baseurl . $validator . $this->token . "\r\n\r\n";
|
$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))
|
if (mail($mailTo, $mailSubject, $mailbody, $mailFrom))
|
||||||
{
|
{
|
||||||
$this->log->i("Validationmail successfull send");
|
$this->log->i("Validationmail successfull send");
|
||||||
|
|
Loading…
Reference in a new issue