X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/97c4ac59eed8b66b2e7f85d8ac325b063fb8a0ce..abf08ecdb046202de8b5abf0392b4b76a5d0f89a:/www/display.php diff --git a/www/display.php b/www/display.php index 2376d30..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) { - require_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(), ) ); ?>