39 lines
694 B
PHP
39 lines
694 B
PHP
<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){
|
|
//
|
|
// }
|
|
// }
|
|
|
|
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/>");
|
|
}
|
|
?>
|
|
</body>
|
|
</html>
|