You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
907 B

<?php session_start() ?>
<html>
<head>
<title>Dendy\'s image gallery</title>
<style>
#img{
max-height: 70vh;
float: right;
max-width: 100%;
}
</style>
</head>
<body>
<?php
include("config.php");
include("include/header.php");
exec($tmsu . "tags -1 \"" . $_GET["i"] . $excluded_query . "\"", $output);
// if($exclude !== ""){
// foreach($exclude as $excluded_tag){
//
// }
// }
echo "<img id=\"img\" src=\"/" . $_GET["i"] . "\">";
//Tag list
$num_tags = sizeof($output);
echo "<h2>Tag list (" . $num_tags . ")</h2>";
//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/>");
}
if($_IS_ADMIN){
echo("<h2>Admin</h2>");
echo("<a href='" . $BASE_PATH . "/admin.php?l=" . dirname($_GET["i"]) . "'>View folder</a>");
}
?>
</body>
</html>