From c49abfb35b14eb7a5e6634a8bc1e6e06ad036f04 Mon Sep 17 00:00:00 2001 From: max/sooulix Date: Mon, 10 Feb 2025 23:12:42 +0100 Subject: [PATCH] fix la liste accueil --- src/common.php | 2 ++ src/index.php | 2 +- src/sanddir_template.php | 42 +++++++++++++++++++++++++++++++++------- 3 files changed, 38 insertions(+), 8 deletions(-) diff --git a/src/common.php b/src/common.php index 0750f17..46a3ada 100644 --- a/src/common.php +++ b/src/common.php @@ -73,6 +73,8 @@ function share_list($dir) function($carry, $child) { $tsv = tsv_path($child); + + var_dump(is_file($tsv)); if (is_file($tsv)) { return array_merge($carry, read_tsv($child, $tsv)); diff --git a/src/index.php b/src/index.php index 7a2d218..e61a351 100644 --- a/src/index.php +++ b/src/index.php @@ -17,7 +17,7 @@ if ($new_share) else if (isset($_GET['dir'])) { $selected_dir = $_GET['dir']; - include('./sanddir.php'); + include('./sanddir_template.php'); } ?> diff --git a/src/sanddir_template.php b/src/sanddir_template.php index 5be713d..ea0942d 100644 --- a/src/sanddir_template.php +++ b/src/sanddir_template.php @@ -32,17 +32,45 @@ if (isset($_GET['action']) && $_GET['action'] == 'share') } ?> -

Existing links

-