[GH-ISSUE #30] Hide index files or change the tree view root #17

Closed
opened 2026-03-02 15:55:02 +03:00 by kerem · 1 comment
Owner

Originally created by @str-dst on GitHub (Dec 19, 2017).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/30

As of now you can always see the index.php (or tinyfilemanager.php) file in the treeview.
Is it possible to change the tree root or hide these files?

Originally created by @str-dst on GitHub (Dec 19, 2017). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/30 As of now you can always see the index.php (or tinyfilemanager.php) file in the treeview. Is it possible to change the tree root or hide these files?
kerem closed this issue 2026-03-02 15:55:02 +03:00
Author
Owner

@str-dst commented on GitHub (Dec 19, 2017):

nevermind :D
changing line 1136 from
echo php_file_tree($_SERVER['DOCUMENT_ROOT'], "javascript:alert('You clicked on [link]');");
to
echo php_file_tree($root_path, "javascript:alert('You clicked on [link]');");
did the trick.

<!-- gh-comment-id:352738741 --> @str-dst commented on GitHub (Dec 19, 2017): nevermind :D changing line 1136 from echo php_file_tree($_SERVER['DOCUMENT_ROOT'], "javascript:alert('You clicked on [link]');"); to echo php_file_tree($root_path, "javascript:alert('You clicked on [link]');"); did the trick.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#17
No description provided.