|
|
@ -1,3 +1,4 @@ |
|
|
|
<?php session_start() ?> |
|
|
|
<html> |
|
|
|
<head> |
|
|
|
<title>Dendy\'s image gallery</title> |
|
|
@ -11,8 +12,8 @@ |
|
|
|
</head> |
|
|
|
<body> |
|
|
|
<?php |
|
|
|
include("config.php"); |
|
|
|
include("include/header.php"); |
|
|
|
include("config.php"); |
|
|
|
|
|
|
|
exec($tmsu . "tags -1 \"" . $_GET["i"] . $excluded_query . "\"", $output); |
|
|
|
|
|
|
@ -22,18 +23,24 @@ |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
echo "<h1>Tag list</h1>"; |
|
|
|
|
|
|
|
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/>"; |
|
|
|
//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> |
|
|
|