git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
show newest repositories in list at first
[phorkie.git]
/
www
/
edit.php
diff --git
a/www/edit.php
b/www/edit.php
index 226b774e056f5040c6306a1e11aa942662b69341..d1853d246ce5c456b3d6c4884a72bd5f2bacddf4 100644
(file)
--- a/
www/edit.php
+++ b/
www/edit.php
@@
-3,23
+3,22
@@
namespace phorkie;
/**
* Edit paste contents
*/
/**
* Edit paste contents
*/
+$reqWritePermissions = true;
require_once 'www-header.php';
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);
$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,
}
render(
'edit',
array(
'repo' => $repo,
+ 'dh' => new \Date_HumanDiff(),
'htmlhelper' => new HtmlHelper(),
)
);
'htmlhelper' => new HtmlHelper(),
)
);