X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/e6c3f4fe5f308ca6ff56bb9c4fb28df0411fb0d3..4bf9341c044f4081ac80317d758435d2d537e006:/mail/index.php?ds=inline
diff --git a/mail/index.php b/mail/index.php
index 76ec033..37b1edc 100644
--- a/mail/index.php
+++ b/mail/index.php
@@ -1,6 +1,6 @@
path, '/'));
function parsemailhead($headerdata)
{
@@ -16,7 +16,7 @@ if ($msgid) {
list ($headerdata, $rawbody) = explode("\n\n", file_get_contents($filename), 2);
$head = parsemailhead($headerdata);
- $Article->title = 'Mailbericht ' . $head['date']->format('Y-m-d H:i');
+ $Page->title = 'Mailbericht ' . $head['date']->format('Y-m-d H:i');
printf("
%s
\n", htmlspecialchars($head['Subject'] ?? 'Mailbericht zonder onderwerp'));
print '';
@@ -45,8 +45,8 @@ if ($msgid) {
if (!$User->admin('user')) {
http_response_code(403);
- $Place['warn'] = "Geen gebruikersrechten om e-mails in te zien.";
- $Place['maillist'] = '';
+ $Page->place['warn'] = "Geen gebruikersrechten om e-mails in te zien.";
+ $Page->place['maillist'] = '';
return TRUE;
}
@@ -62,7 +62,7 @@ foreach (array_reverse($rows) as $filename) {
list ($headerdata) = explode("\n\n", file_get_contents($filename));
$head = parsemailhead($headerdata);
- printf('
', "/$Page/".basename($filename));
+ printf('', "/{$Page->handler}/".basename($filename));
print $head['Subject'];
printf(' %s',
@@ -72,4 +72,4 @@ foreach (array_reverse($rows) as $filename) {
print "\n";
}
print "\n";
-$Place['maillist'] = ob_get_clean();
+$Page->place['maillist'] = ob_get_clean();