feat: implement email logging and test price mode functionality with QR code generation for order confirmations

This commit is contained in:
2026-03-10 13:20:22 +01:00
parent 61e480cc94
commit 752b6c653e
8 changed files with 412 additions and 36 deletions

View File

@@ -2607,14 +2607,13 @@ class PHPMailer
if (!is_readable($path)) {
throw new phpmailerException($this->lang('file_open') . $path, self::STOP_CONTINUE);
}
$magic_quotes = get_magic_quotes_runtime();
$magic_quotes = function_exists('get_magic_quotes_runtime') ? get_magic_quotes_runtime() : false;
if ($magic_quotes) {
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
set_magic_quotes_runtime(false);
if (function_exists('set_magic_quotes_runtime')) {
set_magic_quotes_runtime(false);
}
} else {
//Doesn't exist in PHP 5.4, but we don't need to check because
//get_magic_quotes_runtime always returns false in 5.4+
//so it will never get here
ini_set('magic_quotes_runtime', false);
}
}
@@ -2622,7 +2621,9 @@ class PHPMailer
$file_buffer = $this->encodeString($file_buffer, $encoding);
if ($magic_quotes) {
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
set_magic_quotes_runtime($magic_quotes);
if (function_exists('set_magic_quotes_runtime')) {
set_magic_quotes_runtime($magic_quotes);
}
} else {
ini_set('magic_quotes_runtime', $magic_quotes);
}
@@ -3921,4 +3922,4 @@ class phpmailerException extends Exception
$errorMsg = '<strong>' . $this->getMessage() . "</strong><br />\n";
return $errorMsg;
}
}
}