Lokasi:
/
home
/
u847703118
/
domains
/
alphamed.cloud
/
public_html
/
Ubah: debug_deploy.php
<?php // debug_deploy.php // Unique ID: v2_timestamp_<?php echo time(); ?> header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP 1.1. header("Pragma: no-cache"); // HTTP 1.0. header("Expires: 0"); // Proxies. echo "<h1>Deployment Debugger V2</h1>"; echo "<p>Generated at: " . date('Y-m-d H:i:s') . "</p>"; echo "<p>Current Server Directory: <code>" . __DIR__ . "</code></p>"; echo "<h2>1. Searching for Critical Files</h2>"; $critical_files = [ 'fix_tests_schema.php', 'tests.php', 'includes/auth_session.php', 'accounting_journal.php', 'hostinger_debug.php' ]; echo "<table border='1' cellpadding='5'><tr><th>File</th><th>Status</th><th>Size</th><th>Last Modified</th></tr>"; foreach ($critical_files as $file) { $exists = file_exists($file); $status = $exists ? "<span style='color:green'>FOUND</span>" : "<span style='color:red'>MISSING</span>"; $size = $exists ? filesize($file) . " bytes" : "-"; $mod = $exists ? date('Y-m-d H:i:s', filemtime($file)) : "-"; // Check content signature for hostinger_debug.php to see if it's the new one if ($exists && $file === 'hostinger_debug.php') { $content = file_get_contents($file); if (strpos($content, 'Tests Module Schema Check') !== false) { $status .= " (NEW VERSION)"; } else { $status .= " <span style='color:orange'>(OLD VERSION - Not Updated!)</span>"; } } echo "<tr><td>$file</td><td>$status</td><td>$size</td><td>$mod</td></tr>"; } echo "</table>"; echo "<h2>2. Directory Listing (Root)</h2>"; $files = scandir(__DIR__); echo "<ul>"; foreach ($files as $file) { if ($file == '.' || $file == '..') continue; if (is_dir($file)) { echo "<li>[DIR] <strong>$file/</strong></li>"; // Check if our files are hiding in a subfolder $subfiles = scandir($file); if (in_array('fix_tests_schema.php', $subfiles)) { echo "<ul><li style='color:red; font-weight:bold;'>!!! FOUND fix_tests_schema.php HERE !!! -> Please move files from '$file' to '" . __DIR__ . "'</li></ul>"; } } else { echo "<li>$file</li>"; } } echo "</ul>"; ?>
Batal