denbooru-php/view.php

39 lines
694 B
PHP
Raw Normal View History

2020-05-09 18:53:47 +00:00
<html>
<head>
<title>Pòsweg's image gallery</title>
<style>
#img{
height: 70vh;
float: right;
}
</style>
</head>
<body>
<?php
include("include/header.php");
include("config.php");
exec($tmsu . "tags -1 \"" . $_GET["i"] . $excluded_query . "\"", $output);
// if($exclude !== ""){
// foreach($exclude as $excluded_tag){
//
// }
// }
2020-05-09 18:53:47 +00:00
echo "<h1>Tag list</h1>";
echo "<img id=\"img\" src=\"/" . $_GET["i"] . "\">";
//Tag list
$num_tags = sizeof($output);
echo "Tags(" . $num_tags . "):<br/>";
unset($output[0]);
foreach($output as $tag){
echo("<a href='http://" . $_SERVER['HTTP_HOST'] . "/tag.php?t=" . $tag . "'>" . $tag ."</a><br/>");
2020-05-09 18:53:47 +00:00
}
?>
</body>
</html>