1 <form action
="<?= get_pkgbase_uri($pkgbase_name) ?>" method
="post">
4 if (isset($_REQUEST['comment']) && check_token()) {
5 echo '<p>' . __('Comment has been added.') . '</p>';
9 <input type
="hidden" name
="action" value
="<?= (isset($comment_id)) ? "do_EditComment
" : "do_AddComment
" ?>" />
10 <input type
="hidden" name
="ID" value
="<?= intval($base_id) ?>" />
11 <?php
if (isset($comment_id)): ?
>
12 <input type
="hidden" name
="comment_id" value
="<?= $comment_id ?>" />
14 <input type
="hidden" name
="token" value
="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
17 <textarea id
="id_comment" name
="comment" cols
="80" rows
="10"><?
= (isset($comment_id)) ?
htmlspecialchars($comment) : "" ?
></textarea
>
20 <input type
="submit" value
="<?= (isset($comment_id)) ? __("Save
") : __("Add Comment
") ?>" />