summaryrefslogtreecommitdiffstats
path: root/web/html/commentedit.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/html/commentedit.php')
-rw-r--r--web/html/commentedit.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/web/html/commentedit.php b/web/html/commentedit.php
new file mode 100644
index 0000000..83d86dd
--- /dev/null
+++ b/web/html/commentedit.php
@@ -0,0 +1,21 @@
+<?php
+
+set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
+
+include_once("aur.inc.php");
+include_once("pkgbasefuncs.inc.php");
+
+set_lang();
+check_sid();
+
+$comment_id = intval($_REQUEST['comment_id']);
+list($user_id, $comment) = comment_by_id($comment_id);
+
+if (!isset($base_id) || !has_credential(CRED_COMMENT_EDIT, array($user_id)) || is_null($comment)) {
+ header('Location: /');
+ exit();
+}
+
+html_header(__("Edit comment"));
+include('pkg_comment_form.php');
+html_footer(AURWEB_VERSION);