/**
* Edit paste contents
*/
+$reqWritePermissions = true;
require_once 'www-header.php';
-if ($GLOBALS['phorkie']['auth']['secure'] > 0) {
- require_once 'secure.php';
-}
$repo = new Repository();
$repo->loadFromRequest();
$repopo = new Repository_Post($repo);
-if ($repopo->process($_POST)) {
- redirect($repo->getLink('display'));
+if ($repopo->process($_POST, $_SESSION)) {
+ redirect($repo->getLink('display', null, true));
}
render(
'edit',
array(
'repo' => $repo,
+ 'dh' => new \Date_HumanDiff(),
'htmlhelper' => new HtmlHelper(),
)
);