Erase login IP addresses after seven days
[aur.git] / web / template / pkg_comment_form.php
blobc450c4b3dcc4235d085b2a80d06130722669e803
1 <form action="<?= get_pkgbase_uri($pkgbase_name) ?>" method="post">
2 <fieldset>
3 <div>
4 <input type="hidden" name="action" value="<?= (isset($comment_id)) ? "do_EditComment" : "do_AddComment" ?>" />
5 <input type="hidden" name="ID" value="<?= intval($base_id) ?>" />
6 <?php if (isset($comment_id)): ?>
7 <input type="hidden" name="comment_id" value="<?= $comment_id ?>" />
8 <?php endif; ?>
9 <input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
10 </div>
11 <p>
12 <textarea id="id_comment" name="comment" cols="80" rows="10"><?= (isset($comment_id)) ? htmlspecialchars($comment) : "" ?></textarea>
13 </p>
14 <p>
15 <input type="submit" value="<?= (isset($comment_id)) ? __("Save") : __("Add Comment") ?>" />
16 </p>
17 </fieldset>
18 </form>