mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Auto redirect from confirmation screens.
Finally move comment deletion and category editing into functions and remove pkgedit.php Signed-off-by: Loui Chang <louipc.ist@gmail.com> -Fix indentation -Fix variable naming conflict $id vs $cid
This commit is contained in:
parent
01fc2024cb
commit
57a5cbfd88
6 changed files with 125 additions and 124 deletions
|
@ -57,6 +57,10 @@ if ($_POST['action'] == "do_Flag" || isset($_POST['do_Flag'])) {
|
|||
$output = pkg_notify($atype, $ids);
|
||||
} elseif ($_POST['action'] == "do_UnNotify" || isset($_POST['do_UnNotify'])) {
|
||||
$output = pkg_notify($atype, $ids, False);
|
||||
} elseif ($_POST['action'] == "do_DeleteComment" || isset($_POST["do_DeleteComment"])) {
|
||||
$output = pkg_delete_comment($atype);
|
||||
} elseif ($_POST['action'] == "do_ChangeCategory" || isset($_POST['do_ChangeCategory'])) {
|
||||
$output = pkg_change_category($atype);
|
||||
}
|
||||
|
||||
html_header($title);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue