Files
wevads-platform/scripts/temp-explorer.php
2026-02-26 04:53:11 +01:00

41 lines
1.2 KiB
PHP
Executable File

<?php
header('Content-Type: text/plain');
$basePath = '/opt/PLATFOMRDELIVERABILITYWEVAL';
if (!is_dir($basePath)) {
echo "Dossier non trouvé: $basePath\n";
echo "\n=== CONTENU DE /opt/ ===\n";
print_r(scandir('/opt/'));
exit;
}
echo "=== STRUCTURE $basePath ===\n\n";
function listFilesRecursive($dir, $prefix = '') {
$files = scandir($dir);
foreach ($files as $file) {
if ($file === '.' || $file === '..') continue;
$path = $dir . '/' . $file;
if (is_dir($path)) {
echo $prefix . "📁 " . $file . "/\n";
listFilesRecursive($path, $prefix . " ");
} else {
$size = filesize($path);
echo $prefix . "📄 " . $file . " (" . round($size/1024, 1) . " KB)\n";
}
}
}
listFilesRecursive($basePath);
echo "\n\n=== CONTENU DES FICHIERS PHP ===\n";
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($basePath));
foreach ($iterator as $file) {
if ($file->isFile() && $file->getExtension() === 'php') {
echo "\n\n========== " . $file->getPathname() . " ==========\n";
echo file_get_contents($file->getPathname());
}
}
?>