40 lines
716 B
PHP
40 lines
716 B
PHP
<html>
|
|
<head>
|
|
<title>Dendy\'s image gallery</title>
|
|
<style>
|
|
#img{
|
|
max-height: 70vh;
|
|
float: right;
|
|
max-width: 100%;
|
|
}
|
|
</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>
|