From e50cbe895a3b12c389076e913157d5e63aea754d Mon Sep 17 00:00:00 2001 From: Dendy Date: Wed, 23 Dec 2020 23:22:28 +0100 Subject: [PATCH] Style admin panel up and fix path navigator bounds --- admin.php | 110 ++++++++++++++++++++++++++++++++------------- include/header.php | 2 +- tag.php | 6 +-- 3 files changed, 84 insertions(+), 34 deletions(-) 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(""); + /* Images */ - echo(""); - echo("
"); - echo("
"); - } + if($images){ + echo("
\n"); + echo("\n"); + echo(""); + 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

"> diff --git a/tag.php b/tag.php index 45120e6..6d810c2 100644 --- a/tag.php +++ b/tag.php @@ -1,8 +1,8 @@ - + - Pòsweg's image gallery + Pòsweg\'s image gallery