X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/f9ade082ba49cf487af31339afa7aeeb0653af57..0b8c6658dd1e6782ed3686d91d4263b89cdbb8a7:/www/display.php diff --git a/www/display.php b/www/display.php index 6f754d9..464741b 100644 --- a/www/display.php +++ b/www/display.php @@ -3,19 +3,26 @@ namespace phorkie; /** * Display paste contents */ +$reqWritePermissions = false; require_once 'www-header.php'; -if ($GLOBALS['phorkie']['auth']['secure'] == 2) { - include_once 'secure.php'; -} $repo = new Repository(); $repo->loadFromRequest(); +header('X-Pingback: ' . $repo->getLink('linkback', null, true)); +header( + 'Link: <' . $repo->getLink('linkback', null, true) . '>;' + . 'rel="http://webmention.org/"' +); + render( 'display', array( 'repo' => $repo, 'dh' => new \Date_HumanDiff(), + 'htmlhelper' => new HtmlHelper(), + 'domain' => $_SERVER['HTTP_HOST'], + 'flashmessages' => FlashMessage::getAll(), ) ); ?>