6f754d9ec4c01d4ee0e7d4e36996ac6e4c5e49ac
[phorkie.git] / www / display.php
1 <?php
2 namespace phorkie;
3 /**
4  * Display paste contents
5  */
6 require_once 'www-header.php';
7 if ($GLOBALS['phorkie']['auth']['secure'] == 2) {
8     include_once 'secure.php';
9 }
10
11 $repo = new Repository();
12 $repo->loadFromRequest();
13
14 render(
15     'display',
16     array(
17         'repo' => $repo,
18         'dh'   => new \Date_HumanDiff(),
19     )
20 );
21 ?>