X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/a73791f16d10ea0e2c477f29d9049d75516aa774..d06f9e8ea6cefcfae1ad28bb203a7e4e562820a8:/www/display.php diff --git a/www/display.php b/www/display.php index 2376d30..a41f4a8 100644 --- a/www/display.php +++ b/www/display.php @@ -3,19 +3,24 @@ 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(), ) ); ?>