Woah";
$images = array();
$dir = "drw";
if(isset($_GET["l"])) $dir = $_GET["l"];
if ($handle = opendir($dir)) {
while (false !== ($entry = readdir($handle))) {
$x = pathinfo($entry,PATHINFO_EXTENSION);
if ($x == "" && $entry != ".") {
echo("$entry
\n");
}
else if($x == "jpg" || $x == "jpeg" || $x == "png"){
array_push($images, $entry);
}
}
closedir($handle);
}
foreach($images as $img){
$output = "";
exec($tmsu . "tags -1 '$dir/$img'", $output);
$num_tags = sizeof($output);
echo("");
echo("
");
echo("
");
echo("
");
}
?>