30 lines
593 B
PHP
30 lines
593 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");
|
||
|
|
||
|
echo "<h1>Tag list</h1>";
|
||
|
|
||
|
echo "<img id=\"img\" src=\"/" . $_GET["i"] . "\">";
|
||
|
|
||
|
//Tag list
|
||
|
echo "Tags:<br/>";
|
||
|
exec($tmsu . "tags -1 \"" . $_GET["i"] . $excluded_query . "\"", $output);
|
||
|
$num_tags = sizeof($output);
|
||
|
for($i = 1; $i < $num_tags; $i++){
|
||
|
echo("<a href='http://" . $_SERVER['HTTP_HOST'] . "/tag.php?t=" . $output[$i] . "'>" . $output[$i] ."</a><br/>");
|
||
|
}
|
||
|
?>
|
||
|
</body>
|
||
|
</html>
|