git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PEAR Coding Standards intermediate update for files changed
[phorkie.git]
/
www
/
edit.php
diff --git
a/www/edit.php
b/www/edit.php
index 9acc1d69fe12d992927136e0ef63df18b2567fb3..20e779386a422494db506fcd4b144ab45641f7a4 100644
(file)
--- a/
www/edit.php
+++ b/
www/edit.php
@@
-1,15
+1,18
@@
<?php
<?php
-namespace
P
horkie;
+namespace
p
horkie;
/**
* Edit paste contents
*/
require_once 'www-header.php';
/**
* Edit paste contents
*/
require_once 'www-header.php';
+if ($GLOBALS['phorkie']['auth']['secure'] > 0) {
+ include_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)) {
+if ($repopo->process($_POST
, $_SESSION
)) {
redirect($repo->getLink('display'));
}
redirect($repo->getLink('display'));
}
@@
-17,6
+20,7
@@
render(
'edit',
array(
'repo' => $repo,
'edit',
array(
'repo' => $repo,
+ 'htmlhelper' => new HtmlHelper(),
)
);
?>
)
);
?>