"); $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); } } ?> Dendy\'s image gallery Utilities"); echo("Delete unused tags"); echo("

Tag files

"); echo("
"); echo("<-
\n"); foreach($paths as $entry){ echo("$entry
\n"); } echo("
"); /* Images */ if($images){ echo("
\n"); echo("\n"); echo(""); echo("
"); echo(""); foreach($images as $img){ $output = ""; exec($tmsu . "tags -1 '$dir/$img'", $output); $num_tags = sizeof($output); echo("
\n"); echo("\n"); echo("\n"); echo(""); echo("
\n"); } echo("
"); } ?>