diff --git a/admin.php b/admin.php
index 15681dc..d71250a 100644
--- a/admin.php
+++ b/admin.php
@@ -1,10 +1,56 @@
+
- Pòsweg's image gallery
+ Pòsweg\'s image gallery
+
Woah";
- $images = array();
+ echo("");
+ echo("
<-\n");
+ foreach($paths as $entry){
+ echo("
$entry\n");
+ }
+ echo("
");
- $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 != "." && $entry != "..") {
- echo("$entry
\n");
- }
- else if($x == "jpg" || $x == "jpeg" || $x == "png"){
- array_push($images, $entry);
- }
- }
- closedir($handle);
- }
+ //var_dump($_GET["t"]);
+ if(defined($_GET["t"]) && is_array($_GET["t"])){
+ foreach($_GET["t"] as $file){
+ var_dump($file);
+ }
+ }
- foreach($images as $img){
- $output = "";
- exec($tmsu . "tags -1 '$dir/$img'", $output);
- $num_tags = sizeof($output);
- echo("");
- echo("
");
- echo("
");
- echo("
");
- }
+ if($images){
+ echo("");
+ foreach($images as $img){
+ $output = "";
+ exec($tmsu . "tags -1 '$dir/$img'", $output);
+ $num_tags = sizeof($output);
+ echo("\n");
+ echo("
\n");
+
+ echo("
\n");
+
+ echo("
\n");
+ }
+ echo("
");
+ }
?>
diff --git a/include/header.php b/include/header.php
index c0101a0..da962b8 100644
--- a/include/header.php
+++ b/include/header.php
@@ -36,7 +36,7 @@
}
?>
- Pòsweg's Suckless Booru
+ Pòsweg\'s Suckless Booru