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') } ?> -