Compare commits

..

No commits in common. "b92ad8fa067b1339b98832904960b61aaf66d6fa" and "932e7f31525236f479ae3db8f419a6f111e0e937" have entirely different histories.

7 changed files with 4 additions and 29 deletions

3
.gitignore vendored
View File

@ -1,5 +1,6 @@
output/
__pycache__/
*.code-workspace
content/pages/termine.md
lighttpd.conf
newsletter.sqlite
@ -10,4 +11,4 @@ events.ini
events.yaml
deploy.ini
.venv/
misc/picture\ ideas/
.vscode/

11
.vscode/settings.json vendored
View File

@ -1,11 +0,0 @@
{
"spellright.language": [
"de_DE",
"en_US"
],
"spellright.documentTypes": [
"markdown",
"latex",
"plaintext"
]
}

View File

@ -1,8 +0,0 @@
{
"folders": [
{
"path": ".."
}
],
"settings": {}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 502 KiB

View File

@ -38,9 +38,7 @@ $mailContents = [
'subject' => 'Diese Nachricht kam ueber das Kontaktformular von t-r.de',
'bodyText' => implode("\n\n", $body),
'fromAddress' => $general['notificationAddress'],
'fromName' => 'Tobias Radloffs Kontaktformular',
'replyTo' => $_POST['email'],
'name' => $_POST['name']
'fromName' => 'Tobias Radloffs Kontaktformular'
];
try {

View File

@ -64,11 +64,6 @@ function SendEmail($toAddress, $mailContents) {
// recipient
$mail->addAddress($toAddress);
// reply-to address
if ( isset($mailContents['replyTo']) and isset($mailContents['name']) ) {
$mail->addReplyTo($mailContents['replyTo'], $mailContents['name']);
}
// content
$mail->CharSet = 'UTF-8';
if ( isset($mailContents['bodyHTML']) and $mailContents['bodyHTML'] != '' ) {

View File

@ -41,7 +41,7 @@
{% if t.description %}<p>{{ t.description | replace("\n\n", "</p><p>") | replace("\n", "<br>") | replace("</p><br><p>", "</p><p>")}}</p>{% endif %}
{% if t.link %}<p><a href="{{ t.link }}" target="_blank" title="siehe auch …">Mehr Infos</a></p>{% endif %}
</div>
{% if t.image %}<a href="{{ t.image }}"><img class="event-flyer" src="{{ t.image }}" alt="siehe auch …"></a> {% endif %}
{% if t.image %}<a href="{{ t.image }}" target="_blank"><img class="event-flyer" src="{{ t.image }}" alt="siehe auch …"></a> {% endif %}
</td>
</tr>
{% endfor %}