Feature: Added Folder support for files

This commit is contained in:
johnnyq
2023-08-23 18:02:51 -04:00
parent d200575aec
commit f88f04edd8
18 changed files with 426 additions and 232 deletions

View File

@@ -27,7 +27,7 @@
<select class="form-control" name="folder">
<option value="0">/</option>
<?php
$sql_folders = mysqli_query($mysqli, "SELECT * FROM folders WHERE folder_client_id = $client_id ORDER BY folder_name ASC");
$sql_folders = mysqli_query($mysqli, "SELECT * FROM folders WHERE folder_location = $folder_location AND folder_client_id = $client_id ORDER BY folder_name ASC");
while ($row = mysqli_fetch_array($sql_folders)) {
$folder_id = intval($row['folder_id']);
$folder_name = nullable_htmlentities($row['folder_name']);