Files
AdsPreview/backend/public/files.php
Johannes b4758b4f26 security: clean repository without media files and sensitive data
- Removed area/ directory with 816MB of media files
- Removed sensitive FTP credentials from Git history
- Implemented .env.upload system for secure deployments
- Added comprehensive .gitignore for future protection

This commit represents a clean slate with all sensitive data removed.
2025-09-07 11:05:29 +02:00

17 lines
443 B
PHP

<?php
$dir = __DIR__ . '/../area/Paramount/Testprojekt/ads';
$rootPath = realpath($dir);
if (is_dir($dir) && is_readable($dir)) {
$files = scandir($dir);
echo json_encode([
'success' => true,
'files' => $files,
'rootPath' => $rootPath
]);
} else {
echo json_encode([
'success' => false,
'error' => 'Ordner nicht vorhanden oder keine Leserechte',
'rootPath' => $rootPath
]);
}