From f38cd8bc55b4a38079afaa53a918d43678408e9a Mon Sep 17 00:00:00 2001 From: Dendy Date: Thu, 24 Dec 2020 00:56:25 +0100 Subject: [PATCH] Add support for actually updating tags in admin panel --- admin.php | 49 +++++++++++++++++++++++++++++++--------------- include/header.php | 2 +- index.php | 4 ++-- tag.php | 2 +- 4 files changed, 37 insertions(+), 20 deletions(-) diff --git a/admin.php b/admin.php index d71250a..ec5a748 100644 --- a/admin.php +++ b/admin.php @@ -1,4 +1,5 @@ "); + $new_tags = $_GET["t"][$pic]; + if($_GET["chk"][$pic] == "on" or !isset($_GET["chk"])){ + $new_tags .= $_GET["mass"]; + } + + $output = ""; + exec($tmsu . "untag -a $dir/$pic", $output); + exec($tmsu . "tag --tags=\"" . $new_tags . "\" $dir/$pic", $output); + } +} + ?> - Pòsweg\'s image gallery + Dendy\'s image gallery